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 number seed for generator #24

Open
koheiw opened this issue Aug 3, 2024 · 2 comments
Open

Set random number seed for generator #24

koheiw opened this issue Aug 3, 2024 · 2 comments

Comments

@koheiw
Copy link
Contributor

koheiw commented Aug 3, 2024

To replicate the results, it is not enough to initialize the output matrix with the same random number. I made changes my experimental package to make analysis replicable when threatds = 1.

koheiw/wordvector@8dc3d78

@jwijffels
Copy link
Contributor

Thanks for the heads up.
When I did some tests, the training run was completely reproducible with threads = 1 but not with threads > 1.
Is the training run also completely reproducible with threads > 1 in your package?

@koheiw
Copy link
Contributor Author

koheiw commented Aug 6, 2024

If I set random seed, the result looks very similar when threads > 1, but not identical. I don't think it is possible to make results identical in parallel computing.

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