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

Add negative sampling to interaction matrix #631

Merged
merged 6 commits into from
Feb 11, 2025

Conversation

mdekstrand
Copy link
Member

@mdekstrand mdekstrand commented Feb 11, 2025

This adds negative sampling to matrix relationship sets, in both weighted and unweighted versions.

@mdekstrand mdekstrand added the data Data management support. label Feb 11, 2025
@mdekstrand mdekstrand added this to the 2025.1 milestone Feb 11, 2025
Copy link

codecov bot commented Feb 11, 2025

Codecov Report

Attention: Patch coverage is 94.00000% with 3 lines in your changes missing coverage. Please review.

Project coverage is 91.24%. Comparing base (b9fdf76) to head (4f3a91f).
Report is 7 commits behind head on main.

Files with missing lines Patch % Lines
lenskit/lenskit/data/builder.py 50.00% 1 Missing ⚠️
lenskit/lenskit/data/dataset.py 97.72% 1 Missing ⚠️
lenskit/lenskit/random.py 75.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #631      +/-   ##
==========================================
+ Coverage   91.23%   91.24%   +0.01%     
==========================================
  Files         117      117              
  Lines        8081     8125      +44     
==========================================
+ Hits         7373     7414      +41     
- Misses        708      711       +3     

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

@mdekstrand mdekstrand merged commit a77d0c9 into lenskit:main Feb 11, 2025
47 checks passed
@mdekstrand mdekstrand deleted the feature/negative-sampling branch February 11, 2025 02:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data Data management support.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant