Skip to main content
c-metrics
Projects
fluency-eval
Ops
accuracy
ggMx3KxsNNFGHWp2kjF4X0YeKNZkTbMxHRtLVTzeCPQ
Log in
Sign up
Project
Traces
Evals
Playground
Monitors
Leaders
Threads
Assets
Assets
All assets
Prompts
Ops
Models
Datasets
Scorers
accuracy:v0
Name
accuracy
(1 version)
Version
0
Last updated
9 months ago
Last updated by
Thomas Capelle
Calls:
13315 calls
Code
Use
1
2
3
4
5
6
7
import
weave
@weave
.op
(
)
def
accuracy
(
output:
dict
, flagged:
bool
)
:
flagged_output = output.get
(
"flagged"
,
False
)
return
flagged_output == flagged