Skip to content

Commit

Permalink
Merge pull request #1215 from 2017pxy/master
Browse files Browse the repository at this point in the history
FIX: fix the neg_sampling config
  • Loading branch information
2017pxy committed Mar 29, 2022
2 parents 4409968 + cab979e commit 430db16
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:
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 430db16

Please sign in to comment.