Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/finnickniu/lerp
https://github.com/finnickniu/lerp
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/finnickniu/lerp
- Owner: finnickniu
- Created: 2021-08-29T04:30:18.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-11-27T09:11:17.000Z (about 3 years ago)
- Last Synced: 2024-10-14T23:42:29.312Z (3 months ago)
- Language: Python
- Size: 174 KB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# LERP : Label-dependent and event-guided interpretable disease risk prediction using EHRs
## This is the code for the LERP.
![image](https://github.com/finnickniu/LERP/blob/main/IMG/LERP.png)
## Dataset1. The dataset used is MIMIC-III, you should download it from https://physionet.org/content/mimiciii/1.4/ first.
2. Then, you should use MIMI-III benchmark tool to generate the Phenotype classification.
3. Next, you should use the py files under the folder of data_processing.
```
python data_processing/generate_event.py
python data_processing/generate_text.py
data_processing/split_data.py
```
## TrainingAfter you generate the dataset, you could use:
```
python trainer_text_event.py
```
to train the LERP## Evaluation and case study
You could use the following commands to evaluate the LERP model and check the case study result.
```
python evaluation_text_event.py
python case_study_text_event.py
```