@Test public void test() { System.out.println("MSE"); double[] truth = { 83.0, 88.5, 88.2, 89.5, 96.2, 98.1, 99.0, 100.0, 101.2, 104.6, 108.4, 110.8, 112.6, 114.2, 115.7, 116.9 }; double[] prediction = { 83.60082, 86.94973, 88.09677, 90.73065, 96.53551, 97.83067, 98.12232, 99.87776, 103.20861, 105.08598, 107.33369, 109.57251, 112.98358, 113.92898, 115.50214, 117.54028, }; MSE instance = new MSE(); double expResult = 0.80275; double result = instance.measure(truth, prediction); assertEquals(expResult, result, 1E-5); }
@Override public double measure(double[] truth, double[] prediction) { return of(truth, prediction); }
MSE implements RegressionMeasure { @Override public double measure(double[] truth, double[] prediction) { return of(truth, prediction); } }
MSE implements RegressionMeasure { @Override public double measure(double[] truth, double[] prediction) { return of(truth, prediction); }  }
MSE implements RegressionMeasure { @Override public double measure(double[] truth, double[] prediction) { return of(truth, prediction); }  @Override double measure(double[] truth, double[] prediction); static double of(double[] truth, double[] prediction); @Override String toString(); }
MSE implements RegressionMeasure { @Override public double measure(double[] truth, double[] prediction) { return of(truth, prediction); }  @Override double measure(double[] truth, double[] prediction); static double of(double[] truth, double[] prediction); @Override String toString(); final static MSE instance; }