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

Function f1_metric

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

Source from the content-addressed store, hash-verified

41
42
43def f1_metric(predictions, labels, examples):
44 return f1_score(labels, predictions)
45
46
47def f1_macro_metric(predictions, labels, examples):

Callers

nothing calls this directly

Calls 1

f1_scoreFunction · 0.85

Tested by

no test coverage detected