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

Function get_scores

evaluation/test-suite-sql-eval/evaluation.py:102–107  ·  view source on GitHub ↗
(count, pred_total, label_total)

Source from the content-addressed store, hash-verified

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

Callers 1

eval_partial_matchMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected