CGL
Collaborative Graph Learning with Auxiliary Text for Temporal Event Prediction in Healthcare (IJCAI 2021)
Install / Use
/learn @LuChang-CS/CGLREADME
CGL
Collaborative Graph Learning with Auxiliary Text for Temporal Event Prediction in Healthcare
Requirements
Packages
- python 3
- numpy
- sklearn
- pandas
- nltk
- tensorflow
Prepare the environment
- Install all required softwares and packages.
pip install -r requirements.txt
- In the python console, download the
stopwordsandpunktcorpus required bynltk.
import nltk
nltk.download('stopwords')
nltk.download('punkt')
Download the MIMIC-III dataset
Go to https://mimic.physionet.org/ for access. Once you have the authority for the dataset, download the dataset and extract the csv files to data/mimic3/raw/ in this project.
Preprocess the dataset
python run_preprocess.py
Train the model
- For the medical code prediction task.
python train_codes.py
- For the heart failure prediction task.
python train_hf.py
