aima.test.learningtest
Class LearnerTests

java.lang.Object
  extended by TestCase
      extended by aima.test.learningtest.LearnerTests

public class LearnerTests
extends TestCase


Constructor Summary
LearnerTests()
           
 
Method Summary
 void testClassificationReturnedWhenAllExamplesHaveTheSameClassification()
           
 void testCurrentBestLearnerOnRestaurantDataSet()
           
 void testDecisionListLearnerReturnsFailureWhenTestsEmpty()
           
 void testDecisionListLearnerReturnsNegativeDLWhenDataSetEmpty()
           
 void testDecisionListTestRunOnRestaurantDataSet()
           
 void testDefaultUsedWhenTrainingDataSetHasNoExamples()
           
 void testInducedTreeClassifiesDataSetCorrectly()
           
 void testMajorityLearner()
           
 void testMajorityReturnedWhenAttributesToExamineIsEmpty()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LearnerTests

public LearnerTests()
Method Detail

testMajorityLearner

public void testMajorityLearner()
                         throws java.lang.Exception
Throws:
java.lang.Exception

testDefaultUsedWhenTrainingDataSetHasNoExamples

public void testDefaultUsedWhenTrainingDataSetHasNoExamples()
                                                     throws java.lang.Exception
Throws:
java.lang.Exception

testClassificationReturnedWhenAllExamplesHaveTheSameClassification

public void testClassificationReturnedWhenAllExamplesHaveTheSameClassification()
                                                                        throws java.lang.Exception
Throws:
java.lang.Exception

testMajorityReturnedWhenAttributesToExamineIsEmpty

public void testMajorityReturnedWhenAttributesToExamineIsEmpty()
                                                        throws java.lang.Exception
Throws:
java.lang.Exception

testInducedTreeClassifiesDataSetCorrectly

public void testInducedTreeClassifiesDataSetCorrectly()
                                               throws java.lang.Exception
Throws:
java.lang.Exception

testDecisionListLearnerReturnsNegativeDLWhenDataSetEmpty

public void testDecisionListLearnerReturnsNegativeDLWhenDataSetEmpty()
                                                              throws java.lang.Exception
Throws:
java.lang.Exception

testDecisionListLearnerReturnsFailureWhenTestsEmpty

public void testDecisionListLearnerReturnsFailureWhenTestsEmpty()
                                                         throws java.lang.Exception
Throws:
java.lang.Exception

testDecisionListTestRunOnRestaurantDataSet

public void testDecisionListTestRunOnRestaurantDataSet()
                                                throws java.lang.Exception
Throws:
java.lang.Exception

testCurrentBestLearnerOnRestaurantDataSet

public void testCurrentBestLearnerOnRestaurantDataSet()
                                               throws java.lang.Exception
Throws:
java.lang.Exception