benfred / implicit

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

Fix ordering in .recommend for KNN models #629

Closed benfred closed 2 years ago

benfred commented 2 years ago

https://github.com/benfred/implicit/pull/482 introduced a bug where the output of the knn models wasn't strictly ordered by score.

Fix this and add a test that would have caught this bug