earth2studio.perturbation.Gaussian#

class earth2studio.perturbation.Gaussian(noise_amplitude=0.05)[source]#

Standard Gaussian peturbation

Parameters:

noise_amplitude (float | Tensor, optional) – Noise amplitude, by default 0.05. If a tensor, this must be broadcastable with the input data.

__call__(x, coords)[source]#

Apply perturbation method

Parameters:
  • x (torch.Tensor) – Input tensor intended to apply perturbation on

  • coords (CoordSystem) – Ordered dict representing coordinate system that describes the tensor

Returns:

Output tensor and respective coordinate system dictionary

Return type:

tuple[torch.Tensor, CoordSystem]

Examples using earth2studio.perturbation.Gaussian#

Model Hook Injection: Perturbation

Model Hook Injection: Perturbation