Skip to content
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

ImportError: cannot import name 'MIMIC3BaseDataset' from 'pyhealth.datasets' #276

Closed
ChandlerBang opened this issue Mar 13, 2024 · 1 comment

Comments

@ChandlerBang
Copy link

Hi,

When I was testing the example in https://pyhealth.readthedocs.io/en/latest/examples_bak.html#step-3-build-deep-learning-models, I found I could not load the dataset. Could you help look into this issue? Thank you!

> python test_retain.py
Traceback (most recent call last):
  File "test_retain.py", line 1, in <module>
    from pyhealth.datasets import MIMIC3BaseDataset
ImportError: cannot import name 'MIMIC3BaseDataset' from 'pyhealth.datasets' (/Users/anaconda3/envs/ehr/lib/python3.8/site-packages/pyhealth/datasets/__init__.py)

I also tried to search the class MIMIC3BaseDataset over this repo but could not find it. Any help would be appreciated!

@ycq091044
Copy link
Collaborator

ycq091044 commented Mar 25, 2024

Hi,

Sorry for the late reply. The page you are referring to is a deprecated page which uses the fairly old version. Please follow this page for the new example https://pyhealth.readthedocs.io/en/latest/.

We have "MIMIC3Dataset" module not the "MIMIC3BaseDataset".

Thanks,
Chaoqi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants