Downloads · 30 days
0
HassanB4/warfarisk-autogluon-6256
warfarisk-autogluon-6256 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-6256" alt="Beyond MAE: Phase 3 AutoGluon IWPC-6256" </p
Downloads · 30 days
0
Access
Public
Updated Oct 20, 2026
Repo size
213 MB
Likes
0
Public
Click a slice to open those files.
.pkl213 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-6256 cohort. An AutoGluon extreme_quality predictor on the combined clinical+genetic feature set reaches MAE 8.552, R² 0.475, PW20 0.466, the best of 9 architectures × 3 feature sets evaluated on this cohort, narrowly ahead of TabPFN (0.463) and CatBoost (0.454).
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-6256 (n=6,037 after cleaning, n_test=1,207, fixed 80/20 patient-level split, seed 20260725), using the combined feature set (clinical + CYP2C9/VKORC1 genotype consensus). It is the best-performing model of 9 architectures evaluated across 3 feature sets on this cohort in the Phase 3 nested ablation.
extreme_quality internally builds a weighted ensemble across its own model portfolio (final WeightedEnsemble_L2 used RealTabPFN-v2_c1 for this cohort); see Training Procedure for the exact time budget and excluded model types used to produce this resultfrom autogluon.tabular import TabularPredictor
from huggingface_hub import snapshot_download
local_dir = snapshot_download("HassanB4/warfarisk-autogluon-6256")
predictor = TabularPredictor.load(local_dir)
prediction = predictor.predict(your_dataframe) # combined clinical+genetic features, see Training Data below
Input features: age (band), weight (kg), height (cm), indication for anticoagulation, comorbidity flags (diabetes, heart failure, smoking), comedication flags (amiodarone, statins, enzyme inducers), CYP2C9 star-allele consensus, VKORC1 -1639 (rs9923231) consensus. See HasanBGit/WarfaRisk's src/warfarisk/phase3_genetics_ablation.py for the exact feature-engineering pipeline.
| Split | Samples | Description |
|---|---|---|
| Training | 4,830 | 80% of IWPC-6256, patient-ID-level split |
| Test | 1,207 | 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 (RealTabPFN-v2_c1, weight 1.0) | Leakage Audit | 11/11 checks passed |
TABDPT/TABICL/TABM/MITRA were excluded after a first attempt: TABDPT alone overran its allotted time slice by over 15 minutes with no way to interrupt mid-fit (AutoGluon's time_limit is checked only between models); re-run clean after exclusion. Full run notes in docs/RESULTS.md and docs/KNOWN_ISSUES.md.
| Model | MAE | R² | PW20 |
|---|---|---|---|
AutoGluon extreme_quality | 8.552 | 0.475 | 0.466 |
| TabPFN | 8.664 | 0.463 | 0.446 |
| CatBoost | 8.762 | 0.454 | 0.455 |
| Stacking Ensemble | 9.046 | 0.431 | 0.447 |
| MLP | 9.006 | 0.412 | 0.445 |
| Linear Regression | 9.078 | 0.419 | 0.445 |
| Random Forest | 9.214 | 0.415 | 0.428 |
| XGBoost | 10.047 | 0.312 | 0.407 |
| Elastic Net | 10.440 | 0.272 | 0.374 |
| Metric | Value |
|---|---|
| MAE (mg/week) | 8.552 |
| R² | 0.475 |
| PW20 | 0.466 |
PW20 = proportion of predictions within 20% of the true dose (IWPC's own clinical-acceptability threshold is ≥0.50: this model, the best in the sweep, comes close but does not yet clear it).
| System | MAE | R² | PW20 |
|---|---|---|---|
| Naive median dose | 12.339 | -0.048 | 0.342 |
| Clinical-only linear regression | 10.860 | 0.222 | 0.354 |
| IWPC published equation | 9.177 | 0.413 | 0.429 |
AutoGluon extreme_quality (this model) | 8.552 | 0.475 | 0.466 |
docs/RESULTS.md for this project's Phase 4 ancestry-holdout and Phase 5 per-subgroup calibration findings, which this specific model was not itself re-evaluated under (Phase 4/5 used a stacking-ensemble/CatBoost substitute; see docs/RESULTS.md for exactly which model was used for which analysis)data/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.