sunlabuiuc / PyHealth

A Deep Learning Python Toolkit for Healthcare Applications.
https://pyhealth.readthedocs.io
MIT License
994 stars 212 forks source link

Develop #285

Closed tamimuiuc closed 6 months ago

tamimuiuc commented 7 months ago

Mohammad Tamim tamim2@illinois.edu

Pull Request - Addition of Sepsis-3 Mortality Prediction Models and Datasets

This pull request includes several components that extend PyHealth's capabilities for analyzing mortality in sepsis patients using the MIMIC-III dataset.

Changes include:

I've tested these additions with data from the MIMIC-III public dataset, focusing on ensuring compatibility and performance within the existing PyHealth framework.

I welcome any feedback on code style, performance improvements, or integration aspects. Thank you for considering this contribution!

tamimuiuc commented 6 months ago

Hello,

I've completed the requested changes and there are no conflicts with the base branch. Could you please confirm the next steps for merging this pull request? Do I need to take any further action?

Additionally, I would like to confirm that this contribution meets the requirements for the 10 bonus points as outlined in the course instructions. If there is any additional information or action needed from my side, please let me know.

Thank you!

ycq091044 commented 6 months ago

Hi @tamimuiuc , thanks for your PR. I have started to test your PR locally.

  1. It seems that the current dataset does not support the internal stat() function. image
ycq091044 commented 6 months ago

Hello, I have carefully reviewed your PR.

  1. the CSV sepsis dataframe is somewhat useful as an addition to the package.
  2. the task function is not helpful.
  3. the example does not run (xgb.XGBClassifier needs X and y as input, but you use one dataframe).

We will give partial bonus points based on this.

tamimuiuc commented 6 months ago

@ycq091044 Thank you for your feedback. Actually, the XGBClassifier uses:

ycq091044 commented 6 months ago

Y, I can quickly make it run. There are just some minor bugs, such as XGBClassifier is not imported anywhere.

tamimuiuc commented 6 months ago

Hi, in 'xgboost.py', I did 'import xgboost as xgb' and created 'XGBoostModel' class. Also, in 'mortality_mimic3_sepsis3.py', I did both 'import xgboost as xgb' and called 'XGBoostModel'. You should be able to run the classifier successfully.

ycq091044 commented 6 months ago

WHERE DID YOU IMPORT XGBoostModel in mortality_mimic3_sepsis3.py?

tamimuiuc commented 6 months ago

I see, you are right. I compiled all the code in Google Colab and ran it there. I did not import XGBoostModel.Thank you!