1import joblib # this repo's own artifact format (fit via common/hf_push.py);
2 # only load .joblib files from this specific, trusted repo
3from huggingface_hub import hf_hub_download
4
5model_path = hf_hub_download(
6 repo_id="HassanB4/warfarin-review-phase1-baselines",
7 filename="clinical_only_linear_regression.joblib", # see repo files for exact names
8)
9model = joblib.load(model_path)
10prediction = 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.
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/warfarin-review-phase3-autogluon-iwpc6256 for a model that gets closer).
We thank the PharmGKB / International Warfarin Pharmacogenetics Consortium for the IWPC dataset.
A paper describing this work is in preparation.
1@misc{warfarisk,
2 title={WarfaRisk: A Reproducible, Ancestry-Stratified Machine Learning Pipeline for Warfarin Dose Prediction},
3 author={Barmandah, Hassan and Bawazir, Omar Abdullah and Marghalani, Siraj Aldeen and Shaat, Moath and AlEissa, Mariam M.},
4 year={2026},
5 note={Manuscript in preparation}
6}
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.