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>
Constructor and Description |
---|
EncoderTrainer() |
Modifier and Type | Method and Description |
---|---|
EncoderPreprocessor<K,V> |
fit(LearningEnvironmentBuilder envBuilder,
DatasetBuilder<K,V> datasetBuilder,
Preprocessor<K,V> 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> |
withEncoderIndexingStrategy(EncoderSortingStrategy encoderSortingStgy)
Sets the encoder indexing strategy.
|
EncoderTrainer<K,V> |
withEncoderType(EncoderType type)
Sets the encoder preprocessor type.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
fit, fit, fit, fit, fit, learningEnvironment
public EncoderPreprocessor<K,V> fit(LearningEnvironmentBuilder envBuilder, DatasetBuilder<K,V> datasetBuilder, Preprocessor<K,V> basePreprocessor)
fit
in interface PreprocessingTrainer<K,V>
envBuilder
- Learning environment builder.datasetBuilder
- Dataset builder.basePreprocessor
- Base preprocessor.public EncoderTrainer<K,V> withEncodedFeature(int idx)
idx
- The index of encoded feature.public EncoderTrainer<K,V> withEncoderIndexingStrategy(EncoderSortingStrategy encoderSortingStgy)
encoderSortingStgy
- The encoder indexing strategy.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.
GridGain In-Memory Computing Platform : ver. 8.9.15 Release Date : December 3 2024