Examples of MajorityLearner


Examples of aima.core.learning.learners.MajorityLearner

*/
public class LearnerTests {

  @Test
  public void testMajorityLearner() throws Exception {
    MajorityLearner learner = new MajorityLearner();
    DataSet ds = DataSetFactory.getRestaurantDataSet();
    learner.train(ds);
    int[] result = learner.test(ds);
    Assert.assertEquals(6, result[0]);
    Assert.assertEquals(6, result[1]);
  }
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.