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

Function eval_nested

single_eval.py:222–232  ·  view source on GitHub ↗
(pred, label)

Source from the content-addressed store, hash-verified

220
221
222def eval_nested(pred, label):
223 label_total = 0
224 pred_total = 0
225 cnt = 0
226 if pred is not None:
227 pred_total += 1
228 if label is not None:
229 label_total += 1
230 if pred is not None and label is not None:
231 cnt += Evaluator().eval_exact_match(pred, label)
232 return label_total, pred_total, cnt
233
234
235def 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