Skip to main content
c-metrics
Projects
context-relevance-scorer
Ops
accuracy
ggMx3KxsNNFGHWp2kjF4X0YeKNZkTbMxHRtLVTzeCPQ
Log in
Sign up
Project
Models
Workspace
Runs
More
Weave
Traces
Evals
Playground
Monitors
Assets
More
Assets
All assets
Prompts
Ops
Models
Datasets
Scorers
accuracy:v0
Name
accuracy
(1 version)
Version
0
Last updated
10 months ago
Calls:
4785 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