- Edit directories in "file_config/data.conf".
- Make directories in folder "data":
Then load raw data files into "data/raw_data". Make sure it contains the following three files/folders: demographic.csv, ICD.csv, vitals/2019_06_27_Mon*.csv.
cd data mkdir raw_data data_frame features model result cd ..
- Generate DataFrame from raw data
python gen_dataframe.py
- Extract static and realtime features from generated DataFrame
python feature_extraction.py --if_impute True/False --static_txt bow/rbow --dynamic_txt notxt/rbow
- Train initial prediction using extracted features
python train_initial_predictor.py --hypoxemia_threshhold 90 --hypoxemia_window 10 --prediction_window 5 --static_feature_file FILENAME_OF_FEATURE.csv
- Train real-time prediction using extracted features
python train_realtime_predictor.py --hypoxemia_threshhold 90 --hypoxemia_window 10 --prediction_window 5 --dynamic_feature_file FILENAME_OF_FEATURE.csv
forked from HanyangLiu/Hypoxemia-MLPred
-
Notifications
You must be signed in to change notification settings - Fork 0
wchshapp/Hypoxemia-MLPred
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Machine learning based hypoxemia prediction
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- Python 91.0%
- Jupyter Notebook 8.6%
- Shell 0.4%