public class MulticlassSequenceClassificationEvaluator extends MulticlassClassificationEvaluator
SequenceExamples. It
computes precision, recall, f1s for each class, and a global accuracy.MulticlassClassificationEvaluator.ClassStatsclassStats, 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, toStringgetPerformanceMeasurepublic void addCount(Example test, Prediction prediction)
EvaluatoraddCount in class MulticlassClassificationEvaluatortest - 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.