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

Zhangya/python diversity metrics #1491

Merged
merged 4 commits into from
Aug 4, 2021

Conversation

YanZhangADS
Copy link
Collaborator

Description

Add python version of diversity metrics.

Related Issues

Checklist:

  • I have followed the contribution guidelines and code style for this project.
  • I have added tests covering my contributions.
  • I have updated the documentation accordingly.
  • This PR is being made to staging branch and not to main branch.

Copy link
Collaborator

@gramhagen gramhagen left a comment

Choose a reason for hiding this comment

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

this looks great to me, nicely done.

self.train_df = train_df[[col_user, col_item]]
self.col_user = col_user
self.col_item = col_item
self.sim_col = "sim"
Copy link
Collaborator

Choose a reason for hiding this comment

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

should this be a constant like DEFAULT_RELEVANCE_COL?

@YanZhangADS YanZhangADS merged commit cab9a2a into staging Aug 4, 2021
@YanZhangADS YanZhangADS deleted the zhangya/python_diversity_metrics branch August 4, 2021 13:31
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

2 participants