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
Copies the transformation.
Fits the transformation.
Fits and transforms the input.
Inverse transform of the input.
Returns true if transformation strategy is fitted.
Method to implement to reset fitted values.
Transforms the input.