Reproducible results using Keras with TensorFlow backend
问题 I am using Keras to build a deep learning LSTM model, using TensorFlow backend. Each time I run the model, the result is different. Is there a way to fix the seed to create reproducible results? Thank you! 回答1: As @Poete_Maudit said here: How to get reproducible results in keras To get reproducible results you will have to do the following at the very beginning of your script (that will be forced to use a single CPU ): # Seed value (can actually be different for each attribution step) seed