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

Set random seed in each lightfm test #1012

Merged
merged 2 commits into from
Mar 6, 2023

Conversation

edknv
Copy link
Contributor

@edknv edknv commented Mar 1, 2023

A follow-up to #1002.

Goals ⚽

Set random seed in lightfm tests.

Implementation Details 🚧

np.random.seed(0) was pulled out from tests into the global scope in #1002, but setting the seed globally doesn't work and the tests have become more flaky. This PR sets the random seed separately in each lightfm tests.

Testing Details 🔍

$ CUDA_VISIBLE_DEVICES=0 pytest --count 1000 tests/unit/lightfm/

============================ 4000 passed, 12007 warnings in 198.06s (0:03:18) ============================

@edknv edknv added ci chore Maintenance for the repository labels Mar 1, 2023
@edknv edknv added this to the Merlin 23.03 milestone Mar 1, 2023
@edknv edknv self-assigned this Mar 1, 2023
@github-actions
Copy link

github-actions bot commented Mar 1, 2023

Documentation preview

https://nvidia-merlin.github.io/models/review/pr-1012

@marcromeyn marcromeyn merged commit d6d6592 into NVIDIA-Merlin:main Mar 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Maintenance for the repository ci
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants