You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For whatever imputers we have, but especially SimpleImputer, we should have an add_indicator parameter, which simply stacks a MissingIndicator transform onto the output of the imputer's transform.
I've realised that if we add a parameter append to MissingIndicator which stacks the indicator matrix into X, its output can simply be piped into any imputer. It will potentially enhance iterative imputation, too, but could affect KNN imputation in arbitrary ways.
@sergeyf points out that for IterativeImputer, stacking an indicator before passing X in will lead the estimator to learn bad imputation functions, so... maybe that's not such a good idea.
Activity
jnothman commentedon Aug 21, 2018
This allows downstream models to adjust for the fact that a value was imputed, rather than observed.
prathusha94 commentedon Aug 22, 2018
Can I take this up if no one else is working on it yet @jnothman ?
jnothman commentedon Aug 23, 2018
Go for it
datajanko commentedon Sep 8, 2018
@prathusha94 are you still working on this?
jnothman commentedon Feb 12, 2019
I've realised that if we add a parameter
appendto MissingIndicator which stacks the indicator matrix into X, its output can simply be piped into any imputer. It will potentially enhance iterative imputation, too, but could affect KNN imputation in arbitrary ways.jnothman commentedon Feb 13, 2019
@sergeyf points out that for IterativeImputer, stacking an indicator before passing X in will lead the estimator to learn bad imputation functions, so... maybe that's not such a good idea.