Published November 4, 2026 | Version 1.0.0

Frozen Stage-2 Base and Cascade Predictions and Verification Code for DKA Risk Modeling

Authors/Creators

Description

This record provides frozen Stage-2 Base and Cascade predictions and self-contained Python verification code for paired performance comparisons in diabetic ketoacidosis (DKA) risk modeling.The partitions contain 447 records with 133 composite events, 867 records with 247 events, and 68 records with 12 events, respectively.

The code evaluates AUC, average precision, Brier score, calibration intercept and slope, fixed-threshold classification, empirical ROC/PR coordinates, calibration bins, decision curves and paired Cascade-minus-Base differences with patient-level bootstrap intervals. Models, probabilities, calibrators and thresholds are held fixed. This deposit does not provide original EHR extraction or model-development code and does not establish clinical effectiveness or consistent cascade superiority.

Directory reconstruction after downloading the individual files: keep the unprefixed files in one working directory. For each filename beginning with expected__, create an expected subdirectory, remove the expected__ prefix and place the file there. For each filename beginning with verification_output__, create a verification_output subdirectory, remove that prefix and place the file there. Prefixes only encode the original directory structure.

To run: install Python 3.10 or newer, run python -m pip install -r requirements.txt, then run python stage2_verification.py. The script uses relative paths, generates verification_output and compares its calculations with the frozen references. The documented test environment was Python 3.12.14, NumPy 2.3.5 and pandas 3.0.1. Bootstrap sampling uses 1,000 paired resamples per partition with seed 2603502 plus the partition size. The tolerance is 1e-10 for general metrics and 1e-5 for independently solved calibration diagnostics.

Files

config.json

Files (1.0 MB)

Name Size
md5:4b151ce79ab3f6e6b52b57ee596f0e2b
1.1 kB Preview Download
md5:e0ee13c3ec63404b65af5b8a258d6083
725 Bytes Preview Download
md5:23cae122c1fbbddb1820e5476ec0b160
6.9 kB Preview Download
md5:de3a4f2dd64dee7a76744c98b9aa0d08
3.9 kB Preview Download
md5:833b480640ee5ec78afa4ee3d75f1bb8
413 Bytes Preview Download
md5:9d6a2a3afc44367d9345c3e9cdecbe7a
40.3 kB Preview Download
md5:6ea79c5b7c6c3706eb12180c5a1891c8
9.8 kB Preview Download
md5:e335bd9ce7517b68aa4bf936d555a6ea
1.2 kB Preview Download
md5:5844aa9b2c2665dc97d5e43cefb496a4
337.1 kB Preview Download
md5:d01caabe391668bdaf5fd7f69be6d26b
31 Bytes Preview Download
md5:96052b305e1348768a5e511423bd2d9f
1.2 kB Preview Download
md5:7079539ef38d7652f1def1a104def68a
219.8 kB Preview Download
md5:de6e1a1c407b11c4621df72327202f1e
10.9 kB Download
md5:a8fa30104973a3a14a2489d133e49689
7.0 kB Preview Download
md5:c590d0e2281f3ff392481296ec848e32
4.0 kB Preview Download
md5:c15b1dd8217395d90c565f7ee9a228c4
413 Bytes Preview Download
md5:23ca44c3501d029a02d010c87b02b931
41.6 kB Preview Download
md5:0e793419019f9e25aaaecb1d4317b4ed
8.9 kB Preview Download
md5:d78a7a2df581b4652007cd93923dc5d0
1.2 kB Preview Download
md5:47c8c02103513ca7318eda1f5df6c4b5
338.0 kB Preview Download
md5:b62158d87d0aa2a7b1b29aff054a8975
1.4 kB Preview Download