Package smile.validation.metric
Interface RegressionMetric
- All Superinterfaces:
Serializable
An abstract interface to measure the regression performance.
-
Method Summary
Modifier and TypeMethodDescriptiondouble
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.
-