Returns the percentage of correct classifications (true positives + true negatives).
(classify=lambda document:False, documents=[], average=None)
| 142 | return (A, P, R, F1) |
| 143 | |
| 144 | def accuracy(classify=lambda document:False, documents=[], average=None): |
| 145 | """ Returns the percentage of correct classifications (true positives + true negatives). |
| 146 | """ |
| 147 | return test(classify, documents, average)[0] |
| 148 | |
| 149 | def precision(classify=lambda document:False, documents=[], average=None): |
| 150 | """ Returns the percentage of correct positive classifications. |
nothing calls this directly
no test coverage detected
searching dependent graphs…