secmlt.models.data_processing package#

Submodules#

secmlt.models.data_processing.data_processing module#

Interface for the data processing functionalities.

class secmlt.models.data_processing.data_processing.DataProcessing[source]#

Bases: ABC

Abstract data processing class.

abstract invert(x: Tensor, *args, **kwargs) Tensor[source]#

Apply the inverted transform (if defined).

Parameters:

x (torch.Tensor) – Input samples.

Returns:

The samples in the input space before the transformation.

Return type:

torch.Tensor

secmlt.models.data_processing.identity_data_processing module#

Identity data processing, returns the samples as they are.

class secmlt.models.data_processing.identity_data_processing.IdentityDataProcessing[source]#

Bases: DataProcessing

Identity transformation.

invert(x: Tensor) Tensor[source]#

Return the sample as it is.

Parameters:

x (torch.Tensor) – Input samples.

Returns:

Unchanged samples for identity inverse transformation.

Return type:

torch.Tensor

Module contents#

Functionalities for data transformations.