Additional outcomes#5
Merged
mlondschien merged 20 commits intomainfrom Apr 3, 2025
Merged
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR introduces additional outcome labels and refactors feature engineering logic for ICU data analysis.
- Adds a new optional parameter switches_only to the eep_label function with corresponding documentation and branch logic.
- Implements new outcome labels for respiratory failure (hueser variant), circulatory failure (hyland variant), kidney failure (Lyu variant), and additional labels for hyperglycemia, hypoglycemia, severe MELD, SOFA, and sepsis.
- Adds a feature check in main() that verifies required features are present based on the external features loader.
fe5389f to
15de3e1
Compare
manuelburger
requested changes
Apr 2, 2025
Comment on lines
+681
to
+682
| sofa3 = pl.col("bili").forward_fill(1).backward_fill(1) > 6.0 | ||
| sofa3_at_48h = eep_label(sofa3, 48).alias("sofa3_at_48h") |
Collaborator
There was a problem hiding this comment.
Suggested change
| sofa3 = pl.col("bili").forward_fill(1).backward_fill(1) > 6.0 | |
| sofa3_at_48h = eep_label(sofa3, 48).alias("sofa3_at_48h") | |
| liver_sofa3 = pl.col("bili").forward_fill(1).backward_fill(1) > 6.0 | |
| liver_sofa3_at_48h = eep_label(liver_sofa3, 48).alias("liver_sofa3_at_48h") |
Member
Author
There was a problem hiding this comment.
switches_only=True/False?
Collaborator
There was a problem hiding this comment.
in principle also switches_only=False. I haven't used this task so far, we could also drop it. The MELD variant is more robust and worked out fine, this was a backup when I added "liver support".
manuelburger
approved these changes
Apr 3, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
No description provided.