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

Function precision

pattern/metrics.py:149–152  ·  view source on GitHub ↗

Returns the percentage of correct positive classifications.

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

Source from the content-addressed store, hash-verified

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.
151 """
152 return test(classify, documents, average)[1]
153
154def recall(classify=lambda document:False, documents=[], average=None):
155 """ Returns the percentage of positive cases correctly classified as positive.

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…