Skip to content

Commit

Permalink
Merge pull request #1976 from al-difonzo/patch-1
Browse files Browse the repository at this point in the history
Fix typo on logger warning in general_dataloader.py
  • Loading branch information
zhengbw0324 authored Mar 2, 2024
2 parents f95fde5 + e898aaa commit 48ce443
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions recbole/data/dataloader/general_dataloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def __init__(self, config, dataset, sampler, shuffle=False):
else:
self.sample_size = len(dataset)
if shuffle:
self.logger.warnning("NegSampleEvalDataLoader can't shuffle")
self.logger.warning("NegSampleEvalDataLoader can't shuffle")
shuffle = False
super().__init__(config, dataset, sampler, shuffle=shuffle)

Expand Down Expand Up @@ -227,7 +227,7 @@ def __init__(self, config, dataset, sampler, shuffle=False):

self.sample_size = len(self.user_df) if not self.is_sequential else len(dataset)
if shuffle:
self.logger.warnning("FullSortEvalDataLoader can't shuffle")
self.logger.warning("FullSortEvalDataLoader can't shuffle")
shuffle = False
super().__init__(config, dataset, sampler, shuffle=shuffle)

Expand Down

0 comments on commit 48ce443

Please sign in to comment.