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

Method set_random_state

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

Source from the content-addressed store, hash-verified

2534 )
2535
2536 def set_random_state(self, seed: int | None = None, state: np.random.RandomState | None = None) -> RandGridPatchd:
2537 super().set_random_state(seed, state)
2538 self.patcher.set_random_state(seed, state)
2539 return self
2540
2541 def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]) -> dict[Hashable, NdarrayOrTensor]:
2542 """

Callers 1

test_rand_grid_patchdMethod · 0.95

Calls 1

set_random_stateMethod · 0.45

Tested by 1

test_rand_grid_patchdMethod · 0.76