K
- Type of a key in upstream
data.V
- Type of a value in upstream
data.public final class OneHotEncoderPreprocessor<K,V> extends EncoderPreprocessor<K,V> implements DeployableObject
basePreprocessor, encodingValues, handledIndices, KEY_FOR_NULL_VALUES
Constructor and Description |
---|
OneHotEncoderPreprocessor(Map<String,Integer>[] encodingValues,
Preprocessor<K,V> basePreprocessor,
Set<Integer> handledIndices)
Constructs a new instance of One Hot 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 OneHotEncoderPreprocessor(Map<String,Integer>[] encodingValues, Preprocessor<K,V> basePreprocessor, Set<Integer> handledIndices)
basePreprocessor
- Base preprocessor.handledIndices
- Handled indices.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
GridGain In-Memory Computing Platform : ver. 8.9.15 Release Date : December 3 2024