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

Function get_scores

single_eval.py:103–108  ·  view source on GitHub ↗
(count, pred_total, label_total)

Source from the content-addressed store, hash-verified

101
102
103def get_scores(count, pred_total, label_total):
104 if pred_total != label_total:
105 return 0, 0, 0
106 elif count == pred_total:
107 return 1, 1, 1
108 return 0, 0, 0
109
110
111def eval_sel(pred, label):

Callers 1

eval_partial_matchMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected