Package edu.uci.jforestsx.learning.trees

Examples of edu.uci.jforestsx.learning.trees.Ensemble.loadFromFile()


     * Load the ensemble
     */
    File modelFile = new File((String) options.valueOf("model-file"));
    Ensemble ensemble = new Ensemble();
    if (options.valueOf("tree-type").equals("RegressionTree")) {
      ensemble.loadFromFile(RegressionTree.class, modelFile);
    } else if (options.valueOf("tree-type").equals("DecisionTree")) {
      ensemble.loadFromFile(DecisionTree.class, modelFile);
    } else {
      System.err.println("Unknown tree type: " + options.valueOf("tree-type"));
    }
View Full Code Here


    File modelFile = new File((String) options.valueOf("model-file"));
    Ensemble ensemble = new Ensemble();
    if (options.valueOf("tree-type").equals("RegressionTree")) {
      ensemble.loadFromFile(RegressionTree.class, modelFile);
    } else if (options.valueOf("tree-type").equals("DecisionTree")) {
      ensemble.loadFromFile(DecisionTree.class, modelFile);
    } else {
      System.err.println("Unknown tree type: " + options.valueOf("tree-type"));
    }

    /*
 
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.