Skip to content

Commit

Permalink
model.predict was returning np.float64 instead of np.float32
Browse files Browse the repository at this point in the history
  • Loading branch information
Paschalis Skouzos authored and Paschalis Skouzos committed Feb 6, 2020
1 parent 1f3f35d commit 6f47aae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lightfm/lightfm.py
Original file line number Diff line number Diff line change
Expand Up @@ -813,7 +813,7 @@ def predict(

lightfm_data = self._get_lightfm_data()

predictions = np.empty(len(user_ids), dtype=np.float64)
predictions = np.empty(len(user_ids), dtype=np.float32)

predict_lightfm(
CSRMatrix(item_features),
Expand Down

0 comments on commit 6f47aae

Please sign in to comment.