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

Method __init__

monai/transforms/regularization/dictionary.py:38–42  ·  view source on GitHub ↗
(
        self, keys: KeysCollection, batch_size: int, alpha: float = 1.0, allow_missing_keys: bool = False
    )

Source from the content-addressed store, hash-verified

36 """
37
38 def __init__(
39 self, keys: KeysCollection, batch_size: int, alpha: float = 1.0, allow_missing_keys: bool = False
40 ) -> None:
41 MapTransform.__init__(self, keys, allow_missing_keys)
42 self.mixup = MixUp(batch_size, alpha)
43
44 def set_random_state(self, seed: int | None = None, state: np.random.RandomState | None = None) -> MixUpd:
45 super().set_random_state(seed, state)

Callers 2

__init__Method · 0.45
__init__Method · 0.45

Calls 1

MixUpClass · 0.85

Tested by

no test coverage detected