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

Ranking Metrics - Mean Average Precision corrections #1486

Merged
merged 6 commits into from Mar 19, 2024

Conversation

FelipeAdachi
Copy link
Contributor

Description

  • corrected Average Precision calculation

  • added handling for AP calculation for both numeric/non-numeric cases

  • Removed mean_average_precision column, as this value is already present in average_precision['distribution/mean']

  • Updated tests to match expected values for MAP

  • If k passed is higher than predictions dimension, _max_k is used

  • I have reviewed the Guidelines for Contributing and the Code of Conduct.

@FelipeAdachi FelipeAdachi mentioned this pull request Mar 18, 2024
1 task
Copy link
Contributor

@jamie256 jamie256 left a comment

Choose a reason for hiding this comment

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

LGTM!

@FelipeAdachi FelipeAdachi merged commit dee6c5d into mainline Mar 19, 2024
19 checks passed
@FelipeAdachi FelipeAdachi deleted the dev/felipe/map-fix branch March 19, 2024 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants