Skip to content

add_indicator switch in imputers #11886

Closed

Description

@jnothman

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.

Activity

  1. added
    Easy
    on Aug 21, 2018
  2. jnothman commented on Aug 21, 2018

    @jnothman
    MemberAuthor

    This allows downstream models to adjust for the fact that a value was imputed, rather than observed.

  3. added this to the 0.21 milestone on Aug 22, 2018
  4. prathusha94 commented on Aug 22, 2018

    @prathusha94

    Can I take this up if no one else is working on it yet @jnothman ?

  5. jnothman commented on Aug 23, 2018

    @jnothman
    MemberAuthor

    Go for it

  6. datajanko commented on Sep 8, 2018

    @datajanko
    Contributor

    @prathusha94 are you still working on this?

  7. jnothman commented on Feb 12, 2019

    @jnothman
    MemberAuthor

    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.

  8. jnothman commented on Feb 13, 2019

    @jnothman
    MemberAuthor

    @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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    EasyEnhancement

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions