@Test public void testRecall() { Assert.assertEquals(1.0d, FMeasure.recall(gold, gold), DELTA); Assert.assertEquals(0, FMeasure.recall(gold, predictedCompletelyDistinct), DELTA); Assert.assertEquals(0, FMeasure.recall(gold, new Object[] {}), DELTA); Assert.assertEquals(Double.NaN, FMeasure.recall(new Object[] {}, gold), DELTA); Assert.assertEquals(2d / gold.length, FMeasure.recall(gold, predicted), DELTA); }
public static double recall(final Object[] references, final Object[] predictions) { if (references.length > 0) { return countTruePositives(references, predictions) / (double) references.length; } else { return Double.NaN; } }
FMeasure { public static double recall(final Object[] references, final Object[] predictions) { if (references.length > 0) { return countTruePositives(references, predictions) / (double) references.length; } else { return Double.NaN; } } }
FMeasure { public static double recall(final Object[] references, final Object[] predictions) { if (references.length > 0) { return countTruePositives(references, predictions) / (double) references.length; } else { return Double.NaN; } }  }
FMeasure { public static double recall(final Object[] references, final Object[] predictions) { if (references.length > 0) { return countTruePositives(references, predictions) / (double) references.length; } else { return Double.NaN; } }  double getPrecisionScore(); double getRecallScore(); double getFMeasure(); void updateScores(final Object[] references, final Object[] predictions); void mergeInto(final FMeasure measure); @Override String toString(); static double precision(final Object[] references, final Object[] predictions); static double recall(final Object[] references, final Object[] predictions); }
FMeasure { public static double recall(final Object[] references, final Object[] predictions) { if (references.length > 0) { return countTruePositives(references, predictions) / (double) references.length; } else { return Double.NaN; } }  double getPrecisionScore(); double getRecallScore(); double getFMeasure(); void updateScores(final Object[] references, final Object[] predictions); void mergeInto(final FMeasure measure); @Override String toString(); static double precision(final Object[] references, final Object[] predictions); static double recall(final Object[] references, final Object[] predictions);  }