MCPcopy Create free account
hub / github.com/FlyingFeather/DEA-SQL / F1

Function F1

single_eval.py:97–100  ·  view source on GitHub ↗
(acc, rec)

Source from the content-addressed store, hash-verified

95
96
97def F1(acc, rec):
98 if (acc + rec) == 0:
99 return 0
100 return (2. * acc * rec) / (acc + rec)
101
102
103def get_scores(count, pred_total, label_total):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected