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

Function _choice_rs

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

Source from the content-addressed store, hash-verified

821
822
823def _choice_rs(state_data, a, size, replace, p):
824 state = array_creation_dispatch.RandomState(state_data)
825 return state.choice(a, size=size, replace=replace, p=p)
826
827
828def _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