(self)
| 868 | print "pattern.vector.Classifier._vector()" |
| 869 | |
| 870 | def test_bayes(self): |
| 871 | # Assert Bayesian probability classification. |
| 872 | self._test_classifier(vector.Bayes) |
| 873 | # Assert the accuracy of the classifier. |
| 874 | A, P, R, F = vector.Bayes.test(self.model, folds=10, method=vector.BERNOUILLI) |
| 875 | #print A, P, R, F |
| 876 | self.assertTrue(P >= 0.89) |
| 877 | self.assertTrue(R >= 0.89) |
| 878 | self.assertTrue(F >= 0.89) |
| 879 | |
| 880 | def test_knn(self): |
| 881 | # Assert nearest-neighbor classification. |
nothing calls this directly
no test coverage detected