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

Pre-Filter ID Issue #7

Open
raghurams95 opened this issue Feb 23, 2022 · 3 comments
Open

Pre-Filter ID Issue #7

raghurams95 opened this issue Feb 23, 2022 · 3 comments

Comments

@raghurams95
Copy link

Hello,

I am trying to replicate the results from the paper and I am stuck at getting the features for the time-variant variables. I run the following and I get a KeyError: ID in the Pre-Filter step. Could you please help in figuring out what I am doing wrong?
I have run all the steps from the mimic3_experiements to generate the required files.
Thank you!
image_2022-02-23_133529

@shengpu-tang
Copy link
Member

Hi, I believe this is a column naming issue. Can you check the df_population file (mortality_48.h.csv) if it uses ID or ICUSTAY_ID as the identifier column?

@raghurams95
Copy link
Author

Hi, the file does name them as ID.

mortality_48.0h.csv

@shengpu-tang
Copy link
Member

Hi, I apologize for not checking carefully. From the line where the error is raised,
df = df[df['ID'].isin(df_population.index)]

You should check if df has a column named ID. This should be the from the file named input_data.csv.

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