K - Type of a key in upstream data.V - Type of a value in upstream data.public class TargetEncoderPreprocessor<K,V> extends EncoderPreprocessor<K,V>
This preprocessor can transform multiple columns which indices are handled during training process. These indexes could be defined via .withEncodedFeature(featureIndex) call.
NOTE: it does not add new column but change data in-place.
| Modifier and Type | Field and Description |
|---|---|
protected static long |
serialVersionUID |
protected TargetEncodingMeta[] |
targetCounters
Filling values.
|
basePreprocessor, encodingValues, handledIndices, KEY_FOR_NULL_VALUES, labelFrequencies| Constructor and Description |
|---|
TargetEncoderPreprocessor(TargetEncodingMeta[] targetCounters,
Preprocessor<K,V> basePreprocessor,
Set<Integer> handledIndices)
Constructs a new instance of Frequency Encoder preprocessor.
|
| Modifier and Type | Method and Description |
|---|---|
LabeledVector |
apply(K k,
V v)
Applies this preprocessor.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmapandThenandThenprotected static final long serialVersionUID
protected final TargetEncodingMeta[] targetCounters
public TargetEncoderPreprocessor(TargetEncodingMeta[] targetCounters, Preprocessor<K,V> basePreprocessor, Set<Integer> handledIndices)
basePreprocessor - Base preprocessor.handledIndices - Handled indices.public LabeledVector apply(K k, V v)
k - Key.v - Value.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.14.0 Release Date : September 29 2022