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

How to speed up the evaluation process #230

Closed
ll0ruc opened this issue Apr 19, 2022 · 4 comments
Closed

How to speed up the evaluation process #230

ll0ruc opened this issue Apr 19, 2022 · 4 comments

Comments

@ll0ruc
Copy link

ll0ruc commented Apr 19, 2022

Hi, I noticed that you are evaluating one user at each time. While my test data has hundreds of thousands users, and the evaluation will take about a few minutes. While the train on GPU is very fast. So can you provide some fast evaluation method? Thank you!

@Coder-Yu
Copy link
Owner

I have use Numba to speedup the ranking, which reduces the time cost from 20 minutes (using numpy) to one minute for datasets of 50,000 users * 100,000 items. I guess the ranking for hundreds of thousands users can be finished within 10 minutes. Currently, I have no plan for faster ranking. You can try multi-thread programming to further speedup the ranking.

@ll0ruc
Copy link
Author

ll0ruc commented Apr 22, 2022

I have use Numba to speedup the ranking, which reduces the time cost from 20 minutes (using numpy) to one minute for datasets of 50,000 users * 100,000 items. I guess the ranking for hundreds of thousands users can be finished within 10 minutes. Currently, I have no plan for faster ranking. You can try multi-thread programming to further speedup the ranking.

Can you provide a code reference about Numba and numpy to speedup the ranking? Thank you

@Coder-Yu
Copy link
Owner

@jit(nopython=True)

You can also refer to this page.
https://switowski.com/blog/easy-speedup-wins-with-numba

@ll0ruc
Copy link
Author

ll0ruc commented Apr 22, 2022

@jit(nopython=True)

You can also refer to this page. https://switowski.com/blog/easy-speedup-wins-with-numba

Thank you

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

No branches or pull requests

2 participants