test: add unit tests for MortalityPredictionMIMIC3 and DrugRecommendationMIMIC3#965
Open
haoyu-haoyu wants to merge 1 commit intosunlabuiuc:masterfrom
Open
test: add unit tests for MortalityPredictionMIMIC3 and DrugRecommendationMIMIC3#965haoyu-haoyu wants to merge 1 commit intosunlabuiuc:masterfrom
haoyu-haoyu wants to merge 1 commit intosunlabuiuc:masterfrom
Conversation
…tionMIMIC3 Add data-driven tests using MIMIC-III demo data: MortalityPredictionMIMIC3: - Schema validation (task_name, input/output schemas) - Binary mortality labels verified - Deterministic label check: patient 10059 visit 142582 → mortality=1 - Surviving next visit: patient 10119 visit 157466 → mortality=0 - Last visit exclusion, single-visit patient exclusion - Visit without procedures/drugs exclusion DrugRecommendationMIMIC3: - Schema validation (nested_sequence inputs, multilabel output) - Sample key and dimensionality validation - Single-visit patient and missing-data exclusion - Multi-visit patient produces samples Assisted-by: Claude Code
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.
Summary
MortalityPredictionMIMIC3andDrugRecommendationMIMIC3test_mimic3_readmission_prediction.pyTests added
test_mimic3_mortality_prediction.py(8 tests)test_task_schematest_sample_schematest_mortality_label_is_binarytest_mortality_label_from_next_visittest_surviving_next_visittest_last_visit_excludedtest_single_visit_patients_excludedtest_visit_without_procedures_excludedtest_mimic3_drug_recommendation.py(6 tests)test_task_schematest_sample_schematest_conditions_are_nestedtest_single_visit_patients_excludedtest_visit_without_procedures_excludedtest_multi_visit_patient_produces_samplesTest plan
Relates to #425, #338