Package smile.data.transform
Class InvertibleColumnTransform
java.lang.Object
smile.data.transform.ColumnTransform
smile.data.transform.InvertibleColumnTransform
- All Implemented Interfaces:
Serializable
,Function<Tuple,
,Tuple> InvertibleTransform
,Transform
Invertible column-wise transformation.
- See Also:
-
Constructor Details
-
InvertibleColumnTransform
public InvertibleColumnTransform(String name, Map<String, Function> transforms, Map<String, Function> inverses) Constructor.- Parameters:
name
- the name of transformation.transforms
- the map of column name to transform lambda.inverses
- the map of column name to inverse transform lambda.
-
-
Method Details
-
invert
Description copied from interface:InvertibleTransform
Inverse transform a tuple.- Specified by:
invert
in interfaceInvertibleTransform
- Parameters:
x
- a tuple.- Returns:
- the inverse transformed tuple.
-
invert
Description copied from interface:InvertibleTransform
Inverse transform a data frame.- Specified by:
invert
in interfaceInvertibleTransform
- Parameters:
data
- a data frame.- Returns:
- the inverse transformed data frame.
-