Package ai.sklearn4j.base
Class TransformerMixin<InputType,OutputType>
- java.lang.Object
-
- ai.sklearn4j.base.TransformerMixin<InputType,OutputType>
-
- Type Parameters:
InputType- Type of the input for the transformation.OutputType- Type of the output for the transformation.
- Direct Known Subclasses:
Binarizer,LabelBinarizer,LabelEncoder,MaximumAbsoluteScaler,MinimumMaximumScaler,MultiLabelBinarizer,Normalizer,RobustScaler,StandardScaler
public abstract class TransformerMixin<InputType,OutputType> extends Object
Mixin class for all transformers in scikit-learn.
-
-
Constructor Summary
Constructors Constructor Description TransformerMixin()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract InputTypeinverseTransform(OutputType array)Takes a transformed array and reveres the transformation.abstract OutputTypetransform(InputType array)Takes the input array and transforms it.
-
-
-
Method Detail
-
transform
public abstract OutputType transform(InputType array)
Takes the input array and transforms it.- Parameters:
array- The array to transform.- Returns:
- The transformed array.
-
inverseTransform
public abstract InputType inverseTransform(OutputType array)
Takes a transformed array and reveres the transformation.- Parameters:
array- The array to apply reveres transform.- Returns:
- The inversed transform of array.
-
-