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

Update ALS code to PyTorch #388

Merged
merged 53 commits into from
May 15, 2024
Merged

Conversation

mdekstrand
Copy link
Member

@mdekstrand mdekstrand commented May 7, 2024

This rebuilds ALS on PyTorch, both explicit (closes #375) and implicit (closes #376), and refactors ALS into a package for maintainability. Advances #374 further.

@mdekstrand mdekstrand added the algorithms LensKit algorithm implementations label May 7, 2024
@mdekstrand mdekstrand added this to the 2024.1 milestone May 7, 2024
@mdekstrand mdekstrand self-assigned this May 7, 2024
@mdekstrand mdekstrand marked this pull request as draft May 8, 2024 14:08
@mdekstrand mdekstrand marked this pull request as ready for review May 14, 2024 15:27
Copy link

codecov bot commented May 14, 2024

Codecov Report

Attention: Patch coverage is 98.46547% with 6 lines in your changes are missing coverage. Please review.

Project coverage is 91.57%. Comparing base (890cf54) to head (a9ecfe7).
Report is 1 commits behind head on main.

Files Patch % Lines
lenskit/algorithms/als/common.py 98.48% 2 Missing ⚠️
lenskit/algorithms/als/explicit.py 98.26% 2 Missing ⚠️
lenskit/algorithms/als/implicit.py 99.06% 1 Missing ⚠️
lenskit/parallel/chunking.py 95.23% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #388      +/-   ##
==========================================
+ Coverage   91.55%   91.57%   +0.01%     
==========================================
  Files          43       47       +4     
  Lines        3055     3049       -6     
==========================================
- Hits         2797     2792       -5     
+ Misses        258      257       -1     

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

@mdekstrand mdekstrand merged commit a9ecfe7 into lenskit:main May 15, 2024
19 checks passed
@mdekstrand mdekstrand deleted the feature/torch-als branch May 15, 2024 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
algorithms LensKit algorithm implementations
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Use PyTorch to implement implicit ALS Use PyTorch to implement explicit ALS
1 participant