Examples of predicted()


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

          XYIntervalSeries predSeries = null;
          int datasetIndex = xyDataset.indexOf(targetName + "-predicted");
          predSeries = xyDataset.getSeries(datasetIndex);

          if (predSeries != null) {
            double y = predsForTargetAtStepJ.predicted();
            double x = Utils.missingValue();
            double yHigh = y;
            double yLow = y;
            double[][] conf = predsForTargetAtStepJ.predictionIntervals();
            if (conf.length > 0) {
View Full Code Here

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

        actualS = Utils.doubleToString(actual, 4);
        actualS = pad(actualS, " ", maxColWidth, true);
      }
      temp.append(actualS + "  ");

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

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

          m_predictions.get(i).get(m_predictions.get(i).size() - 1);
        NumericPrediction previousForI =
          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 =
View Full Code Here

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

        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();
         
          if (actualDirection > 0 && predictedDirection > 0) {
            m_correct[i]++;           
View Full Code Here

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

      for (int j = 0; j < m_fieldsToForecast.size(); j++) {
        String target = m_fieldsToForecast.get(j);
        int targetI = m_outgoingStructure.attribute(target).index();
        NumericPrediction predForTargetAtStep = predsForStep.get(j);
        double y = predForTargetAtStep.predicted();
        double yHigh = y;
        double yLow = y;
        double[][] conf = predForTargetAtStep.predictionIntervals();
        if (!Utils.isMissingValue(y)) {
          outVals[targetI] = y;
View Full Code Here

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

             long t=new Date(startdate.getTime()+1000l*3600*24*(i)).getTime();
             minmax.min=Math.min(minmax.min, t);
             minmax.max=Math.max(minmax.max, t);
             drow.add(0, t);
             drow.add(0, t);
             drow.add(1, predForTarget.predicted());
             d.add(drow);
           }
          }
        }
  }
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.