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

[FEAT] NaNs are not supported in CTGAN model #346

Open
shutsao opened this issue Jun 18, 2024 · 0 comments
Open

[FEAT] NaNs are not supported in CTGAN model #346

shutsao opened this issue Jun 18, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@shutsao
Copy link

shutsao commented Jun 18, 2024

Is your feature request related to a problem? Please describe.
ValueError: Input X contains NaN. BayesianGaussianMixture does not accept missing values encoded as NaN natively.

Describe the solution you'd like
However, missing values can be legitimate. For example, Patient A has a complex disease and is given 5 drugs, whereas Patient B doesn't have a complex disease and is given 1 drug. However, drug names are recorded across drug 1 to drug 5 columns and dosage is recorded across dosage 1 to dosage 5 columns. This leads to 8 missing values for Patient B but these missing values shouldn't be imputed because they are not applicable legitimately. Therefore, it may be more ideal to keep missing values as they are regardless of variable types.

Additional context
The example described occurs frequently in health administrative data.

@shutsao shutsao added the enhancement New feature or request label Jun 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant