DataObjectTransform

class aixd.data.transform.DataObjectTransform[source]

Bases: object

Abstract base class to implement DataObject transformation.

Subclass this class to implement custom transformations, by implementing the following methods:

  • transform: Method to implement to transform input data

  • inverse_transform: Method to implement to inverse transform input data

  • _fit_partial: Method to implement to fit transformation

  • is_fitted: Method to implement to check if transformation is fitted

and register the transformation using the decorator @register_transformation(“name”).

If the transformation requires no fitting, set the class attribute requires_fitting to False, so don’t need to implement the _fit_partial, and is_fitted method.

Methods

copy

Copies the transformation.

fit

Fits the transformation.

fit_transform

Fits and transforms the input.

inverse_transform

Inverse transform of the input.

is_fitted

Returns true if transformation strategy is fitted.

reset

Method to implement to reset fitted values.

transform

Transforms the input.