Gael Varoquaux
8511d96352
MISC: small docstring work
2012-09-15 17:16:40 +02:00
Alexandre Gramfort
d8d4af0973
ENH : finish addressing @GaelVaroquaux comments + improve coverage + add linear regression to example
2012-09-15 16:40:44 +02:00
Alexandre Gramfort
b0bdd3f1b5
adding my name in IR example
2012-09-15 16:40:43 +02:00
Alexandre Gramfort
af22f290fd
remove support for extrapolation
2012-09-15 16:40:43 +02:00
Alexandre Gramfort
4bc740cfb7
ENH : proper IsotonicRegression model + example + test
2012-09-15 16:40:43 +02:00
Nelle Varoquaux
c1abbf2214
DOC - added paragraph in user documentation on the isotonic regression + an example plot.
...
Fixed a couple of things from the isotonic regression such as better type checking and renaming variables
2012-09-15 16:40:43 +02:00
Vlad Niculae
e6ca49e9a3
Use pinvh wherever it helps in the codebase.
...
Use pinvh in plot_sparse_recovery example
Use pinvh in bayes.py
Use pinvh in GMM and DPGMM
2012-09-04 19:58:47 +01:00
Andreas Mueller
713ba6006e
COSMIT pep8
2012-09-04 17:24:01 +01:00
Andreas Mueller
63e99023b6
DOC fixed some sphinx errors, issues in docs....
2012-09-03 23:48:32 +01:00
Alexandre Gramfort
466479fe03
API : consistent use alpha_/alphas_ for alpha/alphas estimated by CV in linear models (issue #1041 )
2012-09-02 23:16:54 +02:00
Vlad Niculae
0a382ac543
Fix example using deprecated API, output was misleading.
2012-09-01 20:02:15 +02:00
GaelVaroquaux
a7aed5097d
DOC: formatting and rephrasing in MultiTaskLasso
2012-08-07 15:51:14 +02:00
Alexandre Gramfort
02446b8753
rename ylabel in MultiTaskLasso example
2012-08-07 15:51:13 +02:00
Alexandre Gramfort
21706e36b9
ENH + DOC : add MultiTaskElasticNet + doc + 1 example
2012-08-07 15:51:12 +02:00
Alexandre Gramfort
287898d09e
ENH : add multi task lasso example
2012-08-07 15:51:12 +02:00
Mathieu Blondel
09674eefdc
Clean up unused code.
2012-06-15 16:30:47 +09:00
Andreas Mueller
127415b209
DOC rename lambda to alpha in plot_lasso_model_selection. Closes #903 .
2012-06-13 21:55:56 +02:00
Fabian Pedregosa
443929dd6b
Some documentation for example plot_ridge_path
2012-05-24 15:44:18 +02:00
Fabian Pedregosa
01b29e5cd5
Some doc for the example "Lasso path using LARS"
2012-05-24 15:42:43 +02:00
Andreas Mueller
3ec174e9f6
FIX one more example
2012-05-05 21:37:29 +02:00
Andreas Mueller
e749771faa
MISC don't use ``set_cmap``
2012-05-05 20:43:21 +02:00
Andreas Mueller
645db95737
ENH adjusted examples to new matplotlib 1.1.1
2012-05-05 20:43:21 +02:00
Gael Varoquaux
6f3cc74784
EXMPL: fix legend in sgd sample weights
2012-05-05 19:53:07 +02: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
958cfbe131
COSMIT cleanup + pep8 in examples
2012-04-27 22:59:58 +02:00
Alexandre Gramfort
5b93ccddd8
cosmit : consistent linestyle in plot_lasso_coordinate_descent_path
2012-04-10 13:50:01 +02:00
flyingimmidev
0df07e3f9a
merged into plot_lasso_coordinate_descent_path
2012-04-01 14:35:56 +02:00
flyingimmidev
83e1ead98b
add examples for positive constraint lasso and enet
2012-04-01 14:11:07 +02:00
flyingimmidev
a7215af854
- changed parameter from positive_constraint to positive
...
- moved parameter from fit to constructor
2012-03-31 23:49:58 +02:00
flyingimmidev
be11f8f328
use scikit function to make train test split
2012-03-31 22:55:09 +02:00
flyingimmidev
ce0f7cb585
reset wrongly committed file
2012-03-31 20:44:59 +02:00
flyingimmidev
8fbdde0ca3
renaming
2012-03-31 20:41:27 +02:00
flyingimmidev
7df65a5f13
example for lasso with positive constraint
2012-03-31 20:40:30 +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
b49c2d0756
merged ols and ridge variance + some neating
2012-03-08 14:04:57 +01:00
Jaques Grobler
db38edb7ea
delete redundant file, merged some examples and updated links
2012-03-07 03:55:18 +01:00
Jaques Grobler
fc869043ca
3 files moved into main example pool - links to them updated
2012-03-06 13:23:48 +01:00
Jaques Grobler
0d498c6fef
Merge remote-tracking branch 'origin/master' into WIP_tut
2012-03-06 12:54:39 +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
Andreas Mueller
4968fef48f
COSMIT last try to make my plot pretty....
2012-03-04 23:05:37 +01:00
Andreas Mueller
13ea995372
ENH 2d plot for l1l2 digits example
2012-03-04 22:57:26 +01:00
Andreas Mueller
3f1570e5df
COSMIT Adjust title for example gallery
2012-03-04 22:01:49 +01:00
Andreas Mueller
fb21662bcf
DOC another coefficient plot
2012-03-04 21:58:14 +01:00
GaelVaroquaux
d00c6010be
MISC: fix the random number generators
...
I don't like to have the doc change each time it is generate
2012-03-04 18:24:19 +01:00
Andreas Mueller
adaef3204a
COSMIT make plot look more like other coef plots
2012-03-04 18:24:19 +01:00
Andreas Mueller
977f7d5c13
DOC lasso/enet regression example with coefficient plots, corrected r2 score
2012-03-04 16:17:27 +01:00
Andreas Mueller
61b0e28f9f
MISC removed deprecated api from examples
2012-03-03 18:30:02 +01:00
Andreas Mueller
36fa40a254
MISC Adjusted class_weight param in examples, fixed legend in unbalanced dataset examples.
2012-02-07 09:46:01 +01:00
Andreas Mueller
46db486091
FIX lasso_dense_vs_sparse_data.py example needed update.
2012-02-01 23:00:43 +01:00
Andreas Mueller
3a172f3335
FIX SGD loss example for new hinge loss.
2012-02-01 22:52:37 +01:00
GaelVaroquaux
9e036a663e
MISC: add randomized linear models to what's new
2012-02-01 09:01:54 +01:00
GaelVaroquaux
5e0f82b664
Cosmit
2012-01-31 18:13:28 +01:00
GaelVaroquaux
a882bedcc3
MISC: address @ogrisel and @mblondel's comments
2012-01-31 18:11:05 +01:00
GaelVaroquaux
db1a2122f3
DOC: example and docs for randomized-lasso
2012-01-31 18:10:43 +01:00
GaelVaroquaux
51cf74290c
DOC: better example for randomized lasso
...
Highlight the regimes in which randomized-lasso beats L1 and F-scores,
and vice versa.
2012-01-31 18:10:43 +01:00
GaelVaroquaux
2b08a0ddae
DOC: enrich example docstring.
2012-01-31 18:10:43 +01:00
Alexandre Gramfort
afb6dea4ac
ENH : fix legeng of plot_randomized_lasso.py
2012-01-31 18:10:43 +01:00
Alexandre Gramfort
41a48638ec
ENH : early stopping in lasso_stability_path (faster)
2012-01-31 18:10:43 +01:00
GaelVaroquaux
b0b3406379
DOC: nicer path
2012-01-31 18:10:43 +01:00
GaelVaroquaux
2b1df1fb19
ENH: grid in terms of alpha/alpha_max
...
And rework example
2012-01-31 18:10:43 +01:00
GaelVaroquaux
5e840acedd
DOC: try to improve randomized lasso example
2012-01-31 18:10:42 +01:00
Alexandre Gramfort
66d7b26d1c
cosmit in doc + pep8
2012-01-31 18:09:08 +01:00
Alexandre Gramfort
b275030bdb
ENH : adding sample_fraction to lasso_stability_path + add to doc
2012-01-31 18:07:06 +01:00
Alexandre Gramfort
19331b5ae3
DOC : adding doc for Randomized sparse linear models + fix test
2012-01-31 18:07:06 +01:00
Alexandre Gramfort
f3423f8276
ENH : creating lasso_stability_path func + adding tests on randomized_l1
2012-01-31 18:06:14 +01:00
Alexandre Gramfort
9c7deea99a
ENH : prettify plot_randomized_lasso.py
2012-01-31 18:06:14 +01:00
Alexandre Gramfort
7ba93da27a
ENH : better plot_randomized_lasso.py with score path
2012-01-31 18:06:14 +01:00
Gael varoquaux
6522b82b84
Jacknife in randomized_lasso
2012-01-31 18:01:02 +01:00
Gael varoquaux
f7ca7b3a69
Better randomized_lasso
2012-01-31 18:01:02 +01:00
Gael varoquaux
11aaf9816f
ENH: randomized_lasso example: multiple alpha
2012-01-31 18:01:02 +01:00
Gael varoquaux
b0c119ca52
ENH: Add randomized lasso
...
Feature selection using Lasso (Meinshausen and Bulmhan 2008)
2012-01-31 18:01:02 +01:00
Jake Vanderplas
96d6060cd7
pep8
2011-12-23 10:12:26 -08:00
Alexandre Gramfort
3f330f2967
STY : pep8
2011-12-20 15:34:17 +01:00
Olivier Grisel
4c8aec3a6f
typo: accross => across
2011-12-20 09:49:45 +01:00
Gilles Louppe
63331849ea
DOC: Fixed links to modules in the example gallery
2011-12-19 16:07:01 +01:00
Alexandre Gramfort
976c16ecce
ENH : avoid global seeding in plot_polynomial_interpolation.py
2011-12-19 11:43:24 +01:00
Fabian Pedregosa
63887c2b18
Style update in documentation.
2011-11-21 12:31:59 +01:00
Peter Prettenhofer
87cf1b32dd
fix: sgd module clone issue w/ rho parameter
2011-11-15 21:06:32 +01:00
Fabian Pedregosa
6e07284f3f
FIX example logisitic regression.
2011-09-14 12:53:35 +02:00
Olivier Grisel
78dd8b5626
batch trailing spaces cleanup
2011-09-06 23:12:26 +02:00
Gael varoquaux
4d1dcd2e65
DOC: scikits.learn -> sklearn
2011-09-03 09:10:40 +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
Fabian Pedregosa
f8ef06eea0
FIX some broken examples.
2011-09-01 11:20:05 +02:00
Alexandre Gramfort
43e3229a86
DOC: clarify doc on BIC/AIC
2011-08-10 16:30:31 -04:00
Gael varoquaux
22da70185d
DOC: cosmetic changes to lars-bic doc and examples
2011-08-10 19:33:43 +02:00
Alexandre Gramfort
f599fab517
ENH + DOC: addressing @GaelVaroquaux's comments
2011-08-10 16:12:41 +02:00
Alexandre Gramfort
e4f4b907e7
ENH: addressing @ogrisel's comments on PR 298
2011-08-10 16:12:41 +02:00
Alexandre Gramfort
899dfcda41
ENH : new LassoLarsIC estimator
2011-08-10 16:12:41 +02:00
vene
a1d8259f4a
Merge branch 'master' into omp
...
Conflicts:
doc/modules/linear_model.rst
2011-08-05 17:50:34 +03:00
vene
2cd0ccf71e
updated samples generator according to @glouppe's refactoring
2011-08-04 16:50:47 +03:00
GaelVaroquaux
626061357f
DOC: add example comparing LassoCV and LassoLarsCV
2011-08-03 20:03:22 +02:00
vene
e2844ceef2
don't use gram in example, useless slowdown
2011-08-03 17:06:35 +03:00
vene
945efb2233
API changes, part I
2011-08-03 16:18:16 +03:00
Gael varoquaux
286dd1454e
BUG+COSMIT: rewamp the lasso path examples
2011-08-03 08:07:15 +02:00
vene
bc20c29450
transposed generator, updated tests
2011-07-31 18:28:57 +03:00
vene
33c2693839
unified notation
2011-07-29 13:05:07 +03:00
vene
28a52f00cd
cosmit in example
2011-07-29 13:01:11 +03:00
vene
f32ca3b162
Merge branch 'master' into omp
2011-07-29 12:55:28 +03:00
vene
4ce86d6e02
pep8
2011-07-29 01:34:56 +03:00
vene
50b0d828dc
Factored out sparse samples generator
2011-07-29 01:28:00 +03:00
Alexandre Gramfort
5a12763441
API : renaming LARS to Lars
2011-07-25 21:41:48 -04:00
vene
00af49f313
Remove useless prints in example
2011-07-25 14:08:27 +03:00
vene
a2316af197
Brought in OMP from the larger branch
2011-07-25 13:57:42 +03:00
Gael varoquaux
98ede0d989
Typo
2011-07-23 14:17:14 +02:00
Gael varoquaux
eebc2ec325
DOC: Improve the Bayesian regression docs
2011-07-23 14:17:06 +02:00
Alexandre Gramfort
6a1e2b31f2
pep8
2011-07-21 09:49:19 -04:00
Alexandre Gramfort
6cd32e0976
BUG: s/empty/zeros in plot_lasso_bic_aic.py
2011-07-21 09:48:37 -04:00
Alexandre Gramfort
d3502b09ad
ENH : adding LASSO model selection example based on BIC and AIC
2011-07-21 08:58:13 -04:00
Mathieu Blondel
298259070e
Improve Logistic Regression sparsity example.
2011-07-10 01:58:56 +09:00
Fabian Pedregosa
05f54c2cda
DOC: new example for Ridge + more rst docs
2011-07-08 11:27:50 +02:00
Gael varoquaux
f2f0caef27
DOC: Tweak the cross-val lasso path example
2011-06-18 09:33:14 +02:00
Paolo Losi
e44915fda8
the l1 logreg example now works with l1_min_c
2011-04-26 09:32:37 +02:00
Mathieu Blondel
66483cf2c0
Use np.vander.
2011-03-30 14:58:38 +09:00
Mathieu Blondel
b7c9201f6b
Add polynomial interpolation example.
2011-03-24 16:04:40 +09:00
Peter Prettenhofer
bc16f01e24
Additional tests for sample weights.
...
Fixed some typos in doc strings.
Changed signature of coef_ for SGDClassifier; now adheres to svm convention that coef_ is shape [1, n_features] in the case of binary classification.
2011-03-15 20:50:44 +01:00
Peter Prettenhofer
dfa75da35d
Sample weights for SGDClassifier.
...
Additional test cases for class weight and sample weight.
Example plot for sample weight.
2011-03-15 19:58:56 +01:00
Gael varoquaux
21175e3629
MISC: Fix example to adjust to eps -> tol
2011-03-02 06:52:58 +01:00
Fabian Pedregosa
8864e0f32b
Remove example plot_lar.py
...
First, because it is wrong, as it prints the path of the Lasso and not
of Least Angle Regression. And second, because it is the same as
plot_lasso_lars.
2010-12-14 19:19:24 +01:00
Alexandre Gramfort
89377b979a
API : maxit replaced by max_iter everywhere
...
API : removing default computation of r2 coef in coordinate_descent (speed up +
can be accessed simply eg. lasso.score(X, y))
2010-12-11 23:14:55 -05:00
Alexandre Gramfort
7b94a59a59
pep8 + N->n_samples and D->n_features
2010-12-11 19:13:58 -05:00
Olivier Grisel
e5ce482da3
revert the plot style to the LARS paper conventions
2010-12-09 18:57:45 +01:00
Olivier Grisel
d9c7d80213
switch to base 10 for the alpha logs in the Lasso CD path plot
2010-12-09 18:56:32 +01:00
Olivier Grisel
81b911c12b
make MSE plot of LassoCV more readable by scaling the y axis
2010-12-09 09:48:50 +01:00
Olivier Grisel
f88ca8c4bb
ENH: make the LassoLARS and LassoCD path examples easier to compare
2010-12-09 09:32:32 +01:00
Olivier Grisel
157fc0ac4c
ENH: LassoCV / ElasticNetCV now uses all folds data + example
...
Store all the mse information on each fold and select alpha by best median
on MSE.
2010-12-09 09:06:25 +01:00
Fabian Pedregosa
085544eb5e
Use original diabetes data as shipped by the R package lars.
...
This also gets rid of stupid customizations in example.
2010-12-03 16:22:03 +01:00
Peter Prettenhofer
46a2d551a3
fixed imports in non-auto examples.
...
COSMIT import paths in plot examples.
Rephrased SGD outline in linear_model.rst
2010-12-03 10:28:08 +01:00
Peter Prettenhofer
d102d2228d
moved sgd examples to examples/linear_model and added sgd prefix.
...
minor fixes in some examples.
updated sgd.rst
2010-12-01 16:59:52 +01: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