(
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,
)
| 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 |
nothing calls this directly
no test coverage detected