|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.stanford.nlp.stats.MultiClassPrecisionRecallStats<L>
public class MultiClassPrecisionRecallStats<L>
Field Summary | |
---|---|
protected int[] |
fnCount
Count of false negatives. |
protected int[] |
fpCount
Count of false positives. |
protected Index<L> |
labelIndex
|
protected int |
negIndex
|
protected L |
negLabel
|
protected int[] |
tpCount
Count of true positives. |
Constructor Summary | |
---|---|
MultiClassPrecisionRecallStats(Classifier<L,F> classifier,
GeneralDataset<L,F> data,
L negLabel)
|
|
MultiClassPrecisionRecallStats(L negLabel)
|
Method Summary | ||
---|---|---|
String |
getDescription(int numDigits)
Returns a String summarizing F1 that will print nicely. |
|
String |
getF1Description(int numDigits)
Returns a String summarizing F1 that will print nicely. |
|
String |
getF1Description(int numDigits,
L label)
|
|
double |
getFMeasure()
|
|
double |
getFMeasure(L label)
|
|
double |
getPrecision()
|
|
double |
getPrecision(L label)
|
|
String |
getPrecisionDescription(int numDigits)
Returns a String summarizing precision that will print nicely. |
|
String |
getPrecisionDescription(int numDigits,
L label)
|
|
Triple<Double,Integer,Integer> |
getPrecisionInfo()
|
|
Triple<Double,Integer,Integer> |
getPrecisionInfo(L label)
Returns the current precision: tp/(tp+fp). |
|
double |
getRecall()
|
|
double |
getRecall(L label)
|
|
String |
getRecallDescription(int numDigits)
Returns a String summarizing precision that will print nicely. |
|
String |
getRecallDescription(int numDigits,
L label)
|
|
Triple<Double,Integer,Integer> |
getRecallInfo()
|
|
Triple<Double,Integer,Integer> |
getRecallInfo(L label)
|
|
|
score(Classifier<L,F> classifier,
GeneralDataset<L,F> data)
|
|
|
score(ProbabilisticClassifier<L,F> classifier,
GeneralDataset<L,F> data)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int[] tpCount
protected int[] fpCount
protected int[] fnCount
protected Index<L> labelIndex
protected L negLabel
protected int negIndex
Constructor Detail |
---|
public MultiClassPrecisionRecallStats(Classifier<L,F> classifier, GeneralDataset<L,F> data, L negLabel)
public MultiClassPrecisionRecallStats(L negLabel)
Method Detail |
---|
public <F> double score(ProbabilisticClassifier<L,F> classifier, GeneralDataset<L,F> data)
score
in interface Scorer<L>
public <F> double score(Classifier<L,F> classifier, GeneralDataset<L,F> data)
public Triple<Double,Integer,Integer> getPrecisionInfo(L label)
public double getPrecision(L label)
public Triple<Double,Integer,Integer> getPrecisionInfo()
public double getPrecision()
public String getPrecisionDescription(int numDigits)
public String getPrecisionDescription(int numDigits, L label)
public Triple<Double,Integer,Integer> getRecallInfo(L label)
public double getRecall(L label)
public Triple<Double,Integer,Integer> getRecallInfo()
public double getRecall()
public String getRecallDescription(int numDigits)
public String getRecallDescription(int numDigits, L label)
public double getFMeasure(L label)
public double getFMeasure()
public String getF1Description(int numDigits)
public String getF1Description(int numDigits, L label)
public String getDescription(int numDigits)
getDescription
in interface Scorer<L>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |