Skip to content

Commit

Permalink
FIX: fix the bug in neg_sampling config
Browse files Browse the repository at this point in the history
  • Loading branch information
2017pxy committed Mar 29, 2022
1 parent 7eabb09 commit cab979e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion recbole/config/configurator.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ def _init_device(self):

def _set_train_neg_sample_args(self):
neg_sampling = self.final_config_dict['neg_sampling']
if neg_sampling is None or neg_sampling.lower() == 'none':
if neg_sampling is None or neg_sampling == 'None':
self.final_config_dict['train_neg_sample_args'] = {'strategy': 'none'}
else:
if not isinstance(neg_sampling, dict):
Expand Down

0 comments on commit cab979e

Please sign in to comment.