Class EvaluationHelper

  • public class EvaluationHelper
    extends Object
    A helper class for Evaluation related things.
    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.
        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
        the determined value, Double.NaN if not found
        Exception - if evaluation fails