Commit Graph

200 Commits

Author SHA1 Message Date
Arnaud Joly 689058a23e Merge pull request #3412 from brentp/logistic_l1_l2_ex
[MRG] use more interesting range for C in logistic l1 l2 example.
2014-07-17 16:54:43 +02:00
Andreas Mueller 5b247f90e4 move around examples for better structure. 2014-07-17 09:35:30 +02:00
Brent Pedersen c8705478e7 use more interesting range for C in logistic l1 l2 example.
Before this change, output is (http://scikit-learn.org/dev/auto_examples/linear_model/plot_logistic_l1_l2_sparsity.html#example-linear-model-plot-logistic-l1-l2-sparsity-py):
C=10
Sparsity with L1 penalty: 6.25%
score with L1 penalty: 0.9104
Sparsity with L2 penalty: 4.69%
score with L2 penalty: 0.9093
C=100
Sparsity with L1 penalty: 6.25%
score with L1 penalty: 0.9098
Sparsity with L2 penalty: 4.69%
score with L2 penalty: 0.9098
C=1000
Sparsity with L1 penalty: 4.69%
score with L1 penalty: 0.9098
Sparsity with L2 penalty: 4.69%
score with L2 penalty: 0.9098

With this change, output is:
C=100.00
Sparsity with L1 penalty: 6.25%
score with L1 penalty: 0.9110
Sparsity with L2 penalty: 4.69%
score with L2 penalty: 0.9098
C=1.00
Sparsity with L1 penalty: 9.38%
score with L1 penalty: 0.9104
Sparsity with L2 penalty: 4.69%
score with L2 penalty: 0.9093
C=0.01
Sparsity with L1 penalty: 85.94%
score with L1 penalty: 0.8625
Sparsity with L2 penalty: 4.69%
score with L2 penalty: 0.8915
2014-07-16 15:55:48 -06:00
Andreas Mueller d146d23d93 Catch ConvergenceWarning in RandomizedL1 2014-07-16 15:55:09 +02:00
bwignall 34fc4d4214 CLN: Capitalize "Gaussian" in example docstrings 2014-06-01 16:53:23 -04:00
Olivier Grisel 40597f1df5 Merge pull request #3169 from mjbommar/issue-3167-eradicate-todense
PR re: issue 3167 to eradicate .todense()
2014-05-24 21:02:47 +02:00
mjbommar d8099d6d27 Replacing the non-test .todense() methods with .toarray() 2014-05-20 21:16:34 -04:00
Rajat Khanduja cca6fc7e8b Some more examples updated to use matplotlib.pyplot 2014-05-16 09:42:02 +05:30
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 e1d4df43b0 FIX loss function example
The Python API to the loss functions was lost in the last refactor.
Restored the example by defining the losses inline.
Fixed the x-axis to show "f(x)" instead of "y * f(x)".
Removed references to private APIs.
2014-04-06 17:10:20 +02:00
hendrik 8f94ae6d0f PY3 fixed examples 2014-02-15 17:05:08 +01:00
Lars Buitinck 7a22b77de2 ENH make_pipeline and make_union utility functions 2013-12-29 14:26:34 +01:00
Jake Vanderplas eb22538ca5 import pylab -> import matplotlib.pyplot 2013-11-12 12:15:14 -08:00
Jake Vanderplas 568c43d6f3 ENH: add PolynomialFeatures preprocessor 2013-11-11 17:18:16 -08:00
Jaques Grobler ed82f9befc some cosmetic commits and delete duplicate files 2013-11-03 22:10:58 -08:00
Olivier Grisel 7430eba323 Add plot titles and newstyle plt import in OLS vs Ridge example 2013-10-24 16:25:40 +02:00
Johannes Schönberger c2a2bfe45b Rename RANSAC to RANSACRegressor 2013-10-20 15:58:04 +02:00
Johannes Schönberger 28569ec45e Improve RANSAC example script 2013-10-20 15:58:04 +02:00
Johannes Schönberger 3753696c2b Unwrap lines 2013-10-20 15:58:03 +02:00
Johannes Schönberger db75461e21 Remove bagged regressor 2013-10-20 15:58:03 +02:00
Johannes Schönberger 0378f8cde6 Extend RANSAC example with comparison to BaggingRegressor 2013-10-20 15:58:02 +02:00
Johannes Schönberger 64eb3c4092 Use np.logical_not rather than tilde 2013-10-20 15:58:01 +02:00
Johannes Schönberger 54475d43b8 Change default parameters, so example works without specific parameters 2013-10-20 15:58:00 +02:00
Johannes Schönberger dc0f897f04 Move ransac example to linear-model folder 2013-10-20 15:58:00 +02:00
Alexandre Gramfort 10b048032f API : set return_models to False by default in path functions in coordinate descent 2013-09-29 15:18:13 +02:00
Lars Buitinck 98b95ca711 DOC fix example comments
* @GaelVaroquaux's name was misspelled
* users won't know what a "Documentation merge" is
2013-07-30 12:41:56 +02:00
Andreas Mueller 75af99e231 EXAMPLES remove non-existing example from doc, don't trigger deprecated interface in enet_path, lasso_path 2013-07-28 15:17:14 +02:00
Alexandre Gramfort a6cb73612f ENH : update example of OMP 2013-07-26 09:50:54 +02:00
Jaques Grobler 30c08d4533 Merge pull request #2017 from jaquesgrobler/ENH_docstrings_in_gallery
MRG: Google-images style effect for Example Gallery
2013-07-24 02:26:10 -07:00
Alexandre Gramfort 1c784b9253 ENH : massive refactoring of CV models in coordinate descent. Now the algo core is in path functions 2013-07-23 17:23:13 +02:00
Jaques Grobler d6b0f36f2e make new classes for lasso_path/enet_path and deprecate old 2013-07-23 17:23:13 +02:00
Jaques Grobler 65cce1b43c fix merge conflict 2013-07-22 16:20:31 +02:00
Jaques Grobler cbfe851751 example fixes to clean first docstring paragraph of rst code 2013-07-22 15:48:44 +02:00
Jaques Grobler 8861833ec9 DOC spellfixes 2013-06-29 16:18:23 +03:00
Jaques Grobler c453118208 logistic regresion example fix 2013-06-06 12:43:32 +02:00
Jaques Grobler 6fc3499bd4 example docstring fixes 2013-06-06 12:30:42 +02:00
James McDermott 8e79203b36 DOC rename lambda to alpha in plot_lasso_coordinate_descent_path. (Re)-Closes #903. 2013-05-16 07:19:25 +02:00
Robert Layton dacfd8bd5d DOC: Replaced all BSD style licenses with "BSD 3 clause"
Replaced all BSD style licenses with "BSD 3 clause"
Not checked yet!

Removed duplicate "3 clause, 3 clause"

Removed trailing period if exists

Fixed some missed licences, still about 50 to do, but those can be automated

Think I got the last of them.

Apparently me and sed have different ideas of regex.

Found a few more
2013-04-30 08:34:46 +02:00
Gael Varoquaux f924d3e466 COSMIT: labels in plot_lasso_coordinate_descent_path 2013-04-30 08:03:54 +02:00
Jaques Grobler 456b0d010f Merge pull request #1581 from jaquesgrobler/example_gallery_cleanup
MRG Example gallery cleanup
2013-04-18 04:21:05 -07:00
Stefano Lattarini 67ece78da4 COSMIT various typofixes
As suggested by codespell <https://github.com/lucasdemarchi/codespell>

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
2013-04-11 21:22:14 +02:00
Jaques Grobler 6dedebafad line_count sort added, some changes reverted 2013-03-18 13:52:20 +01:00
Andreas Mueller edd1555a4b MISC minor fixes in examples 2013-03-10 19:06:42 +01: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
Jaques Grobler 9ddaac33bb remove 1000`s of warnings from example 2013-01-18 13:18:57 +01:00
Andreas Mueller 9da34688c4 EXAMPLE don't use deprecated interface in lasso model selection 2013-01-17 12:51:12 +01:00
Andreas Mueller 13e78ff34c DOC don't use deprecated parameter rho in the lasso / enet examples 2013-01-16 23:24:56 +01:00
Alexandre Gramfort 60be687756 DOC : add doctring in plot_lasso_and_elasticnet.py 2013-01-07 11:19:50 +01:00
Olivier Grisel 0d47916b42 ENH: add the squared hinge loss to the SGD loss example 2013-01-02 22:56:32 +01:00