MCPcopy Index your code
hub / github.com/clips/pattern / accuracy

Function accuracy

pattern/metrics.py:144–147  ·  view source on GitHub ↗

Returns the percentage of correct classifications (true positives + true negatives).

(classify=lambda document:False, documents=[], average=None)

Source from the content-addressed store, hash-verified

142 return (A, P, R, F1)
143
144def 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
149def precision(classify=lambda document:False, documents=[], average=None):
150 """ Returns the percentage of correct positive classifications.

Callers

nothing calls this directly

Calls 1

testFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…