Commit Graph

5 Commits

Author SHA1 Message Date
Dimitri Papadopoulos Orfanos d4d5f8c7e0
MAINT consistent use of `print(__doc__)` in examples (#21307)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2021-10-22 15:33:22 +02:00
Thomas J. Fan 70a185ae59
MAINT Enable and run black on examples (#20502) 2021-10-07 10:13:00 +02:00
Thomas J. Fan 7cc0177f8e
MNT Replaces numpy alias with builtin typse (#17687)
* MNT Replaces numpy alias with builtin typse

* STY Lint error
2020-06-24 16:51:51 +02:00
Roman Yurchak 94f2e9c5d8
DOC simpler block delimitation in sphinx-gallery examples (#17068)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2020-06-08 23:23:14 -04: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