aima.test.learningtest
Class LearnerTests

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by aima.test.learningtest.LearnerTests
All Implemented Interfaces:
junit.framework.Test

public class LearnerTests
extends junit.framework.TestCase


Constructor Summary
LearnerTests()
           
 
Method Summary
 void testBackPropogationLearnerOnIrisDataSet()
           
 void testClassificationReturnedWhenAllExamplesHaveTheSameClassification()
           
 void testDecisionListLearnerReturnsFailureWhenTestsEmpty()
           
 void testDecisionListLearnerReturnsNegativeDLWhenDataSetEmpty()
           
 void testDecisionListTestRunOnRestaurantDataSet()
           
 void testDefaultUsedWhenTrainingDataSetHasNoExamples()
           
 void testInducedTreeClassifiesDataSetCorrectly()
           
 void testMajorityLearner()
           
 void testMajorityReturnedWhenAttributesToExamineIsEmpty()
           
 void testPerceptronLearnerOnIrisDataSet()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, 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

testBackPropogationLearnerOnIrisDataSet

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

testPerceptronLearnerOnIrisDataSet

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