The docs say:
Compatibility Guarantee A fixed seed and a fixed series of calls to ‘RandomState’ methods using the same parameters will always produce the same results up to roundoff error except when the values were incorrect. Incorrect values will be fixed and the NumPy version in which the fix was made will be noted in the relevant docstring. Extension of existing parameter ranges and the addition of new parameters is allowed as long the previous behavior remains unchanged.
There is no mention of operating systems.
If I call np.random.seed(42) on windows and linux, will the random numbers generated afterwards be the same ? Will it be the same across different versions of 64bit Ubuntu ?
I assume that the rng uses system libraries, so the code is probably not portable. If that's true, is there a fix ? I know that this would probably be ugly, like changing the linux rng system for something that emulates windows. But I'm ready for creative solutions.
Aucun commentaire:
Enregistrer un commentaire