Package aima.core.learning.framework

Examples of aima.core.learning.framework.Learner.train()


    return tree;
  }

  private ConstantDecisonTree majorityValue(DataSet ds) {
    Learner learner = new MajorityLearner();
    learner.train(ds);
    return new ConstantDecisonTree(learner.predict(ds.getExample(0)));
  }

  private String chooseAttribute(DataSet ds, List<String> attributeNames) {
    double greatestGain = 0.0;
View Full Code Here


    return tree;
  }

  private ConstantDecisonTree majorityValue(DataSet ds) {
    Learner learner = new MajorityLearner();
    learner.train(ds);
    return new ConstantDecisonTree(learner.predict(ds.getExample(0)));
  }

  private String chooseAttribute(DataSet ds, List<String> attributeNames) {
    double greatestGain = 0.0;
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.