Skip to content

Commit

Permalink
Merge pull request #1876 from zhengbw0324/master
Browse files Browse the repository at this point in the history
FIX: fix the bug in negative sampling.
  • Loading branch information
zhengbw0324 authored Sep 23, 2023
2 parents 96eb311 + dbaeb5f commit 4d7822f
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 4d7822f

Please sign in to comment.