-
-
Notifications
You must be signed in to change notification settings - Fork 25k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added distance_threshold parameter to hierarchical clustering #9069
Merged
NicolasHug
merged 29 commits into
scikit-learn:master
from
VathsalaAchar:hierarchical_clustering_threshold
Apr 29, 2019
Merged
Added distance_threshold parameter to hierarchical clustering #9069
NicolasHug
merged 29 commits into
scikit-learn:master
from
VathsalaAchar:hierarchical_clustering_threshold
Apr 29, 2019
Commits on Oct 30, 2017
-
Distance threshold added to hierarchical clustering
When distance_threshold is set then it is used to determine the number of clusters to cut the tree at. Though it is to be noted that this works only when computer_full_tree=True. * When building the tree the return_distance set to True if the distance_threshold has been set. The distances returned is then used to calculate the number of clusters when cutting the tree. * Test agglomerative clustering with distance_threshold passed in and compare with the different number of clusters produced with and without connectivity. Changes to documentation to include distance_threshold Updates to distance threshold in hierarchical clustering * Moved the parameter check from init to fit for consistency * Updates to tests to account for changes made above Documentation changes based on review * backticks for variables in docstrings * formatting without backslashes Test for hierarchical clustering with distance_threshold * clusters produced are checked against the linkage tree to confirm that it matches the point where the distance exceeds the threshold set * boundary case test when distance_threshold is equal to the distance * Updated tests to compare clusters and number of clusters * Allowing users to set n_clusters or distance_threshold and updated tests * Checking the n_clusters None condition better * Removed the necessity for n_clusters_ to be set to None and redundant checks * Updated tests after the above changes * Cleaned up test to compare clusters produced using n_clusters against distance_threshold * Added and Simplified test for boundary conditions * Updated the documentation on distance_threshold restrictions
Configuration menu - View commit details
-
Copy full SHA for 6c5f957 - Browse repository at this point
Copy the full SHA 6c5f957View commit details -
* Doc string updates for clear information * Removed redundant attribute n_clusters_ * Fixed tests * Changes to FeatureAgglomeration to include distance threshold
Configuration menu - View commit details
-
Copy full SHA for 8ea9afa - Browse repository at this point
Copy the full SHA 8ea9afaView commit details
Commits on Dec 6, 2017
-
Configuration menu - View commit details
-
Copy full SHA for e56670d - Browse repository at this point
Copy the full SHA e56670dView commit details
Commits on Dec 7, 2017
-
* Added a new attribute `n_clusters_` to hold clusters computed when distance threshold is set
Configuration menu - View commit details
-
Copy full SHA for 03709c8 - Browse repository at this point
Copy the full SHA 03709c8View commit details -
Configuration menu - View commit details
-
Copy full SHA for fda248d - Browse repository at this point
Copy the full SHA fda248dView commit details
Commits on Apr 9, 2019
-
Merge remote-tracking branch 'upstream/master' into hierarchical_clus…
…tering_threshold
Configuration menu - View commit details
-
Copy full SHA for c45ec1f - Browse repository at this point
Copy the full SHA c45ec1fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6efc3ec - Browse repository at this point
Copy the full SHA 6efc3ecView commit details -
Configuration menu - View commit details
-
Copy full SHA for 47790a3 - Browse repository at this point
Copy the full SHA 47790a3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 71dd010 - Browse repository at this point
Copy the full SHA 71dd010View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0764729 - Browse repository at this point
Copy the full SHA 0764729View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0649b29 - Browse repository at this point
Copy the full SHA 0649b29View commit details -
Configuration menu - View commit details
-
Copy full SHA for 83600ea - Browse repository at this point
Copy the full SHA 83600eaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 43ef071 - Browse repository at this point
Copy the full SHA 43ef071View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7a8fc68 - Browse repository at this point
Copy the full SHA 7a8fc68View commit details -
Configuration menu - View commit details
-
Copy full SHA for b37c183 - Browse repository at this point
Copy the full SHA b37c183View commit details
Commits on Apr 10, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 38659e4 - Browse repository at this point
Copy the full SHA 38659e4View commit details
Commits on Apr 16, 2019
-
Configuration menu - View commit details
-
Copy full SHA for b17a818 - Browse repository at this point
Copy the full SHA b17a818View commit details
Commits on Apr 22, 2019
-
Configuration menu - View commit details
-
Copy full SHA for fd44b65 - Browse repository at this point
Copy the full SHA fd44b65View commit details -
Configuration menu - View commit details
-
Copy full SHA for cd6c9aa - Browse repository at this point
Copy the full SHA cd6c9aaView commit details -
Configuration menu - View commit details
-
Copy full SHA for c07fa4d - Browse repository at this point
Copy the full SHA c07fa4dView commit details -
Configuration menu - View commit details
-
Copy full SHA for ba326ac - Browse repository at this point
Copy the full SHA ba326acView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0b94bef - Browse repository at this point
Copy the full SHA 0b94befView commit details
Commits on Apr 23, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 680e515 - Browse repository at this point
Copy the full SHA 680e515View commit details -
Configuration menu - View commit details
-
Copy full SHA for c84f429 - Browse repository at this point
Copy the full SHA c84f429View commit details
Commits on Apr 25, 2019
-
Merge remote-tracking branch 'upstream/master' into hierarchical_clus…
…tering_threshold
Configuration menu - View commit details
-
Copy full SHA for 3981918 - Browse repository at this point
Copy the full SHA 3981918View commit details
Commits on Apr 26, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 3f1a6be - Browse repository at this point
Copy the full SHA 3f1a6beView commit details -
Configuration menu - View commit details
-
Copy full SHA for 36cd205 - Browse repository at this point
Copy the full SHA 36cd205View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4ae66fd - Browse repository at this point
Copy the full SHA 4ae66fdView commit details
Commits on Apr 28, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 8060020 - Browse repository at this point
Copy the full SHA 8060020View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.