Skip to content

RFC: prefixing output feature names in ColumnTransformer with passthrough #16444

Closed

Description

@adrinjalali

In ColumnTransformer, #14048 raises the question that whether the output feature name should be prefixed when the transformer is set to passthrough, or the feature is in the output as a part of remainder=passthrough'`.

The PR is mostly finished and awaits a decision on this question, hence opening this issue to discuss the alternatives.

We have the following two options for each case:

  1. prefix the output feature to keep it consistent with the case where there is indeed a transformation happening on the column
  2. do not prefix the output feature name since there has been no transformation done on it.

We don't have to choose the same answer for the two cases (transformer is passthrough or it's a part of the remainder).

ping @jorisvandenbossche @jnothman @amueller

Activity

  1. NicolasHug commented on Feb 14, 2020

    @NicolasHug
    Member

    I'd say don't prefix anything and pass the name through, in both cases.

    This is what SLEP007 recommends (merged but not accepted nor finished yet), and as mentioned there, we might allow to change the default naming behavior with a parameter.

  2. jnothman commented on Feb 16, 2020

    @jnothman
    Member
  3. amueller commented on Feb 18, 2020

    @amueller
    Member

    I don't have a strong opinion. I thought the name of the transformer was remainder (say if you want to set a hyper-parameter), so I expected the feature to be prefixed by remainder in this case. But I'm happy to go with what the majority wants.

  4. adrinjalali commented on Feb 19, 2020

    @adrinjalali
    MemberAuthor

    Cool, I guess we can consider this one resolved then :)

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions