Commit Graph

11 Commits

Author SHA1 Message Date
siavrez 84c655c156
MNT Accelerate_examples plot_digits_linkage.py (#21737) 2021-11-26 11:04:51 +01:00
Yar Khine Phyo 13480ff627
DOC Speed up plot_digits_linkage.py example #21598 (#21678)
* Reduce num of samples in plot-digit-linkage example

* Remove unnecessary random_state

* Remove nudge_images

* Address PR comment, elaborate analysis
2021-11-19 10:27:29 +01:00
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 81dde3a6e5
STY Ensures that "flake8 ." works (#20298) 2021-06-18 15:46:40 +02:00
Tilen Kusterle a8efe00876 EXA Use return_X_y=True with load_digits where appropriate (#14359) 2019-07-14 17:10:54 +02:00
Justin Shenk 21eb82dea2 DOC Remove unused function argument `X` from `plot_clustering` function (#11049) 2018-05-02 10:04:45 +10:00
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
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