public class BinaryClassificationEvaluator extends Evaluator
Constructor and Description |
---|
BinaryClassificationEvaluator(Label positiveClass) |
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.
|
protected void |
compute()
This method is intented to force the computation of the performance measure.
|
BinaryClassificationEvaluator |
duplicate()
Returns a new instance of this Evaluator
|
float |
getAccuracy()
Return the accuracy
|
float |
getF1()
Return the f1 of the positive class
|
float |
getFn()
Return the false negatives
|
float |
getFp()
Return the false positives
|
float |
getPrecision()
Return the precision of the positive class
|
float |
getRecall()
Return the recall of the positive class
|
float |
getTn()
Return the true negatives
|
float |
getTp()
Return the true positives
|
getPerformanceMeasure
public BinaryClassificationEvaluator(Label positiveClass)
public void addCount(Example test, Prediction prediction)
Evaluator
protected void compute()
Evaluator
public float getTp()
public float getFp()
public float getTn()
public float getFn()
public float getAccuracy()
public float getPrecision()
public float getRecall()
public float getF1()
public void clear()
public BinaryClassificationEvaluator duplicate()
Evaluator
Copyright © 2018 Semantic Analytics Group @ Uniroma2. All rights reserved.