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

Method __init__

monai/transforms/regularization/dictionary.py:106–108  ·  view source on GitHub ↗
(self, keys: KeysCollection, batch_size: int, allow_missing_keys: bool = False)

Source from the content-addressed store, hash-verified

104 """
105
106 def __init__(self, keys: KeysCollection, batch_size: int, allow_missing_keys: bool = False) -> None:
107 super().__init__(keys, allow_missing_keys)
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)

Callers

nothing calls this directly

Calls 2

CutOutClass · 0.85
__init__Method · 0.45

Tested by

no test coverage detected