@Test public void testIris() { System.out.println("Iris"); int[] prediction = LOOCV.classification(Iris.x, Iris.y, (x, y) -> FLD.fit(x, y)); int error = Error.of(Iris.y, prediction); System.out.println("Error = " + error); assertEquals(3, error); }
public static FLD fit(Formula formula, DataFrame data) { return fit(formula, data, new Properties()); }
FLD implements Classifier<double[]>, Projection<double[]> { public static FLD fit(Formula formula, DataFrame data) { return fit(formula, data, new Properties()); } }
FLD implements Classifier<double[]>, Projection<double[]> { public static FLD fit(Formula formula, DataFrame data) { return fit(formula, data, new Properties()); } FLD(double[] mean, double[][] mu, Matrix scaling);  FLD(double[] mean, double[][] mu, Matrix scaling, IntSet labels); }
FLD implements Classifier<double[]>, Projection<double[]> { public static FLD fit(Formula formula, DataFrame data) { return fit(formula, data, new Properties()); } FLD(double[] mean, double[][] mu, Matrix scaling);  FLD(double[] mean, double[][] mu, Matrix scaling, IntSet labels); static FLD fit(Formula formula, DataFrame data); static FLD fit(Formula formula, DataFrame data, Properties prop); static FLD fit(double[][] x, int[] y); static FLD fit(double[][] x, int[] y, int L, double tol); @Override int predict(double[] x); @Override double[] project(double[] x); @Override double[][] project(double[][] x); Matrix getProjection(); }
FLD implements Classifier<double[]>, Projection<double[]> { public static FLD fit(Formula formula, DataFrame data) { return fit(formula, data, new Properties()); } FLD(double[] mean, double[][] mu, Matrix scaling);  FLD(double[] mean, double[][] mu, Matrix scaling, IntSet labels); static FLD fit(Formula formula, DataFrame data); static FLD fit(Formula formula, DataFrame data, Properties prop); static FLD fit(double[][] x, int[] y); static FLD fit(double[][] x, int[] y, int L, double tol); @Override int predict(double[] x); @Override double[] project(double[] x); @Override double[][] project(double[][] x); Matrix getProjection();  }