Repository navigation
Add YAIB benchmark tasks for MIMIC-IV #1338
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
cf23eb2
ec0004f
a83b8f8
98fdc0d
6ac17e7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -87,6 +87,13 @@ | |
| VariantClassificationClinVar, | ||
| ) | ||
| from .patient_linkage_mimic3 import PatientLinkageMIMIC3Task | ||
| from .yaib_mimic4 import ( | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [low] New public tasks have no API docs entry Five public task classes are exported here, but no docs/api/tasks/*.rst file or docs/api/tasks.rst toctree entry is added, unlike other task modules such as InHospitalMortalityMIMIC4. Add an autoclass page per task (or one for the module) so the new tasks appear in the API reference. |
||
| YAIBAKIMIMIC4 as YAIBAKIMIMIC4, | ||
| YAIBKidneyFunctionMIMIC4 as YAIBKidneyFunctionMIMIC4, | ||
| YAIBLengthOfStayMIMIC4 as YAIBLengthOfStayMIMIC4, | ||
| YAIBMortalityMIMIC4 as YAIBMortalityMIMIC4, | ||
| YAIBSepsisMIMIC4 as YAIBSepsisMIMIC4, | ||
| ) | ||
|
|
||
|
|
||
| def __getattr__(name: str): | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[medium] New MIMIC-IV tables are not exercised by any dataset-level test
The six tables added here (transfers, microbiologyevents, chartevents, outputevents, inputevents, procedureevents) are only read through hand-built Patient objects in tests/core/test_yaib_mimic4.py. No test loads them through MIMIC4EHRDataset, runs YAIB's pre_filter through set_task, or checks the config column names against a real table layout. The demo fixture in test-resources/core/mimic4demo has none of these tables, while existing MIMIC-IV task tests (tests/core/test_mimic4_los.py, tests/core/test_mimic4_dka.py) run set_task on that fixture. Fix: add minimal CSV fixtures for these tables (or extend the demo fixture) and one set_task test per task family, including the missing-table ValueError path through the real loader.