Skip to content

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.

2 participants