Package nltk_lite :: Package contrib :: Package classifier_tests :: Module confusionmatrixtests :: Class ConfusionMatrixTestCase
[hide private]
[frames] | no frames]

Class ConfusionMatrixTestCase

source code

       object --+    
                |    
unittest.TestCase --+
                    |
                   ConfusionMatrixTestCase

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_initial_confusion_matrix_has_all_zero_counts(self) source code
 
test_confusion_matrix_updates_on_each_count(self) source code
 
test_calculation_of_accuracy_and_error(self) source code
 
test_true_positive_rate(self) source code
 
test_true_negative_rate(self) source code
 
test_false_positive_rate(self) source code
 
test_precision(self) source code
 
test_recall(self) source code
 
test_fscore(self) source code
 
test_no_divide_by_zero_error_when_numerators_are_zero(self) source code
 
__assert_matrix(self, tp, fn, fp, tn) 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)