Commit Graph

31 Commits

Author SHA1 Message Date
Amar pratap singh 578e3eb532
DOC Update notebook-style example plot_dbscan (#22568) 2022-03-03 10:41:52 +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 4a95e33e63 MNT Make modules private in sklearn.datasets (#15307) 2019-10-27 17:17:23 -04:00
Stéphane Couvreur 7166ae8ece MNT Updated adjusted_mutual_info_score and normalized_mutual_info_score default to 'arithmetic' (#13814) 2019-05-09 10:35:32 +10:00
Adrin Jalali 69c8967e21 DOC Fix warnings in examples (#12654)
Fixe or suppresses many warnings in examples, including matplotlib complaining about the non-gui backend.
2019-01-17 21:41:13 +11:00
Koen 81d2178ed0 EXA calculate number of noise points (#12428) 2018-10-23 07:56:53 +11:00
plagree 1f6ac72df7 [MRG] DOC examples with correct notebook style (#9061)
* DOC examples with correct notebook style

* Modifications in examples/ to avoid unwanted notebook style

* Remove last notebook style example

* Space formatting to avoid notebook style
2017-06-20 14:48:57 +02:00
Nate Guerin 25917bae33 Use tuples for color specification (#9149)
In the Matplotlib 'Specifying Colors' section, neither list nor array is a valid color specification type.  When this example is run using Python 3.5, and matplotlib 2.0.2 (latest), it errors with the message: 

"ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()"

This change preserves the semantics of the example while allowing it to successfully run by converting to tuples for the matplotlib color specification.
2017-06-19 00:33:10 +10:00
Loïc Estève b185c4e8f9 FIX examples with numpy 1.13 2017-06-09 00:21:41 +02:00
Rajat Khanduja 5e20b8c664 Fixed pep8 violations. Some 'line too long' errors still remain. 2014-05-15 09:23:16 +05:30
Rajat Khanduja 2244098532 Updated examples to use pyplot for plotting instead of pylab
Some examples not updated because scripts throw error (probably not
because of the change)
2014-05-15 02:18:07 +05:30
Eric Jacobsen 0974fb6d3c ENH: Call plot twice per class label rather than for every point. 2013-10-10 00:37:31 -07:00
Andreas Mueller 307afc8441 DOC correct / simplify dbscan examle 2013-04-04 21:49:26 +02:00
Lars Buitinck 837093df7f P3K: use print as a function in the examples
Also corrected some typos, including two people misspelling their own names :)
2013-02-01 15:04:42 +01:00
Andreas Mueller a2c3112dcc MISC don't use fit parameters in example 2012-05-15 21:37:33 +02:00
Robert Layton e51e4d679b ami_score -> adjusted_mutual_info_score
This time, in examples and docs!
2011-11-07 22:46:11 +11:00
Robert Layton 193ac024a4 - AMI in the cluster examples
- See Also sections updated
- mutual_information -> mutual_information_score (and updating subsequent imports)
2011-10-21 10:52:42 +11:00
Robert Layton 90366b2996 Using pairwise_distances in the Silhouette Coefficient. Updates to docs, code, tests and examples 2011-10-04 11:23:14 +11:00
Robert Layton 91f7abc4d7 Example updated, which required fixing a backwards compatability bug (adjusted_rand_score not imported in metrics/cluster/__init__.py) 2011-10-04 10:44:15 +11:00
Lars Buitinck fa50e6885a rename ari_score adjusted_rand_score 2011-09-13 16:50:30 +02:00
Olivier Grisel 75f2617579 FIX: fix broken document clustering example and add ARI to examples 2011-09-10 07:23:46 +02:00
Fabian Pedregosa ddf4b72109 Move project directory from scikits.learn to sklearn 2011-09-02 12:06:57 +02:00
Fabian Pedregosa 68f27e3790 Revert "Move project directory from scikits.learn to sklearn"
This reverts commit fd0d3b879d.
2011-09-02 12:03:18 +02:00
Fabian Pedregosa fd0d3b879d Move project directory from scikits.learn to sklearn 2011-09-02 11:38:24 +02:00
Mathieu Blondel 7ccf836637 Fix DBSCAN example. 2011-08-06 17:11:57 +09:00
Robert Layton 3670ea39dd Replace points with samples everywhere 2011-08-03 22:10:30 +10:00
Robert Layton 295aa02801 Small changes, mostly to wording 2011-07-30 10:22:57 +10:00
Robert Layton d1c264c8e4 Example now much more likely to return 3 clusters. 2011-07-26 09:53:31 +10:00
Robert Layton c56e777be8 Examples for dbscan in documentation 2011-07-23 13:15:08 +10:00
Robert 26795bd386 Example file based on Affinity Propogation example.
Plots core points larger than noise and non-core points.
2011-07-12 22:45:20 +10:00