MCPcopy Index your code
hub / github.com/dask/dask / RandomChoiceGenerator

Class RandomChoiceGenerator

dask/array/_array_expr/random.py:1030–1052  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1028
1029
1030class RandomChoiceGenerator(RandomChoice):
1031 _defaults = {}
1032
1033 @cached_property
1034 def state_data(self):
1035 return _spawn_bitgens(self._state, len(self.sizes))
1036
1037 def _layer(self) -> dict:
1038 return {
1039 k: (
1040 _choice_rng,
1041 bitgen,
1042 self.array,
1043 size,
1044 self.replace,
1045 self.p,
1046 self.axis,
1047 self.shuffle,
1048 )
1049 for k, bitgen, size in zip(
1050 self.__dask_keys__(), self.state_data, self.sizes
1051 )
1052 }
1053
1054
1055"""

Callers 1

choiceMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…