MCPcopy Create free account
hub / github.com/THUDM/GLM / f1_macro_metric

Function f1_macro_metric

tasks/eval_utils.py:47–48  ·  view source on GitHub ↗
(predictions, labels, examples)

Source from the content-addressed store, hash-verified

45
46
47def f1_macro_metric(predictions, labels, examples):
48 return f1_score(labels, predictions, average='macro')
49
50
51global_tokenizer = None

Callers

nothing calls this directly

Calls 1

f1_scoreFunction · 0.85

Tested by

no test coverage detected