[Numpy-discussion] stability of numpy.random.RandomState API?
Thu Nov 6 14:09:19 CST 2008
On Thu, Nov 6, 2008 at 14:05, Barry Wark <email@example.com> wrote:
> I'm just about to embark on a long-term research project and was
> planning to use numpy.random to generate stimuli for our experiments.
> We plan to store only the parameters and RandomState seed for each
> stimulus and I'm concerned about stability of the API in the long
> term: will the parameters and random seed we store now work with
> future versions of numpy.random?
It should. But just in case, make sure you explicitly instantiate
RandomState objects instead of using the functions in numpy.random.
That way, should we need to fix some bug that might change the
results, you can always pull out the current mtrand code and use it
> I think I recall that there was a
> change in the random seed format some time around numpy 1.0.
I don't think I changed it after 1.0. Before 1.0, we explicitly warned
people about API instability.
"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
-- Umberto Eco
More information about the Numpy-discussion