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 Type Description
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:

Name Type Description Default
**kwargs

Pydantic BaseMode model_dump method keyword arguments.

{}

Returns:

Type Description
{str: Any}

Dictionary representation of the model.

validate_means_stds()

Validate that the means and stds have the same length.

Returns:

Type Description
Self

The instance of the model.