@Test(expected = Test.None.class) public void testHyphen() throws IOException { System.out.println("hyphen"); Maxent model = Maxent.fit(Hyphen.p, Hyphen.x, Hyphen.y); int[] prediction = Validation.test(model, Hyphen.testx); int error = Error.of(prediction, Hyphen.testy); System.out.format("The error is %d of %d%n", error, Hyphen.testx.length); assertEquals(762, error); }
public static Maxent fit(int p, int[][] x, int[] y) { return fit(p, x, y, new Properties()); }
Maxent implements SoftClassifier<int[]>, OnlineClassifier<int[]> { public static Maxent fit(int p, int[][] x, int[] y) { return fit(p, x, y, new Properties()); } }
Maxent implements SoftClassifier<int[]>, OnlineClassifier<int[]> { public static Maxent fit(int p, int[][] x, int[] y) { return fit(p, x, y, new Properties()); } Maxent(int p, double L, double lambda, IntSet labels); }
Maxent implements SoftClassifier<int[]>, OnlineClassifier<int[]> { public static Maxent fit(int p, int[][] x, int[] y) { return fit(p, x, y, new Properties()); } Maxent(int p, double L, double lambda, IntSet labels); static Maxent fit(int p, int[][] x, int[] y); static Maxent fit(int p, int[][] x, int[] y, Properties prop); static Maxent fit(int p, int[][] x, int[] y, double lambda, double tol, int maxIter); static Binomial binomial(int p, int[][] x, int[] y); static Binomial binomial(int p, int[][] x, int[] y, Properties prop); static Binomial binomial(int p, int[][] x, int[] y, double lambda, double tol, int maxIter); static Multinomial multinomial(int p, int[][] x, int[] y); static Multinomial multinomial(int p, int[][] x, int[] y, Properties prop); static Multinomial multinomial(int p, int[][] x, int[] y, double lambda, double tol, int maxIter); int dimension(); void setLearningRate(double rate); double getLearningRate(); double loglikelihood(); double AIC(); }
Maxent implements SoftClassifier<int[]>, OnlineClassifier<int[]> { public static Maxent fit(int p, int[][] x, int[] y) { return fit(p, x, y, new Properties()); } Maxent(int p, double L, double lambda, IntSet labels); static Maxent fit(int p, int[][] x, int[] y); static Maxent fit(int p, int[][] x, int[] y, Properties prop); static Maxent fit(int p, int[][] x, int[] y, double lambda, double tol, int maxIter); static Binomial binomial(int p, int[][] x, int[] y); static Binomial binomial(int p, int[][] x, int[] y, Properties prop); static Binomial binomial(int p, int[][] x, int[] y, double lambda, double tol, int maxIter); static Multinomial multinomial(int p, int[][] x, int[] y); static Multinomial multinomial(int p, int[][] x, int[] y, Properties prop); static Multinomial multinomial(int p, int[][] x, int[] y, double lambda, double tol, int maxIter); int dimension(); void setLearningRate(double rate); double getLearningRate(); double loglikelihood(); double AIC();  }