public abstract class Evaluator extends Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
computed |
Constructor and Description |
---|
Evaluator() |
Modifier and Type | Method and Description |
---|---|
abstract void |
addCount(Example test,
Prediction predicted)
This method should be implemented in the subclasses to update counters useful to compute the performance measure
|
abstract void |
clear()
This method should reset the state of the evaluator
|
protected abstract void |
compute()
This method is intented to force the computation of the performance measure.
|
abstract Evaluator |
duplicate()
Returns a new instance of this Evaluator
|
float |
getPerformanceMeasure(String performanceMeasureMethodName,
Object... args)
This method allow to retrieve a performance measure by specifying the name of the method to be used.
|
public float getPerformanceMeasure(String performanceMeasureMethodName, Object... args) throws NoSuchPerformanceMeasureException
performanceMeasureMethodName
- the method of the name to be used to retrive the performance measureargs
- the arguments to be passed to the method @param performanceMeasureMethodName.NoSuchPerformanceMeasureException
public abstract void addCount(Example test, Prediction predicted)
test
- the test examplepredicted
- the prediction of the systemprotected abstract void compute()
public abstract void clear()
public abstract Evaluator duplicate()
Copyright © 2018 Semantic Analytics Group @ Uniroma2. All rights reserved.