Commit Graph

8 Commits

Author SHA1 Message Date
Hanmin Qin 6f7394953b EXA avoid use of matplotlib.cm.spectral which has been removed (#10764) 2018-03-07 16:49:45 +11:00
Leland McInnes 823382995c [MRG+2] Single linkage clustering (#9372)
* First cut at basic single linkage internals

* Refer to correct dist_metrics package

* Add csgraph sparse implementation for single linkage

* Add fast labelling/conversion from MST to single linkage tree; remove uneeded single_linkage.pyx file.

* Ensure existing tests cover single linkage

* Iterating toward correct solution. Still have to get n_clusters, compute_full_tree=False working

* Fix the parents array when we don't get the "full tree"

* Add single linkage to agglomerative clustering example.

* Add single linkage to digits agglomerative clustering example.

* Update documentation to reflect the addition of single linkage.

* Update documentation to reflect the addition of single linkage.

* Provide a more complete comparison of the different linkage methods, highlighting the relative strengths and weaknesses.

* Update docs with a more complete comparison on linkage methods (scale to be determined?)

* Update WhatsNew for single linkage clustering.

* Handle true zero distances by setting them to "epsilon" distances

* Add test for identical points messing with sparse linkage clustering.

* Test all the linkage methods for identical point issues

* Cast precomputed distances to float64 for consistency

* Turn bounds checking off; add docsting warning.

* Make public and private versions of labelling.

* more efficient is sorted check

* Explicit cast to cover all bases
2018-01-22 14:58:17 +01:00
Andreas Mueller 9bc4de8dae some fixes for sphinx and in examples 2015-03-02 12:50:53 -05:00
Rajat Khanduja 7d10d98492 Fixed some PEP8 violations even present in master branch, in examples/
This fixes some of the violations that were not caused by the change to pyplot
from pylab.
2014-05-15 09:35:24 +05:30
Gael Varoquaux 76206f1919 COSMIT: many cosmetic comments
Fixes remarks by @ogrisel, @agramfort, @larsman, @jnothman
2014-02-17 08:34:25 +01:00
Gael Varoquaux fa3edaac33 DOC: connectivity in agglomerative clustering
Explain the percolation effect.
2014-02-06 18:03:18 +01:00
GaelVaroquaux a938b202a3 DOC: Agglomeration clustering docs and examples 2014-02-06 16:55:46 +01:00
Gael Varoquaux cfa55d3e31 DOC: AgglomerationClustering doc and examples 2014-02-06 12:51:42 +01:00