Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
43
def
f1_metric(predictions, labels, examples):
44
return
f1_score(labels, predictions)
45
46
47
def
f1_macro_metric(predictions, labels, examples):
Callers
nothing calls this directly
Calls
1
f1_score
Function · 0.85
Tested by
no test coverage detected