K
- Type of a key in upstream
data.V
- Type of a value in upstream
data.R
- Type of a result in upstream
feature extractor.public class Pipeline<K,V,R> extends Object
fit()
method is called, the stages are executed in order.Constructor and Description |
---|
Pipeline() |
Modifier and Type | Method and Description |
---|---|
Pipeline<K,V,R> |
addFeatureExtractor(IgniteBiFunction<K,V,R> featureExtractor)
Adds feature extractor as a zero stage.
|
Pipeline<K,V,R> |
addLabelExtractor(IgniteBiFunction<K,V,Double> lbExtractor)
Adds a label extractor for the produced model.
|
Pipeline<K,V,R> |
addPreprocessor(PreprocessingTrainer preprocessor)
Adds a preprocessor.
|
Pipeline<K,V,R> |
addTrainer(DatasetTrainer trainer)
Adds a trainer.
|
PipelineMdl<K,V> |
fit(Ignite ignite,
IgniteCache<K,V> cache)
Fits the pipeline to the input cache.
|
PipelineMdl<K,V> |
fit(Map<K,V> data,
int parts)
Fits the pipeline to the input mock data.
|
public Pipeline<K,V,R> addFeatureExtractor(IgniteBiFunction<K,V,R> featureExtractor)
featureExtractor
- The parameter value.public Pipeline<K,V,R> addLabelExtractor(IgniteBiFunction<K,V,Double> lbExtractor)
lbExtractor
- The parameter value.public Pipeline<K,V,R> addPreprocessor(PreprocessingTrainer preprocessor)
preprocessor
- The parameter value.public Pipeline<K,V,R> addTrainer(DatasetTrainer trainer)
trainer
- The parameter value.public PipelineMdl<K,V> fit(Ignite ignite, IgniteCache<K,V> cache)
ignite
- Ignite instance.cache
- Ignite cache with upstream
data.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.7.2 Release Date : February 6 2019