K
- Type of a key in upstream data.V
- Type of a value in upstream data.public class MedianOfMedianConvergenceChecker<K,V> extends ConvergenceChecker<K,V>
Constructor and Description |
---|
MedianOfMedianConvergenceChecker(long sampleSize,
IgniteFunction<Double,Double> lblMapping,
Loss loss,
DatasetBuilder<K,V> datasetBuilder,
Preprocessor<K,V> preprocessor,
double precision)
Creates an instance of MedianOfMedianConvergenceChecker.
|
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 MedianOfMedianConvergenceChecker(long sampleSize, IgniteFunction<Double,Double> lblMapping, Loss loss, DatasetBuilder<K,V> datasetBuilder, Preprocessor<K,V> preprocessor, double precision)
sampleSize
- Sample size.lblMapping
- External label to internal mapping.loss
- Loss function.datasetBuilder
- Dataset builder.preprocessor
- Upstream preprocessor.precision
- Precision.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.14 Release Date : November 5 2024