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

feat: Add Mean Reciprocal Rank (MRR) metric to StatisticalEvaluator #7042

Merged
merged 5 commits into from
Feb 20, 2024

Conversation

awinml
Copy link
Contributor

@awinml awinml commented Feb 20, 2024

Related Issues

fixes #6065

Proposed Changes:

Add support for Mean Reciprocal Rank (MRR) Metric to StatisticalEvaluator.

MRR measures the mean reciprocal rank of times a label is present in at least one or more predictions.

How did you test it?

Unit tests were added to test_statistical_evaluator.py.

Checklist

@awinml awinml requested review from a team as code owners February 20, 2024 08:45
@awinml awinml requested review from dfokina and silvanocerza and removed request for a team February 20, 2024 08:45
@github-actions github-actions bot added topic:tests 2.x Related to Haystack v2.0 type:documentation Improvements on the docs labels Feb 20, 2024
@coveralls
Copy link
Collaborator

coveralls commented Feb 20, 2024

Pull Request Test Coverage Report for Build 7973191958

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 2 unchanged lines in 1 file lost coverage.
  • Overall coverage increased (+0.02%) to 89.641%

Files with Coverage Reduction New Missed Lines %
components/evaluators/statistical_evaluator.py 2 96.74%
Totals Coverage Status
Change from base Build 7972327854: 0.02%
Covered Lines: 5114
Relevant Lines: 5705

💛 - Coveralls

Copy link
Contributor

@silvanocerza silvanocerza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thanks! 🙏

@silvanocerza silvanocerza merged commit 327c2d2 into deepset-ai:main Feb 20, 2024
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.x Related to Haystack v2.0 topic:tests type:documentation Improvements on the docs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement function to calculate Mean Reciprocal Rank metric
3 participants