Skip to content

Commit

Permalink
Format Python code according to PEP8
Browse files Browse the repository at this point in the history
  • Loading branch information
zhengbw0324 authored and github-actions[bot] committed Sep 26, 2023
1 parent 23069f6 commit 6d9f742
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions recbole/data/dataloader/abstract_dataloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,9 @@ def _set_neg_sample_args(self, config, dataset, dl_format, neg_sample_args):
self.neg_sample_args = neg_sample_args
self.times = 1
if (
(self.neg_sample_args["distribution"] == "uniform"
or self.neg_sample_args["distribution"] == "popularity")
and self.neg_sample_args["sample_num"] != "none"
):
self.neg_sample_args["distribution"] == "uniform"
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"]

if self.dl_format == InputType.POINTWISE:
Expand Down

0 comments on commit 6d9f742

Please sign in to comment.