MCPcopy Create free account
hub / github.com/dask/dask / _choice_rs

Function _choice_rs

dask/array/random.py:827–829  ·  view source on GitHub ↗
(state_data, a, size, replace, p)

Source from the content-addressed store, hash-verified

825
826
827def _choice_rs(state_data, a, size, replace, p):
828 state = array_creation_dispatch.RandomState(state_data)
829 return state.choice(a, size=size, replace=replace, p=p)
830
831
832def _choice_validate_params(state, a, size, replace, p, axis, chunks):

Callers

nothing calls this directly

Calls 2

choiceMethod · 0.95
RandomStateMethod · 0.45

Tested by

no test coverage detected