Skip to main content
c-metrics
Projects
context-relevance-scorer
Ops
true_positive
Y4bYAN5XhNINKmglIeh4jvwRn0ZxC97TL5WYsekTJKw
Log in
Sign up
Project
Models
Workspace
Runs
More
Weave
Traces
Evals
Playground
Monitors
Assets
More
Assets
All assets
Prompts
Ops
Models
Datasets
Scorers
true_positive:v0
Name
true_positive
(1 version)
Version
0
Last updated
10 months ago
Calls:
3828 calls
Code
Use
1
2
3
4
5
6
7
import
weave
@weave
.op
(
)
def
true_positive
(
output:
dict
, flagged:
bool
)
:
flagged_output = output.get
(
"flagged"
,
False
)
return
flagged_output
and
flagged