-
-
Notifications
You must be signed in to change notification settings - Fork 25.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MRG] Changed name n_components to n_connected_components in Agglomer…
…ativeClustering base class (#13427) * Changed name n_components to n_connected_components in base class * Fixed line which exceeded PEP8 max of 79 chars * Fixed line 818 which exceeded PEP8 max of 79 chars * Added try and except to provide deprecation warning if passed * Updated deprecation and removal version numbers * Added deprecation of n_components using @Property generator * Makes FeatureAgglomeration class inherit n_connected_components_ attribute from AgglomerativeClustering class * Added test for DeprecationWarning when trying to access n_components * Removed @Property generator causing linting error * Fixed typo in test * Fixed flake8 error due to single line between 2 functions * Test fix attempt * Edited test function docstring * Corrected n_components deprecation test docstring * Fixed line continuation issue in AgglomerativeClustering base class * Added deprecation message as part of the @deprecated decorator * Added attribute deprecation information in the Attributes section of the AgglomerativeClustering base class docstring * Added test for deprecation warning message * Added attribute deprecation information in the Attributes section of the FeatureAgglomeration base class docstring * Fixed test issue and added longer match string * Edited n_components_ deprecation message to add double backticks * Fixed match string to reflect deprecation message change in test * Added name to list of contributors * Documented information in v0.21 changelog * Added cluster parent folder to documentation in v0.21 changelog * Removed myself from list of core contributors * Moved |API| subsection to the end of the list, and changed reference to Github username * Removed n_components deprecation documentation from FeatureAgglomeration and AgglomerativeClustering class dosctrings * Fix indentation on _fix_connectivity function call
- Loading branch information
Showing
3 changed files
with
56 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters