|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cc.mallet.fst.confidence.ConfidenceEvaluator
public class ConfidenceEvaluator
Nested Class Summary | |
---|---|
static class |
ConfidenceEvaluator.EntityConfidence
a simple class to store a confidence score and whether or not this labeling is correct |
Constructor Summary | |
---|---|
ConfidenceEvaluator(InstanceWithConfidence[] instances,
boolean sorted)
|
|
ConfidenceEvaluator(PipedInstanceWithConfidence[] instances,
boolean sorted)
|
|
ConfidenceEvaluator(Segment[] segments,
boolean sorted)
|
|
ConfidenceEvaluator(java.util.Vector confidences)
|
|
ConfidenceEvaluator(java.util.Vector confidences,
int nBins)
|
Method Summary | |
---|---|
double |
accuracyAtCoverage(double cov)
|
java.lang.String |
accuracyCoverageValuesToString()
|
java.lang.String |
accuracyRecallValuesToString(int totalTrue)
|
double |
correlation()
Calculate pearson's R for the corellation between confidence and correct, where 1 = correct and -1 = incorrect |
double[] |
getAccuracyCoverageValues()
get accuracy at coverage for each bin of values |
double[][] |
getAccuracyRecallValues(int totalTrue)
get accuracy at recall for each bin of values |
double |
getAverageAccuracy()
|
double |
getAverageCorrectConfidence()
Average confidence score for the incorrect entities |
double |
getAverageIncorrectConfidence()
Average confidence score for the incorrect entities |
double |
getAveragePrecision()
IR Average precision measure. |
double |
getConfidenceMean()
|
double |
getConfidenceStandardDeviation()
Standard deviation of confidence scores |
double |
getConfidenceSum()
|
double |
getWorstAveragePrecision()
For comparison, rank segments as badly as possible (all "incorrect" before "correct"). |
int |
numCorrect()
|
int |
numCorrectAtCoverage(double cov)
|
double |
pointBiserialCorrelation()
Correlation when one variable (X) is binary: r = (bar(x1) - bar(x0)) * sqrt(p(1-p)) / sx , where bar(x1) = mean of X when Y is 1 bar(x0) = mean of X when Y is 0 sx = standard deviation of X p = proportion of values where Y=1 |
int |
size()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ConfidenceEvaluator(java.util.Vector confidences, int nBins)
public ConfidenceEvaluator(java.util.Vector confidences)
public ConfidenceEvaluator(Segment[] segments, boolean sorted)
public ConfidenceEvaluator(InstanceWithConfidence[] instances, boolean sorted)
public ConfidenceEvaluator(PipedInstanceWithConfidence[] instances, boolean sorted)
Method Detail |
---|
public double pointBiserialCorrelation()
public double getAveragePrecision()
public double getWorstAveragePrecision()
public double getConfidenceSum()
public double getConfidenceMean()
public double getConfidenceStandardDeviation()
public double correlation()
public double[] getAccuracyCoverageValues()
public java.lang.String accuracyCoverageValuesToString()
public double[][] getAccuracyRecallValues(int totalTrue)
totalTrue
- total number of true Segments
public java.lang.String accuracyRecallValuesToString(int totalTrue)
public double accuracyAtCoverage(double cov)
public int numCorrectAtCoverage(double cov)
public double getAverageAccuracy()
public int numCorrect()
public double getAverageIncorrectConfidence()
public double getAverageCorrectConfidence()
public int size()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |