K
- Type of a key in upstream data.V
- Type of a value in upstream data.public class MeanAbsValueConvergenceChecker<K,V> extends ConvergenceChecker<K,V>
Constructor and Description |
---|
MeanAbsValueConvergenceChecker(long sampleSize,
IgniteFunction<Double,Double> externalLbToInternalMapping,
Loss loss,
DatasetBuilder<K,V> datasetBuilder,
Preprocessor<K,V> preprocessor,
double precision)
Creates an instance of MeanAbsValueConvergenceChecker.
|
Modifier and Type | Method and Description |
---|---|
Double |
computeMeanErrorOnDataset(Dataset<EmptyContext,? extends FeatureMatrixWithLabelsOnHeapData> dataset,
ModelsComposition mdl)
Compute error for given model on learning dataset.
|
computeError, isConverged, isConverged
public MeanAbsValueConvergenceChecker(long sampleSize, IgniteFunction<Double,Double> externalLbToInternalMapping, Loss loss, DatasetBuilder<K,V> datasetBuilder, Preprocessor<K,V> preprocessor, double precision)
sampleSize
- Sample size.externalLbToInternalMapping
- External label to internal mapping.loss
- Loss.datasetBuilder
- Dataset builder.preprocessor
- Upstream vectorizer.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