Skip to content

Commit

Permalink
dataset.num_overlap_item(user) is already set in line 428(384) of dat…
Browse files Browse the repository at this point in the history
…aset.py for pad, no necessary to add 1.
  • Loading branch information
WYH-han committed Jun 16, 2023
1 parent 1758db4 commit 2c7470d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ saved/
*.egg-info/
docs/build/
wandb/*
.DS_Store
4 changes: 2 additions & 2 deletions recbole_cdr/sampler/crossdomain_sampler.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,8 @@ def __init__(self, phases, dataset, built_datasets, distribution='uniform'):
self.uid_field = self.dataset.uid_field
self.iid_field = self.dataset.iid_field

self.overlapped_item_num = dataset.num_overlap_item + 1 # for [pad]
self.overlapped_user_num = dataset.num_overlap_user + 1
self.overlapped_item_num = dataset.num_overlap_item
self.overlapped_user_num = dataset.num_overlap_user

self.source_only_item_num = dataset.num_source_only_item
self.source_only_user_num = dataset.num_source_only_user
Expand Down

0 comments on commit 2c7470d

Please sign in to comment.