Skip to content

XY Flip Config

Source

Pydantic model for the XYFlip transform.

XYFlipConfig

Bases: TransformConfig

Pydantic model used to represent XYFlip transformation.

Attributes:

Name Type Description
name Literal['XYFlip']

Name of the transformation.

p float

Probability of applying the transform, by default 0.5.

seed Optional[int]

Seed for the random number generator, by default None.

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.