cellmap_data.transforms.augment.gaussian_noise

cellmap_data.transforms.augment.gaussian_noise#

Classes

GaussianNoise([mean, std])

Initialize the Gaussian noise.

class cellmap_data.transforms.augment.gaussian_noise.GaussianNoise(mean: float = 0.0, std: float = 1.0)[source]#

Initialize the Gaussian noise.

Parameters:
  • mean (float, optional) – Mean of the noise. Defaults to 0.0.

  • std (float, optional) – Standard deviation of the noise. Defaults to 1.0.

forward(x: Tensor) Tensor[source]#

Forward pass.

Parameters:

x (Tensor)

Return type:

Tensor