rai_toolbox.perturbations.PerturbationModel#

class rai_toolbox.perturbations.PerturbationModel(*args, **kwargs)[source]#

Protocol for Perturbation Models.

__init__(*args, **kwargs)#
abstract __call__(data)[source]#

A perturbation model should take data as the input and output the peturbed data.

Parameters:
data: Tensor

The data to perturb.

Returns:
Tensor

The perturbed data with the same shape as data.

Methods

__init__(*args, **kwargs)

__call__(data)

A perturbation model should take data as the input and output the peturbed data.