MetaAMI: A Novel Meta-Learning Approach for Predicting In-Hospital Mortality in Acute Myocardial Infarction
MetaAMI (A Novel Meta-Learning Approach for Predicting In-Hospital Mortality in Acute Myocardial Infarction)is an accurate and cost-effective meta-learning model for predicting in-hospital mortality in acute myocardial infarction patients using routinely collected clinical features. By combining random projection with stacked ensemble learning and an SVM meta-learner, MetaAMI provides reliable risk prediction and supports clinical decision-making for early mortality risk stratification.
- Clone the MetaAMI git repository
git clone https://github.com/wan-mlab/MetaAMI.git- Navigate to the directory of MetaAMI package
cd /your path/MetaAMI
pip install .how to use the method
from MetaAMI import MetaAMIConfig, run_metaami
cfg = MetaAMIConfig(
data_path="data/feature.csv",
label_path="data/label.csv",
output_dir="results/metaami_run",
id_col="hadm_id",
label_col="label",
rp_dim=10, #random projection dimention
n_rp=10, #number of random projection
n_splits=10,
n_repeats=1, #repeat times of random projection
models=("lr", "svm", "rf", "xgb", "mlp", "ae_mlp", "ot_mlp", "transformer"),
meta_model="svm_rbf",
threshold=0.5,
threshold_strategy="youden",
)
run_metaami(cfg)If you find any bugs or problems, or you have any comments on MetaAMI, please don't hesitate to contact via email btuerhanbayi@unmc.edu or Issues.
Bulidierxin Tuerhanbayi, Shibiao Wan
