Examples of computePredictions()


Examples of org.apache.mahout.df.callback.ForestPredictions.computePredictions()

    } else {
      forestOne.classify(test,
          new MultiCallback(testError, treeError, errorOne));
    }

    sumTestErr += ErrorEstimate.errorRate(testLabels, testError.computePredictions(rng));
    sumOneErr += ErrorEstimate.errorRate(testLabels, errorOne.computePredictions(rng));
    sumTreeErr += treeError.meanTreeError();
  }

  public static void main(String[] args) throws Exception {
View Full Code Here

Examples of org.apache.mahout.df.callback.ForestPredictions.computePredictions()

      FileSystem fs = dataPath.getFileSystem(getConf());
      int[] labels = Data.extractLabels(dataset, fs, dataPath);
     
      log.info("oob error estimate : "
          + ErrorEstimate.errorRate(labels, callback.computePredictions(rng)));
    }

    return forest;
  }
View Full Code Here

Examples of org.apache.mahout.df.callback.ForestPredictions.computePredictions()

     
      FileSystem fs = dataPath.getFileSystem(getConf());
      int[] labels = Data.extractLabels(dataset, fs, dataPath);
     
      log.info("oob error estimate : "
                           + ErrorEstimate.errorRate(labels, callback.computePredictions(rng)));
    }

    // store the decision forest in the output path
    Path forestPath = new Path(outputPath, "forest.seq");
    log.info("Storing the forest in: " + forestPath);
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.