K
- Type of a key in upstream
data.V
- Type of a value in upstream
data.public final class LabelEncoderPreprocessor<K,V> extends EncoderPreprocessor<K,V> implements DeployableObject
This preprocessor can transforms label column.
NOTE: it does not add new column but change data in-place.
basePreprocessor, encodingValues, handledIndices, KEY_FOR_NULL_VALUES, labelFrequencies
Constructor and Description |
---|
LabelEncoderPreprocessor(Map<String,Integer> labelFrequencies,
Preprocessor<K,V> basePreprocessor)
Constructs a new instance of Label Encoder 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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
map
andThen
andThen
public LabeledVector apply(K k, V v)
apply
in interface BiFunction<K,V,LabeledVector>
k
- Key.v
- Value.public List<Object> getDependencies()
getDependencies
in interface DeployableObject
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.11.0 Release Date : September 11 2021