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

Optimized Spark recall_at_k time performance #1796

Merged
merged 1 commit into from
Jul 19, 2022

Conversation

ChuyangKe
Copy link
Contributor

@ChuyangKe ChuyangKe commented Jul 19, 2022

Description

Optimized time performance of recall_at_k() in Spark evaluation metrics.

The function is tested on the MovieLens 20m dataset with 138,493 users, and with TOP_K = 50 recommendations generated for each user. The time cost of evaluating the recall of the recommendations is reduced from 6.99s to 1.09s, indicating a 7x performance improvement.

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

@miguelgfierro miguelgfierro left a comment

Choose a reason for hiding this comment

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

Great job!

@miguelgfierro miguelgfierro merged commit 3824e9e into staging Jul 19, 2022
@miguelgfierro miguelgfierro deleted the chuyang/spark_ranking_metrics branch July 19, 2022 23:16
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