-
Notifications
You must be signed in to change notification settings - Fork 167
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
Reproducibility of model training #77
Comments
I tried np.random.RandomState(seed=1), it seems to be working |
Hi @yudeng2015 thank you for the suggestion. But I tried several times, and unfortunately |
Hi @zhxiaokang , I followed this post keras-team/keras#2743 and tried the follow code:
I ran the above codes first before importing any other libraries. Does this fix the issue? |
Hi @yudeng2015 , thank you! That works! |
I tried using
random.seed()
to fix the randomness of model training as followsBut the above solution did not work. I still got very different models if I repeated the above codes.
Is there a way to fix the training randomness and ensure reproducibility?
The text was updated successfully, but these errors were encountered: