Commit Graph

32 Commits

Author SHA1 Message Date
zempleni e7c710424a
DOC Update plot_label_propagation_structure.py to notebook style (#22726)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
2022-03-22 12:18:46 +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 4d749ea490 CLN Uses public API instead of deprecated modules in examples (#15390) 2019-10-29 10:59:02 +08:00
ZJ Poh adddf00433 [MRG] np.ones -> np.full (#11628) 2018-07-23 09:49:01 +02:00
Hanmin Qin e443c05ea3 hange alpha in plot_label_propagation_structure.py (#9788) 2017-09-19 09:40:29 +02:00
Utkarsh Upadhyay 0dc22798e7 [MRG+1] Fix semi_supervised (#9239)
* Files for my dev environment with Docker

* Fixing label clamping (alpha=0 for hard clamping)

* Deprecating alpha, fixing its value to zero

* Correct way to deprecate alpha for LabelPropagation

The previous way was breaking the test
sklearn.tests.test_common.test_all_estimators

* Detailed info for LabelSpreading's alpha parameter

Based on the original paper.

* Minor changes in the deprecation message

* Improving "deprecated" doc string and raising DeprecationWarning

* Using a local "alpha" in "fit" to deprecate LabelPropagation's alpha

This solution isn't great, but it sets the correct value for alpha
without violating the restrictions imposed by the tests.

* Removal of my development files

* Using sphinx's "deprecated" tag (jnothman's suggestion)

* Deprecation warning: stating that the alpha's value will be ignored

* Use __init__ with alpha=None

* Update what's new

* Try fix RuntimeWarning in test_alpha_deprecation

* DOC Indent deprecation details

* DOC wording

* Update docs

* Change to the one true implementation.

* Add sanity-checked impl. of Label{Propagation,Spreading}

* Raise ValueError if alpha is invalid in LabelSpreading.

* Add a normalizing step before clamping to LabelPropagation.

* Fix flake8 errors.

* Remove duplicate imports.

* DOC Update What's New.

* Specify alpha's value in the error.

* Tidy up tests.

Add a test and add references, where needed.

* Add comment to non-regression test.

* Fix documentation.

* Move check for alpha into fit from __init__.

* Fix corner case of LabelSpreading with alpha=None.

* alpha -> self.variant

* Make Whats_new more explicit.

* Simplify impl. of Label{Propagation,Spreading}.

* variant -> _variant.
2017-07-04 08:20:52 +10: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
Nelson Liu d2aaf0f4bb doc: fix spellings of 'license' 2016-03-31 17:25:31 -07:00
johannah d15f322111 Added colorblind compatibility 2015-10-23 19:47:32 +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
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 dcc1c7431c COSMIT + MISC pep8, pyflakes, typos and some other cleanup of examples. 2012-04-29 23:13:06 +02:00
Andreas Mueller c93c1a290e FIX broke label_probagation example, now fixed it again. 2012-03-04 14:38:14 +01:00
Andreas Mueller 40c45ca4e6 ENH new samples generators for classification and clustering. Refactored label propagation example a bit 2012-03-04 00:33:24 +01:00
GaelVaroquaux adc5201a16 COSMIT: authorship and licensing info 2012-02-02 10:55:32 +01:00
GaelVaroquaux dcfc124e1f COSMIT: make the plot landscape
It will be easier to include in the documentation
2012-02-02 09:50:07 +01:00
Clay Woolam 268aed6b42 TL directory change to push label propagation code into semi_supervised 2012-01-22 21:13:56 -08:00
Clay Woolam 794a31ccfa removed unlabeled_identifier, updated tests and examples to reflect this 2012-01-21 14:40:34 -08:00
clay woolam 5e7d3c965f finishing up sparse additions (need to complete todo) 2011-10-12 00:06:38 -07:00
Alexandre Gramfort efddf2aa4f STY: mostly style + avoid a zip in favor of an np.argsort 2011-09-14 22:06:35 -04:00
clay woolam 1a06a4619b changed a bunch of variable names, fixed some test cases 2011-09-14 00:55:38 -07:00
clay woolam 472cf5b0e4 fixed examples for new naming scheme 2011-09-04 19:23:45 -07:00
clay woolam 4fd0a3ce79 optimized _build_graph with inplace methods, conform to standards with variable names 2011-09-01 19:05:17 -07:00
clay woolam e2cf62aebf Merge branch 'new_lp' 2011-08-23 10:28:45 -07:00
clay woolam c90b2d99d4 added vene's subplot adjustments 2011-08-23 10:12:32 -07:00
clay woolam d1f38c1ab0 fixed structure example 2011-08-23 09:37:04 -07:00
vene 67d185e638 DOC: clarified example titles 2011-08-23 19:03:01 +03:00
vene 04f354f0a0 Prettify structure example 2011-08-23 15:15:18 +02:00
Clay Woolam 2a7af09e77 conformance to pep8 2011-08-16 13:51:52 -07:00
Clay Woolam 208a70e280 added semi_supervised directory 2011-08-13 17:17:26 -07:00