Commit Graph

26 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
Dimitri Papadopoulos Orfanos 5f6e17c084
MNT Remove #!/usr/bin/python shebang in examples (#21246) 2021-10-14 18:51:09 +02:00
Thomas J. Fan 70a185ae59
MAINT Enable and run black on examples (#20502) 2021-10-07 10:13:00 +02:00
Jonathan e9077056d2
DOC cleaned descriptive paragraph for linear regression example (#18348)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2020-09-07 10:42:52 +02:00
topisan 3379e90f6d DOC return_X_y for load diabetes (#14762) 2019-08-24 23:17:01 -04:00
barrycg 58e8a43b60 Use r_squared instead of explained_variance in plot_ols.py (#14562) 2019-08-05 13:19:55 -04:00
David Robles 0ab5c678bb Save predictions in diabetes_y_pred (#8241)
- No need for `regr.predict(diabetes_X_test)` to run multiple times.
- Use `sklearn.metrics.mean_squared_error`.
- Use `sklearn.metrics.r2_score`, instead of `regr.score`, which
  runs `regr.predict` again.
2017-02-27 23:06:26 +01:00
kjell 50dfa8610a change comment, printed comment, and code behavior to all reflect computation of mean squared error 2015-12-03 13:17:58 -08:00
kjell 6f7e351886 residual sum of squares should be computed by summing the squared differences instead of taking the mean. 2015-12-03 10:48:02 -08:00
Louis Tiao 3396087038 Update plot_ols.py
Minor/trivial NumPy slicing refactor
2015-06-15 16:17:28 +10: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
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
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 38b455d541 Cosmit pep8 2012-12-25 13:16:05 +01:00
Mathieu Blondel 09674eefdc Clean up unused code. 2012-06-15 16:30:47 +09:00
Andreas Mueller dcc1c7431c COSMIT + MISC pep8, pyflakes, typos and some other cleanup of examples. 2012-04-29 23:13:06 +02:00
Jaques Grobler 0d63d785e7 Merge branch 'master' into WIP_tut
Conflicts:
	examples/linear_model/plot_ols.py
2012-03-22 17:12:36 +01:00
iBayer 3ac4be8d40 cleaned some examples 2012-03-18 20:53:00 +01:00
Jaques Grobler bd271ab65c Better doctest time(wip),removed duplicate examples, update plot_ols.py
- I wish to replace the old plot_ols.py example with a new one which
  uses the diabetes_dataset instead of synthetic data.
- references to changed example paths updated
2012-03-05 17:18:05 +01:00
Jake Vanderplas 96d6060cd7 pep8 2011-12-23 10:12:26 -08:00
Fabian Pedregosa 63887c2b18 Style update in documentation. 2011-11-21 12:31:59 +01: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
Fabian Pedregosa 68bc58d029 glm --> linear_model rename holocaust.
I also moved cd_fast.pyx from its src subdirectory to linear_models,
to match the sgd module structure.
2010-11-25 16:27:30 +01:00