Skip to content

Commit

Permalink
Add __str__ to item-item
Browse files Browse the repository at this point in the history
  • Loading branch information
mdekstrand committed Sep 13, 2018
1 parent d1aba29 commit 6e54267
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lenskit/algorithms/item_knn.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,3 +239,6 @@ def load_model(self, file):
matrix = sps.csr_matrix((values, indices, indptr))

return IIModel(items, means, np.diff(indptr), matrix, ratings)

def __str__(self):
return 'ItemItem(nnbrs={}, msize={})'.format(self.max_neighbors, self.save_neighbors)

0 comments on commit 6e54267

Please sign in to comment.