Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Speed up popularity scoring and top-N ranking #597

Merged
merged 15 commits into from
Jan 10, 2025

Conversation

mdekstrand
Copy link
Member

The primary change here is to speed up popularity scoring (by not using Pandas), and top-N ranking (by using np.argpartition to identify the top-K, and then argsort on a much smaller set for the final ordering).

It also fixes some boundary condition test failures in Gini coefficient, and improves logging in the pipeline batch runner.

@mdekstrand mdekstrand added components LensKit recommendation components performance labels Jan 10, 2025
@mdekstrand mdekstrand added this to the 2025.1 milestone Jan 10, 2025
Copy link

codecov bot commented Jan 10, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.77%. Comparing base (42a06c8) to head (7313c40).
Report is 16 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #597      +/-   ##
==========================================
+ Coverage   90.74%   90.77%   +0.02%     
==========================================
  Files         107      107              
  Lines        6547     6567      +20     
==========================================
+ Hits         5941     5961      +20     
  Misses        606      606              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mdekstrand mdekstrand merged commit f077dc7 into lenskit:main Jan 10, 2025
39 checks passed
@mdekstrand mdekstrand deleted the feature/pop-perf branch January 10, 2025 20:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
components LensKit recommendation components performance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant