MCPcopy Create free account
hub / github.com/FastMAS/KVCOMM / is_correct

Function is_correct

KVCOMM/utils/utils.py:21–24  ·  view source on GitHub ↗
(model_answer, answer)

Source from the content-addressed store, hash-verified

19 return INVALID_ANS
20
21def is_correct(model_answer, answer):
22 gt_answer = extract_answer_from_output(answer)
23 assert gt_answer != INVALID_ANS
24 return model_answer == gt_answer
25
26def clean_answer(model_pred):
27 model_pred = model_pred.lower()

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected