K
- Type of a key in upstream
data.V
- Type of a value in upstream
data.public class EncoderTrainer<K,V> extends Object implements PreprocessingTrainer<K,V,Object[],Vector>
Constructor and Description |
---|
EncoderTrainer() |
Modifier and Type | Method and Description |
---|---|
EncoderPreprocessor<K,V> |
fit(DatasetBuilder<K,V> datasetBuilder,
IgniteBiFunction<K,V,Object[]> basePreprocessor)
Fits preprocessor.
|
EncoderTrainer<K,V> |
withEncodedFeature(int idx)
Add the index of encoded feature.
|
EncoderTrainer<K,V> |
withEncodedFeatures(Set<Integer> handledIndices)
Sets the indices of features which should be encoded.
|
EncoderTrainer<K,V> |
withEncoderType(EncoderType type)
Sets the encoder preprocessor type.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
fit, fit
public EncoderPreprocessor<K,V> fit(DatasetBuilder<K,V> datasetBuilder, IgniteBiFunction<K,V,Object[]> basePreprocessor)
public EncoderTrainer<K,V> withEncodedFeature(int idx)
idx
- The index of encoded feature.public EncoderTrainer<K,V> withEncoderType(EncoderType type)
type
- The encoder preprocessor type.public EncoderTrainer<K,V> withEncodedFeatures(Set<Integer> handledIndices)
handledIndices
- Indices of features which should be encoded.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.7.2 Release Date : February 6 2019