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> |
labeled(Integer targetLabelIndex)
Sets the target label index.
|
EncoderTrainer<K,V> |
minCategorySize(Long minCategorySize)
Sets the min category size for category target encoding.
|
EncoderTrainer<K,V> |
minSamplesLeaf(Integer minSamplesLeaf)
Sets the minSamplesLeaf for target encoding.
|
EncoderTrainer<K,V> |
smoothing(Double smoothing)
Sets the smoothing for target encoding.
|
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, waitfit, fit, fit, fit, fit, learningEnvironmentpublic 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.public EncoderTrainer<K,V> labeled(Integer targetLabelIndex)
targetLabelIndex - Index of target label.public EncoderTrainer<K,V> smoothing(Double smoothing)
smoothing - smoothing value.public EncoderTrainer<K,V> minSamplesLeaf(Integer minSamplesLeaf)
minSamplesLeaf - min samples leaf.public EncoderTrainer<K,V> minCategorySize(Long minCategorySize)
minCategorySize - min samples leaf.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.14.0 Release Date : September 29 2022