M - Type of model.K - Type of a key in upstream data.V - Type of a value in upstream data.public abstract class AbstractCrossValidation<M extends IgniteModel<Vector,Double>,K,V> extends Object implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractCrossValidation.TaskResult
Represents the scores and map of parameters.
|
| Modifier and Type | Field and Description |
|---|---|
protected int |
amountOfFolds
Amount of folds.
|
protected LearningEnvironmentBuilder |
envBuilder
Learning environment builder.
|
protected LearningEnvironment |
environment
Learning Environment.
|
protected IgniteBiPredicate<K,V> |
filter
Filter.
|
protected boolean |
isRunningOnPipeline
Execution over the pipeline or the chain of preprocessors and separate trainer, otherwise.
|
protected UniformMapper<K,V> |
mapper
Mapper.
|
protected Metric |
metric
Metric.
|
protected ParamGrid |
paramGrid
Parameter grid.
|
protected int |
parts
Parts.
|
protected Pipeline<K,V,Integer,Double> |
pipeline
Pipeline.
|
protected Preprocessor<K,V> |
preprocessor
Preprocessor.
|
protected DatasetTrainer<M,Double> |
trainer
Trainer.
|
| Constructor and Description |
|---|
AbstractCrossValidation() |
protected LearningEnvironmentBuilder envBuilder
protected LearningEnvironment environment
protected DatasetTrainer<M extends IgniteModel<Vector,Double>,Double> trainer
protected Metric metric
protected Preprocessor<K,V> preprocessor
protected IgniteBiPredicate<K,V> filter
protected int amountOfFolds
protected int parts
protected ParamGrid paramGrid
protected boolean isRunningOnPipeline
protected UniformMapper<K,V> mapper
public CrossValidationResult tuneHyperParameters()
public abstract double[] scoreByFolds()
protected double[] score(Function<IgniteBiPredicate<K,V>,DatasetBuilder<K,V>> datasetBuilderSupplier)
datasetBuilderSupplier - Dataset builder supplier.protected double[] scorePipeline(Function<IgniteBiPredicate<K,V>,DatasetBuilder<K,V>> datasetBuilderSupplier)
datasetBuilderSupplier - Dataset builder supplier.public AbstractCrossValidation<M,K,V> withTrainer(DatasetTrainer<M,Double> trainer)
trainer - Trainer.public AbstractCrossValidation<M,K,V> withMetric(MetricName metric)
metric - Metric.public AbstractCrossValidation<M,K,V> withPreprocessor(Preprocessor<K,V> preprocessor)
preprocessor - Preprocessor.public AbstractCrossValidation<M,K,V> withFilter(IgniteBiPredicate<K,V> filter)
filter - Filter.public AbstractCrossValidation<M,K,V> withAmountOfFolds(int amountOfFolds)
amountOfFolds - Amount of folds.public AbstractCrossValidation<M,K,V> withParamGrid(ParamGrid paramGrid)
paramGrid - Parameter grid.public AbstractCrossValidation<M,K,V> isRunningOnPipeline(boolean runningOnPipeline)
runningOnPipeline - Running on pipeline.public AbstractCrossValidation<M,K,V> withEnvironmentBuilder(LearningEnvironmentBuilder envBuilder)
envBuilder - Learning environment builder.public AbstractCrossValidation<M,K,V> withPipeline(Pipeline<K,V,Integer,Double> pipeline)
pipeline - Pipeline.public AbstractCrossValidation<M,K,V> withMapper(UniformMapper<K,V> mapper)
mapper - Mapper.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.14.0 Release Date : September 29 2022