Package smile.validation.metric
Interface RegressionMetric
- All Superinterfaces:
Serializable
,ToDoubleBiFunction<double[],
double[]>
An abstract interface to measure the regression performance.
-
Method Summary
Modifier and TypeMethodDescriptiondefault double
applyAsDouble
(double[] truth, double[] prediction) double
score
(double[] truth, double[] prediction) Returns a score to measure the quality of regression.
-
Method Details
-
score
double score(double[] truth, double[] prediction) Returns a score to measure the quality of regression.- Parameters:
truth
- the true response values.prediction
- the predicted response values.- Returns:
- the metric.
-
applyAsDouble
default double applyAsDouble(double[] truth, double[] prediction) - Specified by:
applyAsDouble
in interfaceToDoubleBiFunction<double[],
double[]>
-