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
Recsys hitrate #956
Recsys hitrate #956
Conversation
@Scitator take a look on hit-rate calculation and corresponding test. I'm not 100% about the correctness of the implementation. |
This pull request is now in conflicts. @zkid18, could you fix it? 🙏 |
catalyst/utils/metrics/hitrate.py
Outdated
Calculate the hit rate score given model outputs and targets. | ||
Hit-rate is a metric for evaluating ranking systems. | ||
Generate top-N recommendations and if one of the recommendation is | ||
actually what user has rated, you consider that a hiy. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hit
instead of hiy
catalyst/utils/metrics/hitrate.py
Outdated
|
||
|
||
def hitrate( | ||
outputs: torch.Tensor, targets: torch.Tensor, k=100 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
k=10
?
This pull request is now in conflicts. @zkid18, could you fix it? 🙏 |
Pull request has been modified.
Before submitting
catalyst-make-codestyle && catalyst-check-codestyle
(pip install -U catalyst-codestyle
).make check-docs
?Improvement of #887
Description
Related Issue
Type of Change
PR review
Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in Github issues there's a high chance it will not be merged.