Reproduction of the checked main Figures 1 and 5

Run figure_redraw.py in the original locked scientific analysis environment. No model training or tuning is performed. The script first validates replayed TreeSHAP contributions against the existing mean-absolute-SHAP export and checks prediction additivity; it stops if these checks fail.

Example command from a reconstructed project root
  python path/to/figure_redraw.py --project-root . --flow-provenance path/to/figure_flow_counts.json --baseline-dir path/to/main/Figures --output-dir path/to/checked/Figures

Default data root is ph_transportability/hemodynamic_extension_20260924. It can be overridden with --data-root.
Required relative inputs under that root
  results/h24/pap_xgb.joblib
  results/h24/pap_xgb_development.json
  explanation_inputs/eicu_h24.csv
  figures/h24_pap_xgb_shap_summary.csv
The frozen model and patient-level explanation input must be recreated locally with authorised source data access. They are not part of the public archive. The development metadata and SHAP summary retain the original source specification.

The source sample is the existing expanded eICU 24-hour cohort, sampled with random_state 20260924, n=300. The plot preserves all 60 feature contributions and the top-feature order, combining the final 48 inputs as before. Non-data vertical jitter is assigned a fixed seed for repeatable display. Numeric SHAP values, transformed inputs, model parameters and patient sampling do not change.

The aggregate flow file supplies the original mutually exclusive cohort counts. Figure 1 changes only exclusion-box type size. Figures 2, 3 and 4 are copied byte for byte from --baseline-dir. All five TIFF files are RGB LZW encodings of the corresponding PNG pixels without resampling. The 300-dpi TIFF tag is physical-size metadata, not artificial upscaling.

Verification outputs
  figure_redraw_validation.json: source hashes, explanation checks, count identities, clinical labels, image hashes and pixel identity.
  figure_visual_qa.json: final visual inspection and hashes for the delivered assets.

Required environment versions match code/pressure72_requirements.txt. For the audited run: Python 3.12; numpy 2.5.3; pandas 3.0.6; scikit-learn 1.9.1; XGBoost 3.4.1; SHAP 0.52.0; matplotlib 3.11.2.
