public class ClassificationTester extends Object
Constructor and Description |
---|
ClassificationTester() |
Modifier and Type | Method and Description |
---|---|
Pair<Table,List<String>> |
getConfusionTable() |
EvaluationRecord |
getEvaluationRecord() |
EvaluationRecord |
getEvaluationRecord(String label) |
Set<String> |
getLabels() |
double |
getMacroF1() |
double |
getMacroPrecision() |
double |
getMacroRecall() |
double |
getMicroF1() |
double |
getMicroPrecision() |
double |
getMicroRecall() |
Table |
getPerformanceTable() |
Table |
getPerformanceTable(boolean printCounts) |
void |
ignoreLabelFromSummary(String label) |
void |
record(String goldLabel,
String predictedLabel) |
void |
recordCount(String label,
int goldCount,
int predictedCount,
int correctCount) |
void |
recordGoldOnly(String goldLabel) |
void |
recordPredictionOnly(String predictedLabel) |
void |
reset() |
void |
setSignificanceInfo(Map<String,ShufflingBasedStatisticalSignificance> significance)
Statistical significance information.
|
public void ignoreLabelFromSummary(String label)
public void reset()
public EvaluationRecord getEvaluationRecord()
public EvaluationRecord getEvaluationRecord(String label)
public void recordCount(String label, int goldCount, int predictedCount, int correctCount)
public void recordGoldOnly(String goldLabel)
public void recordPredictionOnly(String predictedLabel)
public double getMicroF1()
public double getMicroPrecision()
public double getMicroRecall()
public double getMacroF1()
public double getMacroPrecision()
public double getMacroRecall()
public Table getPerformanceTable()
public Table getPerformanceTable(boolean printCounts)
public void setSignificanceInfo(Map<String,ShufflingBasedStatisticalSignificance> significance)
Copyright © 2017. All rights reserved.