public class RMSE extends java.lang.Object implements RegressionMeasure
Constructor and Description |
---|
RMSE() |
Modifier and Type | Method and Description |
---|---|
double |
measure(double[] truth,
double[] prediction)
Returns an index to measure the quality of regression.
|
static double |
of(double[] truth,
double[] prediction)
Calculates the root mean squared error.
|
java.lang.String |
toString() |
public static final RMSE instance
public double measure(double[] truth, double[] prediction)
RegressionMeasure
measure
in interface RegressionMeasure
truth
- the true response values.prediction
- the predicted response values.public static double of(double[] truth, double[] prediction)
public java.lang.String toString()
toString
in class java.lang.Object