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

Documentation fix for Recall and Hit #369

Merged
merged 3 commits into from
Mar 12, 2024
Merged

Conversation

lukas-wegmeth
Copy link
Contributor

The documentation contains max rather than min functions. Min functions are used in the implementation.

The documentation contains max rather than min functions. Min functions are used in the implementation.
@lukas-wegmeth
Copy link
Contributor Author

Could also remove nrel variable from the hit function and remove the formula from the documentation as the metric is more concisely explained in its description.

Removed nrel and documentation formula.
@mdekstrand
Copy link
Member

Good catch — thank you!

@mdekstrand
Copy link
Member

The code change is causing test failures — need to page in my memory of what's happening there to figure out why.

@lukas-wegmeth
Copy link
Contributor Author

My bad! Ran the test suite on the wrong branch. Fix is coming as soon as tests pass.

Tests failed because the function must return None when truth is empty.
Copy link

codecov bot commented Mar 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.00%. Comparing base (b62797f) to head (f4e1e27).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #369      +/-   ##
==========================================
- Coverage   91.01%   91.00%   -0.01%     
==========================================
  Files          40       40              
  Lines        3127     3125       -2     
==========================================
- Hits         2846     2844       -2     
  Misses        281      281              

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

@mdekstrand mdekstrand added this to the 2024.1 milestone Mar 12, 2024
@mdekstrand mdekstrand merged commit 2580591 into lenskit:main Mar 12, 2024
21 checks passed
@lukas-wegmeth lukas-wegmeth deleted the fix branch March 13, 2024 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants