Examples of test()


Examples of aima.core.learning.learners.AdaBoostLearner.test()

        StumpLearner stumpLearner = new StumpLearner(sl, "No");
        learners.add(stumpLearner);
      }
      AdaBoostLearner learner = new AdaBoostLearner(learners, ds);
      learner.train(ds);
      int[] result = learner.test(ds);
      System.out
          .println("\nThis Ensemble Learner  classifies the data set with "
              + result[0]
              + " successes"
              + " and "
View Full Code Here

Examples of aima.core.learning.learners.CurrentBestLearner.test()

  public void testCurrentBestLearnerOnRestaurantDataSet() throws Exception {
    DataSet ds = DataSetFactory.getRestaurantDataSet();
    CurrentBestLearner learner = new CurrentBestLearner("Yes");
    learner.train(ds);

    int[] result = learner.test(ds);
    Assert.assertEquals(12, result[0]);
    Assert.assertEquals(0, result[1]);
  }
}
View Full Code Here

Examples of aima.core.learning.learners.DecisionListLearner.test()

      DecisionListLearner learner = new DecisionListLearner("Yes", "No",
          new DLTestFactory());
      learner.train(ds);
      System.out.println("The Induced DecisionList is");
      System.out.println(learner.getDecisionList());
      int[] result = learner.test(ds);

      System.out
          .println("\nThis Decision List classifies the data set with "
              + result[0]
              + " successes"
View Full Code Here

Examples of aima.core.learning.learners.DecisionTreeLearner.test()

      DataSet ds = DataSetFactory.getRestaurantDataSet();
      DecisionTreeLearner learner = new DecisionTreeLearner();
      learner.train(ds);
      System.out.println("The Induced Decision Tree is ");
      System.out.println(learner.getDecisionTree());
      int[] result = learner.test(ds);

      System.out
          .println("\nThis Decision Tree classifies the data set with "
              + result[0]
              + " successes"
View Full Code Here

Examples of aima.core.learning.learners.MajorityLearner.test()

  @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]);
  }

  @Test
View Full Code Here

Examples of avis.TestAddItemBook.test()

public class TestSocialNetwork {

  public static void main(String[] args) throws BadEntry, Exception {
    //test de addItemBook
    TestAddItemBook testItemBook = new TestAddItemBook();
    testItemBook.test();

    //test de addItemFilm
    TestAddItemFilm testItemFilm = new TestAddItemFilm();
    testItemFilm.test();
View Full Code Here

Examples of avis.TestReviewItemBook.test()

    TestAddItemFilm testItemFilm = new TestAddItemFilm();
    testItemFilm.test();

    //test de ReviewItemBook   
    TestReviewItemBook testReviewBook = new TestReviewItemBook();
    testReviewBook.test();

    //test de ReviewItemFilm   
    TestReviewItemFilm testReviewFilm = new TestReviewItemFilm();
    testReviewFilm.test();
View Full Code Here

Examples of bg.smoc.model.manager.ContestManager.test()

                    index += iRead;
                }
                bufferedInputStream.close();
            }

            boolean bResult = contestManager.test(contest,
                    userLogin,
                    task,
                    language,
                    srcFile,
                    abSrcFile,
View Full Code Here

Examples of blackberry.find.TestableScriptableObject.test()

                for( int j = 0; j < messages.length; j++ ) {
                    Message m = messages[ j ];
                    MessageObject message = new MessageObject( m, s );
                    if( testable != null ) {
                        if( testable.test( message ) ) {
                            found.addElement( message );
                            iElement++;
                        }
                    } else {
                        found.addElement( message );
View Full Code Here

Examples of blackberry.phone.find.TestableScriptableObject.test()

        for (int i = 0; i < numberOfCalls; i++) {
            final CallLog l = CallLogNamespace.callLogAt(i, folderID);
            final CallLogObject log = new CallLogObject(l);
            if (testable != null) {
                if (testable.test(log)) {
                    FindNamespace.insertElementByOrder(found, log, orderByField, isAscending);
                    iElement++;
                }
            }
            else {
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.