theislab / ehrapy

Electronic Health Record Analysis with Python.
https://ehrapy.readthedocs.io/
Apache License 2.0
237 stars 19 forks source link

Encoding consistency with imputations #807

Closed nicolassidoux closed 1 week ago

nicolassidoux commented 1 month ago

Description of feature

Imputation functions require the data to be encoded. We have two different strategies in ehrapy to deal with that:

The second option is problematic because the user cannot control how the data should be encoded. For the sake of consistency across all the imputation functions, we should modify the imputations that silently encode the data to make it throw an exception instead. We consider it's the user responsability to properly encode his data according to his needs.

nicolassidoux commented 1 week ago

Duplicates #824