K
- Type of a key in upstream
data.V
- Type of a value in upstream
data.public class MaxAbsScalerPreprocessor<K,V> extends Object implements IgniteBiFunction<K,V,Vector>
[-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,
IgniteBiFunction<K,V,Vector> basePreprocessor)
Constructs a new instance of maxabsscaling preprocessor.
|
Modifier and Type | Method and Description |
---|---|
Vector |
apply(K k,
V v)
Applies this preprocessor.
|
double[] |
getMaxAbs() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
andThen
andThen
public MaxAbsScalerPreprocessor(double[] maxAbs, IgniteBiFunction<K,V,Vector> basePreprocessor)
maxAbs
- Maximal absolute values.basePreprocessor
- Base preprocessor.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.7.2 Release Date : February 6 2019