adams.flow.core
Class EvaluationHelper
java.lang.Object
adams.flow.core.EvaluationHelper
public class EvaluationHelper
- extends Object
A helper class for Evaluation related things.
- Version:
- $Revision: 5637 $
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
|
Method Summary |
static double |
getValue(weka.classifiers.Evaluation eval,
EvaluationStatistic statistic,
int classIndex)
Returns a statistical value from the evaluation object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EvaluationHelper
public EvaluationHelper()
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
Copyright © 2012 University of Waikato, Hamilton, NZ. All Rights Reserved.