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.RandomStateand behaves likenumpy.random.RandomStateby 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.RandomStatevalues.