Commit Graph

225 Commits

Author SHA1 Message Date
Florian Wilhelm 2137d82df3 ENH: Added random_state in plot_theilsen.py 2014-10-17 14:54:49 +02:00
Florian Wilhelm 4fcd6b88f5 COSMIT: pep8 and renaming 2014-10-16 16:16:39 +02:00
Florian Wilhelm a5d2fd915a Merge branch 'master' into theilsen
Conflicts:
	doc/modules/model_evaluation.rst
2014-10-09 17:43:21 +02:00
Florian Wilhelm cf3b476aa4 FIX: TheilSen -> TheilSenRegressor in docs 2014-10-02 09:25:48 +02:00
Danny Sullivan 5fe405bd65 cleaning up floating point and unneeded todos, also removing constant learning rate for asgd 2014-09-29 12:58:30 +02:00
Florian Wilhelm ef17f8067b ENH: Improvements in the Theil-Sen regressor
- Renamed TheilSen to TheilSenRegressor
- Renamed n_iter parameter to max_iter
- Better warning message when maximum iteration number reached
- Added docstring for fit
- Removed backend and max_nbytes parameters in Parallel
- Removed n_dim return value from _check_subparams
- Some PEP8 corrections
- Added an attribute n_iter_ to show number of iterations
- Removed unnecessary array to list conversion ix = list(ix)
- Remove random_state_ as attribute
2014-09-24 22:58:29 +02:00
Florian Wilhelm a8000405de COSMIT: Small changes regarding Theil-Sen
- Typo fixed in linear_model documenation
- Usage of matplotlib.pyplot instead of matplotlib.pylab
- Removed trailing backslash in import statements
- Renamed _modweiszfeld_step to _modified_weiszfeld_step
- Renamed variable fst to first_elem in _lstq
- Made get_n_jobs private in utils/__init__.py
2014-09-24 19:58:21 +02:00
Alexandre Gramfort 1ceb885f6b rephrase doc, rename unseen, fix pep8 2014-09-10 22:40:55 +02:00
Danny Sullivan 149d97f78e making optimal for asgd the constant learning rate 2014-09-10 11:10:01 +02:00
Florian Wilhelm 7d2179b120 ENH: Theil-Sen vs. RANSAC example 2014-09-07 20:11:56 +02:00
Danny Sullivan 43c284f1f9 adding comparison for ASGD 2014-08-22 14:17:25 +02:00
Florian Wilhelm c03d4bdc72 Merge remote-tracking branch 'gvaroquaux/pr_2949' into theilsen 2014-07-19 20:34:11 +02:00
Gael Varoquaux 110d3f212c DOC: better documentation for robust models 2014-07-19 12:58:35 +02:00
Gael Varoquaux 434c20d0ea DOC: add an example of robust fitting
This compares RANSAC and ThielSen
2014-07-18 19:14:34 +02:00
Florian Wilhelm b6ed218dfe Use string argument for legend's loc parameter 2014-07-18 13:33:48 +02:00
Florian Wilhelm 4b6768f368 Merge branch 'master' into theilsen
Conflicts:
	doc/modules/linear_model.rst
2014-07-17 19:22:03 +02:00
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
Florian Wilhelm 8935df616e Merge branch 'master' into theilsen 2014-07-17 14:43:06 +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
Florian Wilhelm 43d76acc01 DOC: Explanation when TheilSen outperforms RANSAC. 2014-03-24 19:31:23 +01:00
Gael Varoquaux 689bf29285 DOC: improve Thiel-Sen vs RANSAC example 2014-03-24 00:55:51 +01:00
Florian Wilhelm 39efe30036 DOC: Small corrections in the docs of Theil-Sen 2014-03-23 13:17:53 +01:00
Florian Wilhelm ca9a275483 DOC: Fixed typo in Theil-Sen example. 2014-03-22 18:42:08 +01:00
Florian Wilhelm 0b10f49031 DOC: Comparison of Theil-Sen and RANSAC
Added a simple case where Theil-Sen apparently outperforms RANSAC.
Some recommendations when to use one over another.
2014-03-22 16:56:01 +01:00
Florian Wilhelm c19d967ae1 Cleanups and corrections for Theil-Sen regression. 2014-03-05 20:06:41 +01:00
Florian Wilhelm 601b82b596 Merge branch 'master' into theilsen 2014-03-02 22:39:06 +01:00
hendrik 8f94ae6d0f PY3 fixed examples 2014-02-15 17:05:08 +01:00
Florian Wilhelm b3e8a643d2 Added an example and documentatin for Theil-Sen 2014-01-17 22:24:13 +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