Skip to content

Commit

Permalink
FIX: fix the bug in negative sampling.
Browse files Browse the repository at this point in the history
  • Loading branch information
zhengbw0324 committed Sep 23, 2023
1 parent 96eb311 commit dbaeb5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion recbole/data/dataloader/abstract_dataloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def _set_neg_sample_args(self, config, dataset, dl_format, neg_sample_args):
self.times = 1
if (
self.neg_sample_args["distribution"] == "uniform"
or "popularity"
or self.neg_sample_args["distribution"] == "popularity"
and self.neg_sample_args["sample_num"] != "none"
):
self.neg_sample_num = self.neg_sample_args["sample_num"]
Expand Down

0 comments on commit dbaeb5f

Please sign in to comment.