random
– Low-level random numbers¶
The theano.tensor.random module provides random-number drawing functionality that closely resembles the numpy.random module.
Reference¶
-
class
theano.tensor.random.
RandomStream
[source]¶ A helper class that tracks changes in a shared
numpy.random.RandomState
and behaves likenumpy.random.RandomState
by managing access to `RandomVariable`s. For example:from theano.tensor.random.utils import RandomStream rng = RandomStream() sample = rng.normal(0, 1, size=(2, 2))
-
class
theano.tensor.random.
RandomStateType
(Type)[source]¶ A Type for variables that will take
numpy.random.RandomState
values.