Package org.apache.mahout.df.data

Examples of org.apache.mahout.df.data.Data.extractLabels()


    log.info("Splitting the data");
    Data train = data.clone();
    Data test = train.rsplit(rng, (int) (data.size() * 0.1));
   
    int[] trainLabels = train.extractLabels();
    int[] testLabels = test.extractLabels();
   
    DefaultTreeBuilder treeBuilder = new DefaultTreeBuilder();
   
    SequentialBuilder forestBuilder = new SequentialBuilder(rng, treeBuilder, train);
   
View Full Code Here


    Data train = data.clone();
    Data test = train.rsplit(rng, (int) (data.size() * 0.1));
   
    int[] trainLabels = train.extractLabels();
    int[] testLabels = test.extractLabels();
   
    DefaultTreeBuilder treeBuilder = new DefaultTreeBuilder();
   
    SequentialBuilder forestBuilder = new SequentialBuilder(rng, treeBuilder, train);

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.