K
- Type of a key in upstream data.V
- Type of a value in upstream data.public class ConvergenceCheckerStub<K,V> extends ConvergenceChecker<K,V>
Constructor and Description |
---|
ConvergenceCheckerStub(long sampleSize,
IgniteFunction externalLbToInternalMapping,
Loss loss,
DatasetBuilder datasetBuilder,
Preprocessor<K,V> preprocessor,
double precision)
Creates an instance of ConvergenceCheckerStub.
|
Modifier and Type | Method and Description |
---|---|
Double |
computeMeanErrorOnDataset(Dataset<EmptyContext,? extends FeatureMatrixWithLabelsOnHeapData> dataset,
ModelsComposition mdl)
Compute error for given model on learning dataset.
|
boolean |
isConverged(Dataset<EmptyContext,? extends FeatureMatrixWithLabelsOnHeapData> dataset,
ModelsComposition currMdl)
Checks convergency on dataset.
|
boolean |
isConverged(LearningEnvironmentBuilder envBuilder,
DatasetBuilder<K,V> datasetBuilder,
ModelsComposition currMdl)
Checks convergency on dataset.
|
computeError
public ConvergenceCheckerStub(long sampleSize, IgniteFunction externalLbToInternalMapping, Loss loss, DatasetBuilder datasetBuilder, Preprocessor<K,V> preprocessor, double precision)
sampleSize
- Sample size.externalLbToInternalMapping
- External label to internal mapping.loss
- Loss function.datasetBuilder
- Dataset builder.preprocessor
- Preprocessor.precision
- Precision.public boolean isConverged(LearningEnvironmentBuilder envBuilder, DatasetBuilder<K,V> datasetBuilder, ModelsComposition currMdl)
isConverged
in class ConvergenceChecker<K,V>
envBuilder
- Learning environment builder.currMdl
- Current model.public boolean isConverged(Dataset<EmptyContext,? extends FeatureMatrixWithLabelsOnHeapData> dataset, ModelsComposition currMdl)
isConverged
in class ConvergenceChecker<K,V>
dataset
- Dataset.currMdl
- Current model.public Double computeMeanErrorOnDataset(Dataset<EmptyContext,? extends FeatureMatrixWithLabelsOnHeapData> dataset, ModelsComposition mdl)
computeMeanErrorOnDataset
in class ConvergenceChecker<K,V>
dataset
- Learning dataset.mdl
- Model.
GridGain In-Memory Computing Platform : ver. 8.9.15 Release Date : December 3 2024