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

Recsys hitrate #956

Merged
merged 19 commits into from Nov 7, 2020
Merged

Recsys hitrate #956

merged 19 commits into from Nov 7, 2020

Conversation

zkid18
Copy link
Contributor

@zkid18 zkid18 commented Oct 8, 2020

Before submitting

  • Was this discussed/approved via a Github issue? (no need for typos and docs improvements)
  • Did you read the contribution guide?
  • Did you check the code style? catalyst-make-codestyle && catalyst-check-codestyle (pip install -U catalyst-codestyle).
  • Did you make sure to update the docs? We use Google format for all the methods and classes.
  • Did you check the docs with make check-docs?
  • Did you write any new necessary tests?
  • Did you add your new functionality to the docs?
  • Did you update the CHANGELOG?
  • You can use 'Login as guest' to see Teamcity build logs.

Improvement of #887

Description

Related Issue

Type of Change

  • Examples / docs / tutorials / contributors update
  • Bug fix (non-breaking change which fixes an issue)
  • Improvement (non-breaking change which improves an existing feature)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to 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.

@pep8speaks
Copy link

pep8speaks commented Oct 8, 2020

Hello @zkid18! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2020-11-07 04:14:23 UTC

@zkid18
Copy link
Contributor Author

zkid18 commented Oct 8, 2020

@Scitator take a look on hit-rate calculation and corresponding test. I'm not 100% about the correctness of the implementation.

@zkid18 zkid18 changed the title Recsys hitrate Recsys hitrate [WIP] Oct 8, 2020
@mergify
Copy link

mergify bot commented Oct 12, 2020

This pull request is now in conflicts. @zkid18, could you fix it? 🙏

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.
Copy link
Collaborator

Choose a reason for hiding this comment

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

hit instead of hiy

@zkid18 zkid18 changed the title Recsys hitrate [WIP] Recsys hitrate Oct 25, 2020


def hitrate(
outputs: torch.Tensor, targets: torch.Tensor, k=100
Copy link
Member

Choose a reason for hiding this comment

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

k=10?

Scitator
Scitator previously approved these changes Nov 2, 2020
@mergify
Copy link

mergify bot commented Nov 4, 2020

This pull request is now in conflicts. @zkid18, could you fix it? 🙏

@mergify mergify bot dismissed Scitator’s stale review November 7, 2020 02:53

Pull request has been modified.

@Scitator Scitator merged commit 590f680 into catalyst-team:master Nov 7, 2020
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

5 participants