Package adams.flow.core
Class EvaluationHelper
- java.lang.Object
-
- adams.flow.core.EvaluationHelper
-
public class EvaluationHelper extends Object
A helper class for Evaluation related things.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
-
Constructor Summary
Constructors Constructor Description EvaluationHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static double
getValue(weka.classifiers.Evaluation eval, EvaluationStatistic statistic, int classIndex)
Returns a statistical value from the evaluation object.
-
-
-
Method Detail
-
getValue
public static double getValue(weka.classifiers.Evaluation eval, EvaluationStatistic statistic, int classIndex) throws Exception
Returns a statistical value from the evaluation object.- Parameters:
eval
- the evaluation object to get the value fromstatistic
- the type of value to returnclassIndex
- the class label index, for statistics like AUC- Returns:
- the determined value, Double.NaN if not found
- Throws:
Exception
- if evaluation fails
-
-