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

Method __init__

monai/transforms/intensity/dictionary.py:195–207  ·  view source on GitHub ↗
(
        self,
        keys: KeysCollection,
        prob: float = 0.1,
        mean: float = 0.0,
        std: float = 0.1,
        dtype: DtypeLike = np.float32,
        allow_missing_keys: bool = False,
        sample_std: bool = True,
    )

Source from the content-addressed store, hash-verified

193 backend = RandGaussianNoise.backend
194
195 def __init__(
196 self,
197 keys: KeysCollection,
198 prob: float = 0.1,
199 mean: float = 0.0,
200 std: float = 0.1,
201 dtype: DtypeLike = np.float32,
202 allow_missing_keys: bool = False,
203 sample_std: bool = True,
204 ) -> None:
205 MapTransform.__init__(self, keys, allow_missing_keys)
206 RandomizableTransform.__init__(self, prob)
207 self.rand_gaussian_noise = RandGaussianNoise(mean=mean, std=std, prob=1.0, dtype=dtype, sample_std=sample_std)
208
209 def set_random_state(
210 self, seed: int | None = None, state: np.random.RandomState | None = None

Callers

nothing calls this directly

Calls 2

RandGaussianNoiseClass · 0.90
__init__Method · 0.45

Tested by

no test coverage detected