Package org.apache.mahout.df.callback

Examples of org.apache.mahout.df.callback.MultiCallback


   
    // compute the test set error using m=1 (Single Input Error)
    errorOne = new ForestPredictions(test.size(), nblabels);
   
    if (oobM < oobOne) {
      forestM.classify(test, new MultiCallback(testError, treeError));
      forestOne.classify(test, errorOne);
    } 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();
View Full Code Here


    // compute the test set error using m=1 (Single Input Error)
    errorOne = new ForestPredictions(dataSize, nblabels);

    if (oobM < oobOne) {
      forestM.classify(test, new MultiCallback(testError, treeError));
      forestOne.classify(test, errorOne);
    } 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();
View Full Code Here

TOP

Related Classes of org.apache.mahout.df.callback.MultiCallback

Copyright © 2018 www.massapicom. 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.