Package weka.classifiers.evaluation

Examples of weka.classifiers.evaluation.NumericPrediction.actual()


      NumericPrediction pred = preds.get(i);
      String instNum = pad("" + (instanceNumberOffset + i + stepAhead), " ",
          maxColWidth, true);
      temp.append(instNum + "  ");

      double actual = pred.actual();
      String actualS = null;
      if (Utils.isMissingValue(actual)) {
        actualS = pad("?", " ", maxColWidth, true);
      } else {
        actualS = Utils.doubleToString(actual, 4);
View Full Code Here


          m_predictions.get(i).get(m_predictions.get(i).size() - 2);
       
        if (!Utils.isMissingValue(currentForI.predicted()) &&
            !Utils.isMissingValue(previousForI.predicted()) &&
            !Utils.isMissingValue(currentForI.actual()) &&
            !Utils.isMissingValue(previousForI.actual())) {
          double predictedDirection =
            currentForI.predicted() - previousForI.predicted();
          double actualDirection =
            currentForI.actual() - previousForI.actual();
         
View Full Code Here

            !Utils.isMissingValue(currentForI.actual()) &&
            !Utils.isMissingValue(previousForI.actual())) {
          double predictedDirection =
            currentForI.predicted() - previousForI.predicted();
          double actualDirection =
            currentForI.actual() - previousForI.actual();
         
          if (actualDirection > 0 && predictedDirection > 0) {
            m_correct[i]++;           
          } else if (actualDirection < 0 && predictedDirection < 0) {
            m_correct[i]++;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.