@Test(expected = Test.None.class) public void testUSPS() throws Exception { System.out.println("USPS"); RDA model = RDA.fit(USPS.x, USPS.y, 0.7); int[] prediction = Validation.test(model, USPS.testx); int error = Error.of(USPS.testy, prediction); System.out.println("Error = " + error); assertEquals(235, error); java.nio.file.Path temp = smile.data.Serialize.write(model); smile.data.Serialize.read(temp); }
public static RDA fit(Formula formula, DataFrame data) { return fit(formula, data, new Properties()); }
RDA extends QDA { public static RDA fit(Formula formula, DataFrame data) { return fit(formula, data, new Properties()); } }
RDA extends QDA { public static RDA fit(Formula formula, DataFrame data) { return fit(formula, data, new Properties()); } RDA(double[] priori, double[][] mu, double[][] eigen, Matrix[] scaling);  RDA(double[] priori, double[][] mu, double[][] eigen, Matrix[] scaling, IntSet labels); }
RDA extends QDA { public static RDA fit(Formula formula, DataFrame data) { return fit(formula, data, new Properties()); } RDA(double[] priori, double[][] mu, double[][] eigen, Matrix[] scaling);  RDA(double[] priori, double[][] mu, double[][] eigen, Matrix[] scaling, IntSet labels); static RDA fit(Formula formula, DataFrame data); static RDA fit(Formula formula, DataFrame data, Properties prop); static RDA fit(double[][] x, int[] y, Properties prop); static RDA fit(double[][] x, int[] y, double alpha); static RDA fit(double[][] x, int[] y, double alpha, double[] priori, double tol); }
RDA extends QDA { public static RDA fit(Formula formula, DataFrame data) { return fit(formula, data, new Properties()); } RDA(double[] priori, double[][] mu, double[][] eigen, Matrix[] scaling);  RDA(double[] priori, double[][] mu, double[][] eigen, Matrix[] scaling, IntSet labels); static RDA fit(Formula formula, DataFrame data); static RDA fit(Formula formula, DataFrame data, Properties prop); static RDA fit(double[][] x, int[] y, Properties prop); static RDA fit(double[][] x, int[] y, double alpha); static RDA fit(double[][] x, int[] y, double alpha, double[] priori, double tol);  }