Skip to content

Commit

Permalink
PEP8ified
Browse files Browse the repository at this point in the history
Removed W291 and W293
  • Loading branch information
Tych0n committed Mar 29, 2019
1 parent a7b2255 commit a9d941e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions implicit/evaluation.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ def ALS_recommend_all(model, users_items, int k=10, int threads=1, show_progress
"""
Recommends items for all users
Calculates the k best recommendations for all users, and returns numpy ndarray of
Calculates the k best recommendations for all users, and returns numpy ndarray of
shape (number_users, k) with scores.
Parameters
Expand Down Expand Up @@ -259,7 +259,7 @@ def ALS_recommend_all(model, users_items, int k=10, int threads=1, show_progress
numpy ndarray
Array of (number_users, k) with scores
"""

if not isinstance(users_items, csr_matrix):
users_items = users_items.tocsr()
factors_items = model.item_factors.T
Expand Down

0 comments on commit a9d941e

Please sign in to comment.