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

P@k ranking #23

Merged
merged 5 commits into from
Apr 28, 2021
Merged

P@k ranking #23

merged 5 commits into from
Apr 28, 2021

Conversation

Eleven1Liu
Copy link
Collaborator

@Eleven1Liu Eleven1Liu commented Apr 28, 2021

Move all P@k, R@k into precision_recall_at_ks.

evaluate.py Outdated
Comment on lines 74 to 75
for metric in self.config.monitor_metrics:
result[metric] = scores[metric]

Choose a reason for hiding this comment

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

Suggested change
for metric in self.config.monitor_metrics:
result[metric] = scores[metric]
result = {metric: scores[metric] for metric in self.config.monitor_metrics}

metrics.py Outdated Show resolved Hide resolved
Co-authored-by: sianchen <[email protected]>
@cjlin1
Copy link
Collaborator

cjlin1 commented Apr 28, 2021 via email

@Eleven1Liu Eleven1Liu merged commit 016b777 into master Apr 28, 2021
@Eleven1Liu Eleven1Liu deleted the pak branch April 28, 2021 13:12
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