Skip to content

RFC binary operators on estimators #7608

Open

Description

Activity

  1. jnothman commented on Oct 8, 2016

    @jnothman
    Member

    In what way is it not a bad idea? :P

    The concern I commented on is that

    GridSearchCV(MyEst(), param_dict={'foo': bar})
    

    then with a pipeline needs adjustment:

    GridSearchCV(Transf() >> MyEst(), param_dict={'MyEst__foo': bar})
    

    This adjustment is much less obvious with operators...

    Why __mul__ not __add__?

  2. amueller commented on Oct 8, 2016

    @amueller
    MemberAuthor

    Should probably be __add__

    I would argue that just shows how bad our GridSearchCV interface is ;) I suggested at some point attaching the parameters to the estimator, that would get rid of the problem.

    GridSearchCV(Transf() >> MyEst().search_over({'foo':bar}))

    But I guess that remains a pipe-dream ;)

  3. amueller commented on Oct 8, 2016

    @amueller
    MemberAuthor

    Oh you created an issue for that even #5082 ... it's been a while

  4. jnothman commented on Oct 8, 2016

    @jnothman
    Member

    I wonder whether we should have an Epic tag for such things, perhaps instead of SLEPS...

  5. amueller commented on Oct 8, 2016

    @amueller
    MemberAuthor

    well we now each have a list of pets ;)

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

    APINeeds Decision

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions