This object contains state to deterministically generate pseudo-random numbers from a variety of probability distributions. It is identical to np.random.RandomState
except that all functions also take a chunks=
keyword argument.
Object to pass to RandomState to serve as deterministic seed
A callable that, when provided with a seed
keyword provides an object that operates identically to np.random.RandomState
(the default). This might also be a function that returns a randomgen.RandomState
, mkl_random
, or cupy.random.RandomState
object.
Mersenne Twister pseudo-random number generator
>>> import dask.array as daSee :
... state = da.random.RandomState(1234) # a seed
... x = state.normal(10, 0.1, size=3, chunks=(2,))
... x.compute() array([10.01867852, 10.04812289, 9.89649746])
The following pages refer to to this document either explicitly or contain code examples using this.
dask.array.core.map_blocks
dask.array.random.RandomState
Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.
Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)
SVG is more flexible but power hungry; and does not scale well to 50 + nodes.
All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them