Skip to content

[ENH] should set_params also reset the class if None is passed? #469

Description

@fkiraly

Currently there is an inconsistency in set_params with respect to its behaviour of resetting self.

If called with None (no parameters), it does not reset, for any other parameter setting, it does.

This feels inconsistent, and it turns out to an unclear contract in composition, as is seen in the discussion in #467 (review).

So, should we remove the clause if params is None: return self in set_params?

FYI @SimonBlanke

Activity

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