jsat.datatransform
Interface InPlaceTransform
-
- All Superinterfaces:
- java.lang.Cloneable, DataTransform, java.io.Serializable
- All Known Subinterfaces:
- InPlaceInvertibleTransform
- All Known Implementing Classes:
- AutoDeskewTransform, Imputer, InsertMissingValuesTransform, LinearTransform, PNormNormalization, StandardizeTransform, UnitVarianceTransform, WhitenedZCA, ZeroMeanTransform
public interface InPlaceTransform extends DataTransform
An In Place Transform is one that has the same number of categorical and numeric features as the input. This means it can mutableTransform the input data point instead of allocating a new one, which can reduce overhead on memory allocations. This can be useful when performing many data transforms in cross validation or when processing new examples in an environment that is applying an already learned model.
This interface is assumed that it will be applied to numeric features. Incase this is not true, amutatesNominal()method is provided for the implementation to indicate otherwise.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description voidmutableTransform(DataPoint dp)Mutates the given data point.booleanmutatesNominal()By default returnsfalse.-
Methods inherited from interface jsat.datatransform.DataTransform
clone, fit, transform
-
-
-
-
Method Detail
-
mutableTransform
void mutableTransform(DataPoint dp)
Mutates the given data point. This causes side effects, altering the data point to have the same value as the output ofDataTransform.transform(jsat.classifiers.DataPoint).- Parameters:
dp- the data point to alter
-
mutatesNominal
boolean mutatesNominal()
By default returnsfalse. Only returns true if this transform will mutableTransform the nominal feature values of a data point.- Returns:
trueif nominal feature values are mutated,falseotherwise.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG