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

Function F1

pattern/metrics.py:159–162  ·  view source on GitHub ↗

Returns the harmonic mean of precision and recall.

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

Source from the content-addressed store, hash-verified

157 return test(classify, documents, average)[2]
158
159def F1(classify=lambda document:False, documents=[], average=None):
160 """ Returns the harmonic mean of precision and recall.
161 """
162 return test(classify, documents, average)[3]
163
164def F(classify=lambda document:False, documents=[], beta=1, average=None):
165 """ Returns the weighted harmonic mean of precision and recall,

Callers

nothing calls this directly

Calls 1

testFunction · 0.85

Tested by

no test coverage detected