[SciPy-User] Use numpy.random.RandomState with scipy.stats
Robert Kern
robert.kern at gmail.com
Tue May 7 10:43:23 EDT 2013
On Tue, May 7, 2013 at 2:57 PM, Ahmed Fasih <wuzzyview at gmail.com> wrote:
> I really like the random variable objects in scipy.stats, e.g.,
> scipy.stats.norm, which let me store the parameters of a distribution and
> sample from it. I see that, to get repeatable results, scipy.stats
> documentation suggests setting the default global Numpy random seed via
> numpy.random.seed. The rest of my application uses individual random streams
> generated from numpy.random.RandomState, since I may have multiple streams.
> Is there any way to get my scipy.stats random variable objects to use a
> user-supplied RandomState object instead of the default numpy stream? If
> not, would this qualify as a (minor) bug?
Not quite a bug. It is a long-sought missing feature.
--
Robert Kern
More information about the SciPy-User
mailing list