@Test public void testMeasure() { System.out.println("fallout"); int[] truth = { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; int[] prediction = { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; Fallout instance = new Fallout(); double expResult = 0.02857; double result = instance.measure(truth, prediction); assertEquals(expResult, result, 1E-5); }
@Override public double measure(int[] truth, int[] prediction) { return of(truth, prediction); }
Fallout implements ClassificationMeasure { @Override public double measure(int[] truth, int[] prediction) { return of(truth, prediction); } }
Fallout implements ClassificationMeasure { @Override public double measure(int[] truth, int[] prediction) { return of(truth, prediction); }  }
Fallout implements ClassificationMeasure { @Override public double measure(int[] truth, int[] prediction) { return of(truth, prediction); }  @Override double measure(int[] truth, int[] prediction); static double of(int[] truth, int[] prediction); @Override String toString(); }
Fallout implements ClassificationMeasure { @Override public double measure(int[] truth, int[] prediction) { return of(truth, prediction); }  @Override double measure(int[] truth, int[] prediction); static double of(int[] truth, int[] prediction); @Override String toString(); final static Fallout instance; }