curl -X POST "https://api.example.com/api/validate" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"scan_id": "abc123",
"dataset": "ibm_aml",
"label_column": "IsLaundering"
}'
{
"metrics": {
"precision": 0.87,
"recall": 0.92,
"f1": 0.89,
"true_positives": 115,
"false_positives": 17,
"false_negatives": 10,
"true_negatives": 858,
"validated_against": "IBM_AML_IsLaundering",
"total_labeled": 1000,
"summary": "Detected 115 true positives with 87% precision and 92% recall"
},
"per_rule": [
{
"rule_id": "AML_HIGH_RISK_COUNTRY",
"precision": 0.85,
"recall": 0.90,
"f1": 0.87,
"detected": 45
},
{
"rule_id": "AML_STRUCTURING",
"precision": 0.89,
"recall": 0.95,
"f1": 0.92,
"detected": 70
}
],
"summary": "Detected 115 true positives with 87% precision and 92% recall",
"validated_against": "IBM_AML_IsLaundering",
"total_labeled": 1000
}
Validate scan results against ground-truth labels and compute precision, recall, and F1 metrics
curl -X POST "https://api.example.com/api/validate" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"scan_id": "abc123",
"dataset": "ibm_aml",
"label_column": "IsLaundering"
}'
{
"metrics": {
"precision": 0.87,
"recall": 0.92,
"f1": 0.89,
"true_positives": 115,
"false_positives": 17,
"false_negatives": 10,
"true_negatives": 858,
"validated_against": "IBM_AML_IsLaundering",
"total_labeled": 1000,
"summary": "Detected 115 true positives with 87% precision and 92% recall"
},
"per_rule": [
{
"rule_id": "AML_HIGH_RISK_COUNTRY",
"precision": 0.85,
"recall": 0.90,
"f1": 0.87,
"detected": 45
},
{
"rule_id": "AML_STRUCTURING",
"precision": 0.89,
"recall": 0.95,
"f1": 0.92,
"detected": 70
}
],
"summary": "Detected 115 true positives with 87% precision and 92% recall",
"validated_against": "IBM_AML_IsLaundering",
"total_labeled": 1000
}
Computes accuracy metrics by comparing detected violations against ground-truth labels from a dataset. Returns precision, recall, F1 score, and per-rule breakdowns to evaluate detection performance.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Basit-Ali0/Yggdrasil/llms.txt
Use this file to discover all available pages before exploring further.
ibm_aml, paysimibm_aml: use IsLaunderingFor paysim: use isFraudtrue / 1: Indicates a positive case (e.g., fraudulent transaction, money laundering)false / 0: Indicates a negative case (e.g., legitimate transaction)IBM_AML_IsLaundering, PaySim_isFraud)VALIDATION_ERROR, NOT_FOUND, or INTERNAL_ERRORVALIDATION_ERROR)curl -X POST "https://api.example.com/api/validate" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"scan_id": "abc123",
"dataset": "ibm_aml",
"label_column": "IsLaundering"
}'
{
"metrics": {
"precision": 0.87,
"recall": 0.92,
"f1": 0.89,
"true_positives": 115,
"false_positives": 17,
"false_negatives": 10,
"true_negatives": 858,
"validated_against": "IBM_AML_IsLaundering",
"total_labeled": 1000,
"summary": "Detected 115 true positives with 87% precision and 92% recall"
},
"per_rule": [
{
"rule_id": "AML_HIGH_RISK_COUNTRY",
"precision": 0.85,
"recall": 0.90,
"f1": 0.87,
"detected": 45
},
{
"rule_id": "AML_STRUCTURING",
"precision": 0.89,
"recall": 0.95,
"f1": 0.92,
"detected": 70
}
],
"summary": "Detected 115 true positives with 87% precision and 92% recall",
"validated_against": "IBM_AML_IsLaundering",
"total_labeled": 1000
}