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

Function sensitivity

pattern/metrics.py:173–176  ·  view source on GitHub ↗

Returns the percentage of positive cases correctly classified as positive (= recall).

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

Source from the content-addressed store, hash-verified

171#### SENSITIVITY & SPECIFICITY #####################################################################
172
173def sensitivity(classify=lambda document:False, documents=[]):
174 """ Returns the percentage of positive cases correctly classified as positive (= recall).
175 """
176 return recall(classify, document, average=None)
177
178def specificity(classify=lambda document:False, documents=[]):
179 """ Returns the percentage of negative cases correctly classified as negative.

Callers

nothing calls this directly

Calls 1

recallFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…