Skip to content

Commit

Permalink
add __str__ to user-user
Browse files Browse the repository at this point in the history
  • Loading branch information
mdekstrand committed Sep 13, 2018
1 parent 6e54267 commit 2dc0e97
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lenskit/algorithms/user_knn.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,3 +190,6 @@ def save_model(self, model, file):
def load_model(self, file):
with pd.HDFStore(file, 'r') as store:
return UUModel(store['matrix'], store['stats'], store['item_users'])

def __str__(self):
return 'UserUser(nnbrs={}, min_sim={})'.format(self.max_neighbors, self.min_similarity)

0 comments on commit 2dc0e97

Please sign in to comment.