org.aksw.commons.collections
Class SampleStats<T>
java.lang.Object
org.aksw.commons.collections.SampleStats<T>
- Type Parameters:
T -
public class SampleStats<T>
- extends Object
all.negatives may be null, however all other fields must be given!
create
public static <T> SampleStats create(Sample<T> all,
Set<T> examples)
create
public static <T> SampleStats create(Sample<T> pool,
Set<T> examples,
Sample<T> all)
- Statistics for the pool
All positives that are not in the pool are removed from the examples
create
public static <T> SampleStats create(Set<T> allPositives,
Set<T> allNegatives,
Set<T> examples)
getAll
public Sample<T> getAll()
getExamples
public Set<T> getExamples()
getTrue
public Sample<? extends T> getTrue()
getFalse
public Sample<? extends T> getFalse()
getPrecision
public double getPrecision()
getRecall
public double getRecall()
getFMeasure
public double getFMeasure()
fMeasure
public static double fMeasure(double precision,
double recall)
toString
public String toString()
- Overrides:
toString in class Object
formatHumanReadable
public static String formatHumanReadable(SampleStats<?> stats)
toStringWithSize
public static String toStringWithSize(Collection<?> collection)
Copyright © 2012. All Rights Reserved.