New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DISCUSSION: Should default_rng()
have a seed
argument and what is our policy?
#16493
Comments
Definitely not. This is integral to supporting the pattern developed in |
Right did not think about that. So I suppose we should probably just document clearly that |
We should also document how to keep repeatability. There are various possibilities depending on the degree of repeatability one wants. From high to low I'd make it
The second it probably sufficient for most purposes |
Let me close this I guess. @rkern unless the resolution of that discussion is high up on the todo list, should we add a milestoned issue for the 1.20 release to update either PCG64 or at least |
We may have discussed this before, but it came up on the other issue.
@bashtage should we try to change the documentation of
default_rng()
to state clearly that we do not have guarantees about which bit generator is behinddefault_rng
? I wonder if there is a point indefault_rng()
if we cannot fix it up without a warning.Putting a warning on it would seem extremely annoying, even if you only need it when a
seed
is given. I admit, it is too bad that it means you have to do more than add a short seed when you do not want a fairly future proof (multiple numpy version) RNG stream.So I am curious if we should even consider deprecating the
seed
argument todefault_rng()
? We could possibly give an error pointing out the (current) alternative:Or we add to the documentation that the reproducibility is only guaranteed for the same NumPy (minor) version, but that seems like a trap for users.
The text was updated successfully, but these errors were encountered: