Package org.apache.mahout.df.ref

Examples of org.apache.mahout.df.ref.SequentialBuilder.build()


                                                                              // log2(M)+1
    treeBuilder.setM(m);
   
    long time = System.currentTimeMillis();
    log.info("Growing a forest with m={}", m);
    DecisionForest forestM = forestBuilder.build(nbtrees, errorM);
    sumTimeM += System.currentTimeMillis() - time;
    numNodesM += forestM.nbNodes();
   
    double oobM = ErrorEstimate.errorRate(trainLabels, errorM.computePredictions(rng)); // oob error estimate
                                                                                        // when m = log2(M)+1
View Full Code Here


    ForestPredictions errorOne = new ForestPredictions(train.size(), nblabels); // oob error when using m = 1
    treeBuilder.setM(1);
   
    time = System.currentTimeMillis();
    log.info("Growing a forest with m=1");
    DecisionForest forestOne = forestBuilder.build(nbtrees, errorOne);
    sumTimeOne += System.currentTimeMillis() - time;
    numNodesOne += forestOne.nbNodes();
   
    double oobOne = ErrorEstimate.errorRate(trainLabels, errorOne.computePredictions(rng)); // oob error
                                                                                            // estimate when m
View Full Code Here

    ForestPredictions errorM = new ForestPredictions(dataSize, nblabels); // oob error when using m = log2(M)+1
    treeBuilder.setM(m);

    long time = System.currentTimeMillis();
    log.info("Growing a forest with m=" + m);
    DecisionForest forestM = forestBuilder.build(nbtrees, errorM);
    sumTimeM += System.currentTimeMillis() - time;

    double oobM = ErrorEstimate.errorRate(trainLabels, errorM.computePredictions(rng)); // oob error estimate when m = log2(M)+1

    // grow a forest with m=1
View Full Code Here

    ForestPredictions errorOne = new ForestPredictions(dataSize, nblabels); // oob error when using m = 1
    treeBuilder.setM(1);

    time = System.currentTimeMillis();
    log.info("Growing a forest with m=1");
    DecisionForest forestOne = forestBuilder.build(nbtrees, errorOne);
    sumTimeOne += System.currentTimeMillis() - time;

    double oobOne = ErrorEstimate.errorRate(trainLabels, errorOne.computePredictions(rng)); // oob error estimate when m = 1

    // compute the test set error (Selection Error), and mean tree error (One Tree Error),
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.