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 Python splitters #1802

Merged
merged 5 commits into from
Jul 29, 2022
Merged

Optimized Python splitters #1802

merged 5 commits into from
Jul 29, 2022

Conversation

ChuyangKe
Copy link
Contributor

@ChuyangKe ChuyangKe commented Jul 26, 2022

Description

Rewrote Python splitter functions to improve efficiency.

Tested on synthetic datasets with 10 million records and 100,000 users. The runtime is reduced from 209.7s to 18.8s, indicating a 11x 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.

@ChuyangKe ChuyangKe marked this pull request as ready for review July 26, 2022 05:17
@miguelgfierro
Copy link
Collaborator

DO NOT MERGE. More tests are needed.

A small notice. An alternative way to tell the team that you don't want us to merge is by creating a draft PR instead of a normal PR. Simon does it from time to time. There is no need to change this PR, this is just FYI in case you were not familiar :-)

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.

LGTM

Just added an idea to consider

recommenders/datasets/python_splitters.py Outdated Show resolved Hide resolved
Co-authored-by: Miguel González-Fierro <3491412+miguelgfierro@users.noreply.github.com>
@miguelgfierro miguelgfierro merged commit bd4a38a into staging Jul 29, 2022
@miguelgfierro miguelgfierro deleted the chuyang/splitters branch July 29, 2022 09:23
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