MCPcopy Create free account
hub / github.com/Project-MONAI/MONAI / set_random_state

Method set_random_state

monai/transforms/spatial/dictionary.py:1141–1144  ·  view source on GitHub ↗
(self, seed: int | None = None, state: np.random.RandomState | None = None)

Source from the content-addressed store, hash-verified

1139 self.rand_affine.lazy = val
1140
1141 def set_random_state(self, seed: int | None = None, state: np.random.RandomState | None = None) -> RandAffined:
1142 self.rand_affine.set_random_state(seed, state)
1143 super().set_random_state(seed, state)
1144 return self
1145
1146 def __call__(
1147 self, data: Mapping[Hashable, NdarrayOrTensor], lazy: bool | None = None

Callers

nothing calls this directly

Calls 1

set_random_stateMethod · 0.45

Tested by

no test coverage detected