|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mancrd.ahah.classifier.ClassificationEvaluator
public class ClassificationEvaluator
Used to keep track of classification performance.
Constructor Summary | |
---|---|
ClassificationEvaluator()
|
|
ClassificationEvaluator(Set<String> labels)
Constructor Must provide a set of labels that will be used for evaluation. |
Method Summary | |
---|---|
double |
getAccuracyMacroAve()
|
double |
getAccuracyMicroAve()
|
ClassificationRate |
getClassificationRate(String trueLabel)
calculates the classification rate for a single trueLabelId |
double |
getF1MacroAve()
|
double |
getF1MicroAve()
|
double |
getPrecisionMacroAve()
|
double |
getPrecisionMicroAve()
|
double |
getRecallMacroAve()
|
double |
getRecallMicroAve()
|
List<ClassificationRate> |
getSortedClassificationRates()
|
String |
toString()
|
void |
update(Set<String> trueLabels,
List<String> labels)
Here's where results come in |
void |
update(String trueLabel,
String label)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ClassificationEvaluator()
public ClassificationEvaluator(Set<String> labels)
Method Detail |
---|
public void update(String trueLabel, String label)
trueLabel:
- the actual (supervised) label.label:
- the label given by the classifier.public void update(Set<String> trueLabels, List<String> labels)
trueLabels:
- the supervised labelslabels:
- the labels given by the classifier.public ClassificationRate getClassificationRate(String trueLabel)
trueLabel
-
public double getF1MicroAve()
public double getRecallMicroAve()
public double getPrecisionMicroAve()
public double getAccuracyMicroAve()
public double getF1MacroAve()
public double getRecallMacroAve()
public double getPrecisionMacroAve()
public double getAccuracyMacroAve()
public List<ClassificationRate> getSortedClassificationRates()
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |