K
- Type of a key in upstream
data.V
- Type of a value in upstream
data.public class MinMaxScalerPreprocessor<K,V> extends Object implements IgniteBiFunction<K,V,Vector>
a_i = (a_i - min_i) / (max_i - min_i) for all i
,
where i
is a number of column, max_i
is the value of the maximum element in this columns,
min_i
is the value of the minimal element in this column.Constructor and Description |
---|
MinMaxScalerPreprocessor(double[] min,
double[] max,
IgniteBiFunction<K,V,Vector> basePreprocessor)
Constructs a new instance of minmaxscaling preprocessor.
|
Modifier and Type | Method and Description |
---|---|
Vector |
apply(K k,
V v)
Applies this preprocessor.
|
double[] |
getMax() |
double[] |
getMin() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
andThen
andThen
public MinMaxScalerPreprocessor(double[] min, double[] max, IgniteBiFunction<K,V,Vector> basePreprocessor)
min
- Minimal values.max
- Maximum values.basePreprocessor
- Base preprocessor.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.7.2 Release Date : February 6 2019