- Notifications
You must be signed in to change notification settings - Fork19.7k
Closed
Description
with theano backend (CPU or GPU without cnDNN), I could train reproducible model by
fixed_seed_num=1234nunpy.random.seed(fixed_seed_num)random.seed(fixed_seed_num)# not sure if needed or not
While in pure tensorflow without keras wrapper, it could also be reproducible by
tersorflow.set_random_seed(fixed_seed_num)
Don't know why, but in Keras + tensorflow backend, non of the above could give reproducible training model.
Environment:
- Keras: v0.3.2
- tensorflow: v0.7.1
- Macbook OS X v10.11.4
- tensorflow is using CPU
BTW: it would be great if keras could expose an unified API for reproducible training. something like:
keras.set_random_seed(fixed_seed_num)Metadata
Metadata
Assignees
Labels
No labels