Skip to content

RFC rename AgglomerativeClustering.n_components_? #13357

Closed

Description

@amueller

AgglomerativeClustering.n_components_ is the number of connected components in the graph. That's a bit confusing since n_components_ has a very specific meaning in other places in sklearn.
In particular, FeatureAgglomeration inherits this n_components_, so this is a transformer that as n_components_ which doesn't correspond to the output dimensions.
If we explicitly store the output dimension, that might be less of an issue, but I find the naming is a bit misleading and maybe we could use n_connected_components_ instead?

Activity

  1. jnothman commented on Mar 2, 2019

    @jnothman
    Member
  2. adrinjalali commented on Mar 3, 2019

    @adrinjalali
    Member

    I guess we'd need to add n_connected_components_ and deprecate the old one.

    +1 to explicit n_input_features_ and n_output_features_ as well.

  3. added
    Easy
    on Mar 3, 2019
  4. scouvreur commented on Mar 10, 2019

    @scouvreur
    Contributor

    Hi there - let me try and fix this issue

  5. scouvreur commented on Mar 18, 2019

    @scouvreur
    Contributor

    Hi there - apologies would it be possible to get some feedback on this PR ? Thanks alot in advance

  6. thomasjpfan commented on Jun 11, 2019

    @thomasjpfan
    Member

    Fixed in #13427

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

    Easyhelp wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions