Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
47
def
f1_macro_metric(predictions, labels, examples):
48
return
f1_score(labels, predictions, average=
'macro'
)
49
50
51
global_tokenizer = None
Callers
nothing calls this directly
Calls
1
f1_score
Function · 0.85
Tested by
no test coverage detected