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.
|
void |
compute()
This method is intented to force the computation of the performance measure.
|
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
public void compute()
Evaluator
public float getAccuracy()
public float getPrecision()
public float getRecall()
public float getF1()
Copyright © 2015 Semantic Analytics Group @ Uniroma2. All rights reserved.