benfred / implicit

Fast Python Collaborative Filtering for Implicit Feedback Datasets
https://benfred.github.io/implicit/
MIT License
3.55k stars 612 forks source link

nmslib recommend #52

Closed datascienceit closed 7 years ago

datascienceit commented 7 years ago

I've been running the movielen example, trying to use approximate_als.NMSLibAlternatingLeastSquares instead os the AlternatingLeastSquares. The recommend function returns indexs I can't decipher what they means. I think there might be a bug. It fails when I try to use the movie_lookup[movie].

jbochi commented 7 years ago

.recommend returns a List of (itemid, score) tuples

benfred commented 7 years ago

Also checkout out the last.fm example - which has the ability to generate recommendations for each user now: https://github.com/benfred/implicit/blob/master/examples/lastfm.py#L120