Timeline for Why running the same code on the same data gives a different result every time?
Current License: CC BY-SA 4.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 28, 2018 at 7:28 | vote | accept | user7194905 | ||
Aug 26, 2018 at 8:33 | comment | added | redhqs | check out the link to the keras docs I posted, it's got code snippets for everything so you can decide which elements you'd like to use | |
Aug 25, 2018 at 14:59 | comment | added | user7194905 |
Thank you very much. The Tensorflow is the backend of Keras. I used these codes, it produces approximately the same results for each running. import random from numpy.random import seed from tensorflow import set_random_seed set_random_seed(2) seed(1) random.seed(1) should I use these codes before model creation codes every time?
|
|
Aug 25, 2018 at 10:36 | history | answered | redhqs | CC BY-SA 4.0 |