-
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. |
|
Regarding the behaviour for non-encoded data:
Agreed! |
Looking forward very much to your PR! :) |
For what I understood, a package A has access to a private module in another package B if A is lower in the hierarchy (ie B is somehow a parent of A). In our case A tries to get access to a module of C, but C is not a parent of A, hence the warning.
Since the hints suggest the function returns an |
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: