Add/multimodal rnn + soft fix mask absolute value bug #796
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request modernizes and standardizes several PyHealth example scripts for clinical prediction tasks using the new
BaseDatasetandBaseTaskclasses. It introduces improved workflows for drug recommendation, mortality prediction, readmission prediction, and length of stay prediction on eICU and MIMIC-IV datasets, as well as demonstrates the newMultimodalRNNmodel. The updates focus on clarity, maintainability, and leveraging the latest PyHealth features.Major updates to example scripts:
Modernized eICU examples:
BaseDataset-basedeICUDatasetand the correspondingBaseTaskclasses (DrugRecommendationEICU,MortalityPredictionEICU,ReadmissionPredictionEICU,LengthOfStayPredictioneICU). These examples demonstrate the standardized PyHealth workflow, including dataset loading, task setting, splitting, model definition, training, and evaluation. [1] [2] [3] [4]Multimodal model demonstration:
MultimodalRNNmodel, showcasing handling of both sequential and non-sequential features, model initialization, training, evaluation, and prediction output inspection.Documentation improvements:
MultimodalRNNclass, ensuring users can easily find information about its usage and features.Deprecation of legacy workflow:
References:
[1] [2] [3] [4] [5] [6] [7]