Skip to content

Commit

Permalink
fix error in processing new user data
Browse files Browse the repository at this point in the history
  • Loading branch information
david-cortes committed Jul 28, 2019
1 parent c3e3e58 commit 34069fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hpfrec/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,7 @@ def _process_data_single(self, counts_df):
raise ValueError("Can only make calculations for items that were in the training set.")

counts_df['ItemId'] = counts_df.ItemId.values.astype(cython_loops.obj_ind_type)
counts_df['Count'] = counts_df.ItemId.values.astype(ctypes.c_float)
counts_df['Count'] = counts_df.Count.values.astype(ctypes.c_float)
return counts_df

def partial_fit(self, counts_df, batch_type='users', step_size=None,
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def build_extensions(self):
'scipy',
'cython'
],
version = '0.2.2.16',
version = '0.2.2.17',
description = 'Hierarchical Poisson matrix factorization for recommender systems',
author = 'David Cortes',
author_email = 'david.cortes.rivera@gmail.com',
Expand Down

0 comments on commit 34069fa

Please sign in to comment.