We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi,
I'm using MIMIC-IV 3.0 dataset with PyHealth. When I try to set the mortality prediction task, I get an IndexError: list index out of range.
IndexError: list index out of range
Here's my code:
from pyhealth.data import MIMIC4Dataset from pyhealth.tasks import mortality_prediction_mimic4_fn mimic4_base = MIMIC4Dataset( root="/Users/hnwang/research/physionet.org/files/mimiciv/3.0/hosp", tables=["diagnoses_icd", "procedures_icd"], code_mapping={"ICD10PROC": "CCSPROC"}, ) mimic4_sample = mimic4_base.set_task(mortality_prediction_mimic4_fn)
The error occurs at line 293 in sample_dataset.py:
sample_dataset.py
293 keys = self.samples[0].keys() IndexError: list index out of range
Can you help me figure out why this happens?
Thanks
The text was updated successfully, but these errors were encountered:
This is a bug from examples. Try this: #301
Sorry, something went wrong.
No branches or pull requests
Hi,
I'm using MIMIC-IV 3.0 dataset with PyHealth. When I try to set the mortality prediction task, I get an
IndexError: list index out of range
.Here's my code:
The error occurs at line 293 in
sample_dataset.py
:Can you help me figure out why this happens?
Thanks
The text was updated successfully, but these errors were encountered: