Class EvaluationHelper


  • public class EvaluationHelper
    extends Object
    A helper class for Evaluation related things.
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    • 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