public class MulticlassClassificationEvaluator extends Evaluator
Constructor and Description |
---|
MulticlassClassificationEvaluator(List<Label> labels)
Initialize a new F1Evaluator that will work on the specified classes
|
Modifier and Type | Method and Description |
---|---|
void |
addCount(Example test,
Prediction prediction)
This method should be implemented in the subclasses to update counters useful to compute the performance measure
|
void |
clear()
Clear all the counters for a new processing.
|
void |
compute()
This method is intented to force the computation of the performance measure.
|
float |
getAccuracy()
Return the accuracy
|
float |
getF1For(Label l)
Return the f1 for the specified label
|
gnu.trove.map.hash.TObjectFloatHashMap<Label> |
getF1s()
Return the F1 map
|
float |
getMeanF1()
Return the mean of the F1 scores considering all the labels involved
|
float |
getMeanF1For(ArrayList<Label> ls)
Return the mean of the F1 scores considering the specified labels
|
float |
getOverallF1()
Return the f1 considering all classes together
|
float |
getOverallPrecision()
Return the precision considering all classes together
|
float |
getOverallRecall()
Return the recall considering all classes together
|
float |
getPrecisionFor(Label l)
Return the precision for the specified label
|
gnu.trove.map.hash.TObjectFloatHashMap<Label> |
getPrecisions()
Return the precision map
|
float |
getRecallFor(Label l)
Return the recall for the specified label
|
gnu.trove.map.hash.TObjectFloatHashMap<Label> |
getRecalls()
Return the recall map
|
void |
printCounters(Label l)
Print the counters of the specified Label l.
|
String |
toString() |
getPerformanceMeasure
public gnu.trove.map.hash.TObjectFloatHashMap<Label> getPrecisions()
public gnu.trove.map.hash.TObjectFloatHashMap<Label> getRecalls()
public gnu.trove.map.hash.TObjectFloatHashMap<Label> getF1s()
public void addCount(Example test, Prediction prediction)
Evaluator
public void compute()
Evaluator
public float getPrecisionFor(Label l)
public float getRecallFor(Label l)
public float getF1For(Label l)
public float getAccuracy()
public float getOverallPrecision()
public float getOverallRecall()
public float getOverallF1()
public float getMeanF1()
public float getMeanF1For(ArrayList<Label> ls)
public void clear()
public void printCounters(Label l)
l
- Copyright © 2015 Semantic Analytics Group @ Uniroma2. All rights reserved.