skills/clinical-decision-support/references/model_biomarker_evaluation.md
Evaluate a locked model, assay, or prespecified biomarker rule using synthetic or aggregate validation summaries. Do not:
Record:
Do not call a random split from one source “external validation.”
Keep separate:
The bundled evaluator addresses only selected aggregate clinical-validation performance summaries. It cannot establish any of the three.
Depending on the target:
Do not report accuracy alone when classes are imbalanced.
Calibration asks whether predicted probabilities agree with observed frequencies. Evaluate:
The standard-library helper accepts calibration bins and reports a weighted absolute gap. Binning loses information and does not replace individual-level calibration analysis in an approved environment.
Primary overview: Van Calster et al., calibration.
Use proper scoring rules and decision-curve/net-benefit methods only with a prespecified, defensible decision context. Do not imply utility from AUC or accuracy. Utility evaluation that changes care is outside this skill.
Report intervals for performance estimates and explain resampling or analytic methods. The helper uses Wilson intervals for aggregate proportions. It does not model correlated observations, clustering, repeated measurements, censoring, or verification bias.
Apply the original locked model without refitting. Document:
See BMJ 2024 external-validation guidance and sample-size methodology.
Before analysis:
Report:
No single parity metric establishes fairness. Equal metrics can coexist with inequitable outcomes, and unequal metrics may reflect case mix, measurement, structural conditions, or model behavior that requires investigation.
For each release record:
Never update a threshold or model silently after viewing performance.
Input contains only:
Output contains bounded descriptive metrics, uncertainty, suppression, and documented gaps. It never outputs a person-level class or recommendation.
python3 scripts/model_biomarker_evaluation.py \
assets/aggregate_model_evaluation_template.json