public class RegressionMetricStatsAggregator extends Object implements MetricStatsAggregator<Double,EmptyContext<Double>,RegressionMetricStatsAggregator>
| Constructor and Description |
|---|
RegressionMetricStatsAggregator()
Creates an instance of RegressionMetricStatsAggregator.
|
RegressionMetricStatsAggregator(long n,
double absoluteError,
double rss,
double sumOfYs,
double sumOfSquaredYs)
Creates an instance of RegressionMetricStatsAggregator.
|
| Modifier and Type | Method and Description |
|---|---|
void |
aggregate(IgniteModel<Vector,Double> model,
LabeledVector<Double> vector)
Aggregates statistics for metric computation given model and vector with answer.
|
EmptyContext |
createInitializedContext()
Returns initialized context.
|
double |
getMAE()
Returns mean absolute error.
|
double |
getMSE()
Returns mean squared error.
|
double |
getRss()
Returns RSS.
|
void |
initByContext(EmptyContext context)
Inits this aggtegator by evaluation context.
|
RegressionMetricStatsAggregator |
mergeWith(RegressionMetricStatsAggregator other)
Merges statistics of two aggregators to new aggreagator.
|
double |
ysRss()
Returns sum of squared errors.
|
double |
ysVariance()
Returns label variance.
|
public RegressionMetricStatsAggregator()
public RegressionMetricStatsAggregator(long n,
double absoluteError,
double rss,
double sumOfYs,
double sumOfSquaredYs)
n - Number of examples in dataset.absoluteError - Absolute error.rss - Rss.sumOfYs - Sum of labels.sumOfSquaredYs - Sum of squared labels.public void aggregate(IgniteModel<Vector,Double> model, LabeledVector<Double> vector)
aggregate in interface MetricStatsAggregator<Double,EmptyContext<Double>,RegressionMetricStatsAggregator>model - Model.vector - Vector.public RegressionMetricStatsAggregator mergeWith(RegressionMetricStatsAggregator other)
mergeWith in interface MetricStatsAggregator<Double,EmptyContext<Double>,RegressionMetricStatsAggregator>other - Other aggregator.public EmptyContext createInitializedContext()
createInitializedContext in interface MetricStatsAggregator<Double,EmptyContext<Double>,RegressionMetricStatsAggregator>public void initByContext(EmptyContext context)
initByContext in interface MetricStatsAggregator<Double,EmptyContext<Double>,RegressionMetricStatsAggregator>context - Evaluation context.public double getMAE()
public double getMSE()
public double ysRss()
public double ysVariance()
public double getRss()
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.14.0 Release Date : September 29 2022