Skip to content

Commit

Permalink
small bug with saving with reindex=False
Browse files Browse the repository at this point in the history
  • Loading branch information
David committed May 31, 2018
1 parent 9116ac1 commit ced3893
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hpfrec/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ def fit(self, counts_df, val_set=None):
## after terminating optimization
if self.keep_data:
self._store_metadata()
if self.produce_dicts:
if self.produce_dicts and self.reindex:
self.user_dict_ = {self.user_mapping_[i]:i for i in range(self.user_mapping_.shape[0])}
self.item_dict_ = {self.item_mapping_[i]:i for i in range(self.item_mapping_.shape[0])}
self.is_fitted = True
Expand Down

0 comments on commit ced3893

Please sign in to comment.