Skip to content

Commit

Permalink
Merge pull request #58 from WYH-han/bug/sampler
Browse files Browse the repository at this point in the history
Bug of sampler
  • Loading branch information
Wicknight committed Dec 8, 2023
2 parents 5bb219d + 2c7470d commit d339918
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 d339918

Please sign in to comment.