3

I'm new in keras and i have one question.

To get reproducible result, i fixed seed. If the fit function shuffle parameter is true, is traning data order always same for all epochs or not?

Thanks in advance.

Bedrick Kiq
  • 365
  • 1
  • 5
  • 14

1 Answers1

2

Yes, if you set the seed correctly to a certain value the training order should always be the same with the same seed. However I there were some problems regarding reproducibility when using TF and multiprocessing. I'm not sure if this is solved by now.

You can also checkout this site in the Keras Documentation.

MBT
  • 21,733
  • 19
  • 84
  • 102
  • Thanks for answer. because of the non-determinstic algorithm of cuDNN, results can be slightly different, but effect of this is very small. – Bedrick Kiq May 01 '18 at 14:59
  • These results in the Stackoverflow link were produced using CPU, but GPU probably does not better. – MBT May 01 '18 at 15:36