LPKY distance measure

14 views
Skip to first unread message

Fernando Alves

unread,
Feb 6, 2019, 10:13:07 AM2/6/19
to LensKit Recommender Toolkit Development and Support
Hi,

Does anyone know how to change the distance measure used for knn in the user knn?

Thanks
Best regards
Fernando

Michael Ekstrand

unread,
Feb 6, 2019, 10:55:11 AM2/6/19
to Fernando Alves, LensKit Recommender Toolkit Development and Support
Fernando,

Unfortunately, the user KNN algorithm is not very reconfigurable. In LKPY we have de-emphasized the extensive configurability of the previous version of LensKit in favor of algorithms that work pretty well out of the box. Cosine similarity over normalized vectors seems to work at least as well as any of the other common configurations (https://grouplens.org/blog/similarity-functions-for-user-user-collaborative-filtering/), so we just do that, and it gives us substantial performance benefits.

I would entertain pull requests to add generalized / configurable neighborhood models, but it hasn't been a development priority.

- Michael

--
You received this message because you are subscribed to the Google Groups "LensKit Recommender Toolkit Development and Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lenskit-recsy...@googlegroups.com.
To post to this group, send email to lenskit...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lenskit-recsys/045e9353-6496-4642-85a6-3019bfbf4819%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Michael D. Ekstrand — michael...@boisestate.edu https://md.ekstrandom.net
Assistant Professor, Dept. of Computer Science, Boise State University
People and Information Research Team (PIReT)  http://coen.boisestate.edu/piret/

Fernando Alves

unread,
Feb 6, 2019, 1:46:19 PM2/6/19
to LensKit Recommender Toolkit Development and Support
Aye, thanks.
Reply all
Reply to author
Forward
0 new messages