Class SampleStats<T>
java.lang.Object
org.aksw.commons.collections.SampleStats<T>
- Type Parameters:
T-
all.negatives may be null, however all other fields must be given!
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> SampleStatsstatic <T> SampleStatsstatic <T> SampleStatsStatistics for the pool All positives that are not in the pool are removed from the examplesstatic doublefMeasure(double precision, double recall) static StringformatHumanReadable(SampleStats<?> stats) getAll()getFalse()doubledoubledoublegetTrue()toString()static StringtoStringWithSize(Collection<?> collection)
-
Method Details
-
create
-
create
Statistics for the pool All positives that are not in the pool are removed from the examples -
create
-
getAll
-
getExamples
-
getTrue
-
getFalse
-
getPrecision
public double getPrecision() -
getRecall
public double getRecall() -
getFMeasure
public double getFMeasure() -
fMeasure
public static double fMeasure(double precision, double recall) -
toString
-
formatHumanReadable
-
toStringWithSize
-