adams.flow.core
Class EvaluationHelper

java.lang.Object
  extended by 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)

Constructor Summary
EvaluationHelper()
           
 
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
 

Constructor Detail

EvaluationHelper

public EvaluationHelper()
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 from
statistic - the type of value to return
classIndex - 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.