@Test public void testCPU() { System.out.println("CPU"); MathEx.setSeed(19650218); LinearModel model = OLS.fit(CPU.formula, CPU.data); System.out.println(model); double[] prediction = CrossValidation.regression(10, CPU.formula, CPU.data, (f, x) -> OLS.fit(f, x)); double rmse = RMSE.of(CPU.y, prediction); System.out.println("CPU 10-CV RMSE = " + rmse); assertEquals(55.272997, rmse, 1E-4); }
public static LinearModel fit(Formula formula, DataFrame data) { return fit(formula, data, new Properties()); }
OLS { public static LinearModel fit(Formula formula, DataFrame data) { return fit(formula, data, new Properties()); } }
OLS { public static LinearModel fit(Formula formula, DataFrame data) { return fit(formula, data, new Properties()); }  }
OLS { public static LinearModel fit(Formula formula, DataFrame data) { return fit(formula, data, new Properties()); }  static LinearModel fit(Formula formula, DataFrame data); static LinearModel fit(Formula formula, DataFrame data, Properties prop); static LinearModel fit(Formula formula, DataFrame data, String method, boolean stderr, boolean recursive); }
OLS { public static LinearModel fit(Formula formula, DataFrame data) { return fit(formula, data, new Properties()); }  static LinearModel fit(Formula formula, DataFrame data); static LinearModel fit(Formula formula, DataFrame data, Properties prop); static LinearModel fit(Formula formula, DataFrame data, String method, boolean stderr, boolean recursive);  }