Downloads · 30 days
0
HassanB4/warfarisk-baselines
warfarisk-baselines 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 scikit-learn. 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+Phase+1+Baselines" alt="Beyond MAE: Phase 1 Baselines" </p
Downloads · 30 days
0
Access
Public
Updated Aug 29, 2026
Repo size
141 KB
Likes
0
Public
Click a slice to open those files.
.joblib7.9 KB · 45%
From the Hugging Face model README
This repository contains the three mandatory Phase 1 baselines 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 on the public IWPC pharmacogenomic cohorts. These set the performance floor every later-phase model in the project is compared against; no model is reported as an improvement unless it beats the IWPC published equation below (MAE 9.177).
This is a research artifact, not a validated clinical tool. It has not been evaluated prospectively and has no regulatory status.
Three baselines, evaluated on IWPC-6256 (n=6,037 after cleaning, n_test=1,207, fixed 80/20 patient-level split, seed 20260725):
import joblib # this repo's own artifact format (fit via common/hf_push.py);
# only load .joblib files from this specific, trusted repo
from huggingface_hub import hf_hub_download
model_path = hf_hub_download(
repo_id="HassanB4/warfarisk-baselines",
filename="clinical_only_linear_regression.joblib", # see repo files for exact names
)
model = joblib.load(model_path)
prediction = model.predict(your_clinical_features_dataframe)
The IWPC published-equation baseline is a plain Python function (iwpc_published_equation_predict()), not a fitted sklearn estimator; see HasanBGit/WarfaRisk's src/warfarisk/phase1_baselines.py for its implementation.
| 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 |
|---|---|---|---|
| Cohort | IWPC-6256 | Split Level | Patient ID (not row) |
| Split Seed | 20260725 | Test Fraction | 0.20 |
| Leakage Audit | 11/11 checks passed | Preprocessing Fit | Training fold only |
| Baseline | MAE (mg/week) | R² | PW20 |
|---|---|---|---|
| Naive median dose | 12.339 | -0.048 | 0.342 |
| Clinical-only linear regression | 10.860 | 0.222 | 0.354 |
| IWPC published pharmacogenetic equation | 9.177 | 0.413 | 0.429 |
PW20 = proportion of predictions within 20% of the true dose (IWPC's own clinical-acceptability threshold is ≥0.50: none of these three baselines clear it; see HassanB4/warfarisk-autogluon-6256 for a model that gets closer).
HassanB4/warfarisk-autogluon-1780 for the second cohortWe thank the PharmGKB / International Warfarin Pharmacogenetics Consortium for the IWPC dataset.
This model is described in the following manuscript, submitted to the MDPI journal AI and under review as of August 2026. The DOI below will be updated once the paper is formally published.
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. AI 2026, submitted.
@article{barmandah2026beyond,
title={Beyond Mean Absolute Error: Ancestry-Stratified Calibration and Explainability for Warfarin Dosing Models},
author={Barmandah, Hassan and Bawazir, Omar Abdullah and Marghalani, Siraj Aldeen and Shaat, Moath and Alkattan, Abdullah N. and AlEissa, Mariam M.},
journal={AI},
publisher={MDPI},
year={2026},
note={Manuscript submitted, under review as of August 2026. Cite the published DOI once assigned.}
}
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.