@Test public void testProstate() { System.out.println("Prostate"); LinearModel model = OLS.fit(Prostate.formula, Prostate.train); System.out.println(model); double[] prediction = Validation.test(model, Prostate.test); double rmse = RMSE.of(Prostate.testy, prediction); System.out.println("RMSE on test data = " + rmse); assertEquals(0.721993, 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);  }