Skip to content
heliaEDGE
Reference
HELIA

random_gaussian_noise

This module provides classes to build random Gaussian noise layers.

Classes

Name Description
RandomGaussianNoise1D Random Gaussian noise 1D

Machine-readable model

class

Apply additive zero-centered Gaussian noise.

helia_edge/layers/preprocessing/random_gaussian_noise.py:17

RandomGaussianNoise1D(factor: float | tuple[float, float] = 0.1, **kwargs={})

Apply additive zero-centered Gaussian noise.

Example:

x = np.sin(2*np.pi*10*np.arange(duration_size)/100)
lyr = RandomGaussianNoise1D(factor=0.1)
y = lyr(x)

Base class: BaseAugmentation1D.

Inherited from BaseAugmentation: augment_masks(), augment_sample(), augment_targets(), batch_augment(), call().

Parameters of RandomGaussianNoise1D
NameTypeDefaultDescription
factorfloat0.1Standard deviation of the Gaussian noise.
method

Generate noise tensor

helia_edge/layers/preprocessing/random_gaussian_noise.py:39

get_random_transformations(input_shape: tuple[int, ...]) -> dict

Generate noise tensor

Parameters of get_random_transformations
NameTypeDefaultDescription
input_shapetuple[int, ...]RequiredInput shape.
Returns of get_random_transformations
ValueTypeDescription
dictdictDictionary containing the noise tensor.