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

Function eval

evaluations/eval_amazon.py:4–7  ·  view source on GitHub ↗
(predicted_sequences, ground_truths)

Source from the content-addressed store, hash-verified

2from metrics import caculate_accuracy
3
4def eval(predicted_sequences, ground_truths):
5 accuracy = caculate_accuracy(predicted_sequences, ground_truths)
6 evaluation_result = {"accuracy": accuracy}
7 return evaluation_result

Callers

nothing calls this directly

Calls 1

caculate_accuracyFunction · 0.90

Tested by

no test coverage detected