Downloads · 30 days
0
HassanB4/warfarisk-autogluon-1780
warfarisk-autogluon-1780 is a tabular regression model from HassanB4. Use it for the tabular regression task on the model card, and read the license before you ship it in a product. It is set up for autogluon. The card lists the license as apache-2.0.
<p align="center" <img src="https://placehold.co/800x200/dbeafe/1e40af?text=Beyond+MAE+%E2%80%94+AutoGluon+IWPC-1780" alt="Beyond MAE: Phase 3 AutoGluon IWPC-1780" </p
Downloads · 30 days
0
Access
Public
Updated Oct 20, 2026
Repo size
169 MB
Likes
0
Public
Click a slice to open those files.
.pkl169 MB · 100%
From the Hugging Face model README
This repository contains the Phase 3 winning model from the pipeline described in "Beyond Mean Absolute Error: Ancestry-Stratified Calibration and Explainability for Warfarin Dosing Models", a nine-phase reproducible ML pipeline for warfarin dose prediction, trained on the IWPC-1780 cohort. An AutoGluon extreme_quality predictor on the combined clinical+genetic feature set reaches MAE 7.959, R² 0.480, PW20 0.497, the best of 9 architectures × 3 feature sets evaluated on this cohort, with the stacking ensemble (R² 0.479) essentially tied for second.
This is a research artifact, not a validated clinical tool. It has not been evaluated prospectively and has no regulatory status.
This model is an AutoGluon TabularPredictor fit with the extreme_quality preset on IWPC-1780 (n=1,780, n_test=356, fixed 80/20 patient-level split, seed 20260725), using the combined feature set (clinical + CYP2C9/VKORC1 genotype consensus). IWPC-1780 uses binary ancestry flags (Black, Asian) and pre-z-scored continuous features, and is evaluated independently rather than pooled with IWPC-6256. This is the best-performing model of 9 architectures evaluated across 3 feature sets on this cohort in the Phase 3 nested ablation.
from autogluon.tabular import TabularPredictor
from huggingface_hub import snapshot_download
local_dir = snapshot_download("HassanB4/warfarisk-autogluon-1780")
predictor = TabularPredictor.load(local_dir)
prediction = predictor.predict(your_dataframe) # combined clinical+genetic features, see Training Data below
Input features: age, weight, height (pre-z-scored, not raw units; do not feed raw clinical values without re-harmonizing scale), binary ancestry flags (Black, Asian), CYP2C9 consensus, VKORC1.AA/VKORC1.AG genotype flags, amiodarone/enzyme-inducer comedication flags. See HasanBGit/WarfaRisk's src/warfarisk/phase3_genetics_ablation.py for the exact feature-engineering pipeline.
| Split | Samples | Description |
|---|---|---|
| Training | 1,424 | 80% of IWPC-1780, patient-ID-level split |
| Test | 356 | Held out, seed 20260725 |
| Parameter | Value | Parameter | Value |
|---|---|---|---|
| Preset | extreme_quality | Time Limit | 600s |
| Feature Set | combined (clinical + genetic) | Excluded Model Types | TABDPT, TABICL, TABM, MITRA |
| Split Seed | 20260725 | Split Level | Patient ID (not row) |
| Final Ensemble | WeightedEnsemble_L2 (blend of RealTabPFN-v2_r13/LightGBMPrep_r13/RealTabPFN-v2_r106) | Leakage Audit | 11/11 checks passed |
Same excluded-model-type configuration as the IWPC-6256 run, applied for consistency across cohorts. Full run notes in docs/RESULTS.md and docs/KNOWN_ISSUES.md.
| Model | MAE | R² | PW20 |
|---|---|---|---|
AutoGluon extreme_quality | 7.959 | 0.480 | 0.497 |
| Stacking Ensemble | 7.993 | 0.479 | 0.514 |
| TabPFN | 8.018 | 0.477 | 0.483 |
| Linear Regression | 8.070 | 0.474 | 0.511 |
| CatBoost | 8.205 | 0.451 | 0.492 |
| Random Forest | 8.940 | 0.370 | 0.444 |
| MLP | 9.231 | 0.320 | 0.447 |
| Elastic Net | 9.404 | 0.286 | 0.449 |
| XGBoost | 10.583 | 0.165 | 0.396 |
| Metric | Value |
|---|---|
| MAE (mg/week) | 7.959 |
| R² | 0.480 |
| PW20 | 0.497 |
PW20 = proportion of predictions within 20% of the true dose (IWPC's own clinical-acceptability threshold is ≥0.50: this model comes within one point of clearing it, the closest of any model evaluated in this project).
| Cohort | MAE | R² | PW20 |
|---|---|---|---|
IWPC-6256 (phase3-autogluon-iwpc6256) | 8.552 | 0.475 | 0.466 |
| IWPC-1780 (this model) | 7.959 | 0.480 | 0.497 |
docs/RESULTS.md for this project's Phase 4/5 ancestry-fairness and calibration findings on this cohortdata/DATA.mdWe thank the PharmGKB / International Warfarin Pharmacogenetics Consortium for the IWPC dataset, and the AutoGluon team for the AutoML framework this model was built with.
This model is described in the following article, published in the Journal of Personalized Medicine.
Barmandah, H.; Bawazir, O.A.; Marghalani, S.A.; Shaat, M.; Alkattan, A.N.; AlEissa, M.M. Beyond Mean Absolute Error: Ancestry-Stratified Calibration and Explainability for Warfarin Dosing Models. J. Pers. Med. 2026, 16 (10), 531. https://doi.org/10.3390/jpm16100531
@Article{jpm16100531,
author={Barmandah, Hassan and Bawazir, Omar A. and Marghalani, Siraj Aldeen and Shaat, Muath and Alkattan, Abdullah N. and AlEissa, Mariam M.},
title={Beyond Mean Absolute Error: Ancestry-Stratified Calibration and Explainability for Warfarin Dosing Models},
journal={Journal of Personalized Medicine},
volume={16},
year={2026},
number={10},
article-number={531},
url={https://www.mdpi.com/2075-4426/16/10/531},
issn={2075-4426},
doi={10.3390/jpm16100531}
}
This project is licensed under the Apache 2.0 License. This model was fit on IWPC data; the fitted artifact and code are shared under Apache-2.0, but the underlying IWPC dataset is not redistributed by this repository; see HasanBGit/WarfaRisk's data/DATA.md for how to obtain it.