T - public class SampleStats<T> extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T> SampleStats |
create(Sample<T> all,
Set<T> examples) |
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
|
static <T> SampleStats |
create(Set<T> allPositives,
Set<T> allNegatives,
Set<T> examples) |
static double |
fMeasure(double precision,
double recall) |
static String |
formatHumanReadable(SampleStats<?> stats) |
Sample<T> |
getAll() |
Set<T> |
getExamples() |
Sample<? extends T> |
getFalse() |
double |
getFMeasure() |
double |
getPrecision() |
double |
getRecall() |
Sample<? extends T> |
getTrue() |
String |
toString() |
static String |
toStringWithSize(Collection<?> collection) |
public static <T> SampleStats create(Sample<T> all, Set<T> examples)
public static <T> SampleStats create(Sample<T> pool, Set<T> examples, Sample<T> all)
public static <T> SampleStats create(Set<T> allPositives, Set<T> allNegatives, Set<T> examples)
public double getPrecision()
public double getRecall()
public double getFMeasure()
public static double fMeasure(double precision,
double recall)
public static String formatHumanReadable(SampleStats<?> stats)
public static String toStringWithSize(Collection<?> collection)
Copyright © 2015. All rights reserved.