public class MulticlassSequenceClassificationEvaluator extends MulticlassClassificationEvaluator
SequenceExamples. It
computes precision, recall, f1s for each class, and a global accuracy.
MulticlassClassificationEvaluator.ClassStats
classStats, correct, labels, total, totalFn, totalFp, totalTn, totalTp
Constructor and Description |
---|
MulticlassSequenceClassificationEvaluator(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 |
addCount(SequenceExample test,
SequencePrediction predicted)
This method should be implemented in the subclasses to update counters
useful to compute the performance measure
|
clear, compute, duplicate, getAccuracy, getF1For, getFnFor, getFpFor, getMacroF1, getMacroPrecision, getMacroRecall, getMeanF1, getMeanF1For, getMicroF1, getMicroPrecision, getMicroRecall, getOverallF1, getOverallPrecision, getOverallRecall, getPrecisionFor, getRecallFor, getTnFor, getTpFor, printCounters, toString
getPerformanceMeasure
public void addCount(Example test, Prediction prediction)
Evaluator
addCount
in class MulticlassClassificationEvaluator
test
- the test exampleprediction
- the prediction of the systempublic void addCount(SequenceExample test, SequencePrediction predicted)
test
- the test examplepredicted
- the prediction of the systemCopyright © 2018 Semantic Analytics Group @ Uniroma2. All rights reserved.