-
Notifications
You must be signed in to change notification settings - Fork 19
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
Make all imputation methods consistent in regard to encoding requirements #824
Comments
Comments so far (note: I haven’t tested anything yet)
|
I’ve updated the branch following my tests. In
Additionally, I wrote dedicated tests to validate the Let me know your thoughts before I proceed with creating a PR. |
Description of feature
Imputation requires proper encoding of the data, but at the moment, there is no consistent strategy about what to do if a passed AnnData is not encoded. Some methods throw an exception, while some others silently encode the data with an arbitrary method.
It would be probably better to just throw an exception and let the caller decide what to do instead of altering the data.
explicit_impute
simple_impute
knn_impute
miss_forest_impute
mice_forest_impute
So I suggest to modify
knn_impute
,miss_forest_impute
andmice_forest_impute
.The text was updated successfully, but these errors were encountered: