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

Function eval_nested

evaluation/test-suite-sql-eval/evaluation.py:221–231  ·  view source on GitHub ↗
(pred, label)

Source from the content-addressed store, hash-verified

219
220
221def eval_nested(pred, label):
222 label_total = 0
223 pred_total = 0
224 cnt = 0
225 if pred is not None:
226 pred_total += 1
227 if label is not None:
228 label_total += 1
229 if pred is not None and label is not None:
230 cnt += Evaluator().eval_exact_match(pred, label)
231 return label_total, pred_total, cnt
232
233
234def eval_IUEN(pred, label):

Callers 1

eval_IUENFunction · 0.70

Calls 2

EvaluatorClass · 0.70
eval_exact_matchMethod · 0.45

Tested by

no test coverage detected