You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is generally preferable if module level code doesn't have side-effects. i.e. just importing a module shouldn't change anything (there may be few exceptions). It would be better if the seed was set by the main method for example.
I wonder if we should fix this, the whole issue here is that numpy has these seeds that are static. Whenever you set them I guess they will be modifying the internal state. If you, for example, instantiate the data _generator the seed will be modified.
It is generally preferable if module level code doesn't have side-effects. i.e. just importing a module shouldn't change anything (there may be few exceptions). It would be better if the seed was set by the main method for example.
e.g.
At the end, I would expect the seed to be the same.
(It's not a big issue as there is a simple workaround)
The text was updated successfully, but these errors were encountered: