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

Method set_random_state

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

Source from the content-addressed store, hash-verified

2114 self._lazy = val
2115
2116 def set_random_state(self, seed: int | None = None, state: np.random.RandomState | None = None) -> RandZoomd:
2117 super().set_random_state(seed, state)
2118 self.rand_zoom.set_random_state(seed, state)
2119 return self
2120
2121 def __call__(self, data: Mapping[Hashable, torch.Tensor], lazy: bool | None = None) -> dict[Hashable, torch.Tensor]:
2122 """

Callers 2

test_correct_resultsMethod · 0.95
test_auto_expand_3dMethod · 0.95

Calls 1

set_random_stateMethod · 0.45

Tested by 2

test_correct_resultsMethod · 0.76
test_auto_expand_3dMethod · 0.76