Package nltk_lite :: Package contrib :: Package classifier_tests :: Module decisionstumptests :: Class DecisionStumpTestCase
[hide private]
[frames] | no frames]

Class DecisionStumpTestCase

source code

       object --+    
                |    
unittest.TestCase --+
                    |
                   DecisionStumpTestCase

Nested Classes [hide private]

Inherited from unittest.TestCase: failureException

Instance Methods [hide private]
 
setUp(self)
Hook method for setting up the test fixture before exercising it.
source code
 
test_creates_count_map(self) source code
 
test_updates_count_with_instance_values(self) source code
 
test_error_count(self) source code
 
__update_stump(self) source code
 
test_majority_class_for_attr_value(self) source code
 
test_classifies_instance_correctly(self) source code
 
test_total_counts(self) source code
 
test_mean_information(self) source code
 
test_information_gain(self) source code
 
test_returns_entropy_for_each_attribute_value(self) source code
 
test_dictionary_of_all_values_with_count_0(self) source code
 
test_gain_ratio(self) source code
 
test_sorting_of_decision_stumps(self) source code

Inherited from unittest.TestCase: __call__, __init__, __repr__, __str__, assertAlmostEqual, assertAlmostEquals, assertEqual, assertEquals, assertFalse, assertNotAlmostEqual, assertNotAlmostEquals, assertNotEqual, assertNotEquals, assertRaises, assertTrue, assert_, countTestCases, debug, defaultTestResult, fail, failIf, failIfAlmostEqual, failIfEqual, failUnless, failUnlessAlmostEqual, failUnlessEqual, failUnlessRaises, id, run, shortDescription, tearDown

Inherited from unittest.TestCase (private): _exc_info

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

setUp(self)

source code 

Hook method for setting up the test fixture before exercising it.

Overrides: unittest.TestCase.setUp
(inherited documentation)