K - Type of a key in upstream data.V - Type of a value in upstream data.public final class MaxAbsScalerPreprocessor<K,V> extends Object implements Preprocessor<K,V>, DeployableObject
[-1,+1]. From
mathematical point of view it's the following function which is applied to every element in a dataset:
a_i = a_i / maxabs_i for all i,
where i is a number of column, maxabs_i is the value of the absolute maximum element in this column.| Constructor and Description |
|---|
MaxAbsScalerPreprocessor(double[] maxAbs,
Preprocessor<K,V> basePreprocessor)
Constructs a new instance of maxabsscaling preprocessor.
|
| Modifier and Type | Method and Description |
|---|---|
LabeledVector |
apply(K k,
V v)
Applies this preprocessor.
|
List<Object> |
getDependencies()
Returns dependencies of this object that can be object with class defined by client side and unknown for server.
|
double[] |
getMaxAbs() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmapandThenandThenpublic MaxAbsScalerPreprocessor(double[] maxAbs,
Preprocessor<K,V> basePreprocessor)
maxAbs - Maximal absolute values.basePreprocessor - Base preprocessor.public LabeledVector apply(K k, V v)
apply in interface BiFunction<K,V,LabeledVector>k - Key.v - Value.public double[] getMaxAbs()
public List<Object> getDependencies()
getDependencies in interface DeployableObject
GridGain In-Memory Computing Platform : ver. 8.9.26 Release Date : October 16 2025