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 considering all classes together
|
float |
getPrecision()
Return the precision considering all classes together
|
float |
getRecall()
Return the recall considering all classes together
|
getPerformanceMeasure
public BinaryClassificationEvaluator(Label positiveClass)
public void addCount(Example test, Prediction prediction)
Evaluator
protected void compute()
Evaluator
public float getAccuracy()
public float getPrecision()
public float getRecall()
public float getF1()
public void clear()
public BinaryClassificationEvaluator duplicate()
Evaluator
Copyright © 2017 Semantic Analytics Group @ Uniroma2. All rights reserved.