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 functional #998

Merged
merged 69 commits into from Dec 1, 2020
Merged

Recsys functional #998

merged 69 commits into from Dec 1, 2020

Conversation

zkid18
Copy link
Contributor

@zkid18 zkid18 commented Nov 13, 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 check that your code passes the unit tests pytest . ?
  • Did you add your new functionality to the docs?
  • Did you update the CHANGELOG?

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.

PS

  • I know, that I could join slack for pull request discussion.

@@ -81,6 +81,34 @@ def process_multiclass_components(
return outputs, targets, num_classes


def process_recsys(
Copy link
Contributor Author

Choose a reason for hiding this comment

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

naming: process_recsys_components

Copy link
Member

@Scitator Scitator left a comment

Choose a reason for hiding this comment

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

Let's firstly compute all statistic and then make

for k in topk:
   ...

like accuracy

catalyst/metrics/functional.py Show resolved Hide resolved
catalyst/metrics/functional.py Show resolved Hide resolved
@@ -28,55 +27,52 @@ def dcg(
gain_function:
String indicates the gain function for the ground truth labels.
Two options available:
- `pow_rank`: torch.pow(2, x) - 1
- `exp_rank`: torch.pow(2, x) - 1
- `rank`: x
Copy link
Member

Choose a reason for hiding this comment

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

linear_rank?

@mergify mergify bot dismissed Scitator’s stale review December 1, 2020 03:13

Pull request has been modified.

@zkid18 zkid18 changed the title Recsys functional [WIP] Recsys functional Dec 1, 2020
@Scitator Scitator merged commit f4beaac into catalyst-team:master Dec 1, 2020
@Scitator
Copy link
Member

Scitator commented Dec 1, 2020

Thank you for the PR, I will handle transformers test 🚀

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