Fixed the random number generators.#83
Conversation
|
Thanks, the code also use the python random module, not just numpy random. Can you change the code to only use numpy random module? That could remove the not deterministic behavior you are seeing. |
|
@nouiz thanks, it seems like you are right, mixing python number generator and numpy's seem to cause some non-deterministic behaviors. Changing python's random number generator to numpy's seem to fix the problem with this script. |
|
The random come from the fac that they are independent rng. seeding python rng could have also fixed this. But I prefer to use only one if there isn't a good reason. I'll merge this PR when travis pass. thanks |
|
Hi @nouiz I was already seeding the python rng as well. That was the strange part. |
|
Here is the line that I set the seed in my prev commit: Anyways the tests are passing now. |
Fixed the random number generators.
Fixed the random number generators.
Fixed the random number generators. Former-commit-id: ad9470f
Set default seed for all the random number generators in the LSTM code.