Skip to content

Normalize Config

Source

Pydantic model for the Normalize transform.

NormalizeConfig

Bases: TransformConfig

Pydantic model used to represent Normalize transformation.

The Normalize transform is a zero mean and unit variance transformation.

Attributes:

  • name (Literal['Normalize']) –

    Name of the transformation.

  • mean (float) –

    Mean value for normalization.

  • std (float) –

    Standard deviation value for normalization.

model_dump(**kwargs)

Return the model as a dictionary.

Parameters:

  • **kwargs

    Pydantic BaseMode model_dump method keyword arguments.

Returns:

  • {str: Any}

    Dictionary representation of the model.

validate_means_stds()

Validate that the means and stds have the same length.

Returns:

  • Self

    The instance of the model.