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

Method set_random_state

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

Source from the content-addressed store, hash-verified

108 self.cutout = CutOut(batch_size)
109
110 def set_random_state(self, seed: int | None = None, state: np.random.RandomState | None = None) -> CutOutd:
111 super().set_random_state(seed, state)
112 self.cutout.set_random_state(seed, state)
113 return self
114
115 def __call__(self, data):
116 d = dict(data)

Callers 1

test_cutoutdMethod · 0.95

Calls 1

set_random_stateMethod · 0.45

Tested by 1

test_cutoutdMethod · 0.76