MCPcopy Create free account
hub / github.com/ZinYY/TreeLoRA / eval

Function eval

evaluations/eval_Py150.py:15–26  ·  view source on GitHub ↗
(predicted_sequences, ground_truths)

Source from the content-addressed store, hash-verified

13
14
15def eval(predicted_sequences, ground_truths):
16 outputs = []
17 for output in predicted_sequences:
18 outputs.append(postprocess(output))
19 gts = []
20 for gt in ground_truths:
21 gts.append(postprocess(gt))
22
23 fuzz = caculate_fuzz(outputs, gts)
24 evaluation_result = {"similarity": fuzz}
25
26 return evaluation_result

Callers

nothing calls this directly

Calls 2

caculate_fuzzFunction · 0.90
postprocessFunction · 0.85

Tested by

no test coverage detected