Commit Graph

250 Commits

Author SHA1 Message Date
Shota e2a2b4d403 Fix typos (#6942) 2016-06-27 18:13:49 +02:00
Gael Varoquaux 1837224751 Merge pull request #6613 from nelson-liu/correct_license_spelling
[MRG+1] DOC: fix spellings of 'license'
2016-06-15 13:58:59 +02:00
Saiwing Yeung c5fd5cbb7e DOC: fixed typos and one style issue in plot examples
The comment in a few example plots refer to "the mesh [x_min, m_max] x
[y_min, y_max]" when it should be "x_max".

Also fixed the spacing in plot_random_forest_embedding.py `[x_min,
x_max] x [y_min, y_max]` to `[x_min, x_max]x[y_min, y_max]` to comply
with the coding style of other files with similar code (like those in
the current pull request).
2016-04-25 11:59:40 +08:00
Nelson Liu d2aaf0f4bb doc: fix spellings of 'license' 2016-03-31 17:25:31 -07:00
Rémy Léone 9b7176dd9d [DOC] Fix broken links 2016-03-23 12:45:34 -07:00
MechCoder 7e79adca9d Huber regressor
Add gradient calculation in _huber_loss_and_gradient

Add tests to check the correctness of the loss and gradient

Fix for old scipy

Add parameter sigma for robust linear regression

Add gradient formula to robust _huber_loss_and_gradient

Add fit_intercept option and fix tests

Add docs to HuberRegressor and the helper functions

Add example demonstrating ridge_regression vs huber_regression

Add sample_weight implementation

Add scaling invariant huber test

Remove exp and add bounds to fmin_l_bfgs_b

Add sparse data support

Add more tests and refactoring of code

Add narrative docs

review huber regressor

Minor additions to docs and tests

Minor fixes that deals with dealing with NaN values in targets
and old verions of SciPy and NumPy

Add HuberRegressor to robust estimator

Refactored computation of gradient and make docs render properly

Temp

Remove float64 dtype conversion

trivial optimizations and add a note about R

Remove sample_weights special_casing

address @amueller comments
2016-02-25 16:31:08 -05:00
YenChenLin 2d8eb008d2 Fix broken link of Wainwright's paper 2016-02-18 01:09:20 +08:00
Kornel Kielczewski d3175db362 Ridge coefficients as a function of regularisation
- another perspective
2016-01-19 16:04:36 +01:00
MechCoder 936ea632e6 Make ridge path with ill-conditioned matrices clearer 2016-01-09 12:29:13 -05:00
seales 0485ada58b General spelling fixes 2015-12-16 09:46:42 -08:00
Andreas Mueller 5b1aca08c2 MAINT Don't use deprecated 1d X (or deprecated matplotlib stuff) in examples. 2015-12-10 12:11:48 -05:00
Manoj Kumar 43e54541a1 Merge pull request #5251 from TomDLT/sag_multi
[MRG+1] add multinomial SAG solver for LogisticRegression
2015-12-04 13:43:08 -05:00
TomDLT 9f136ff293 ENH add multinomial SAG solver for LogisticRegression 2015-12-04 18:36:37 +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
Raghav R V 654bddda54 FIX Explicitly specify the plot colors for each curve 2015-11-12 15:26:19 +01:00
Raghav R V f67e911124 DOC Modify documentation/examples for the new model_selection module 2015-10-29 16:49:23 +01:00
Vinayak Mehta adf866cdb6 Replaced fontsize legend parameter 2015-10-27 00:52:56 +05:30
johannah c9700e2181 Changed from plot to scatter for consistency 2015-10-23 10:26:02 +02:00
johannah 47a8ffa618 Added colorblind compatibility 2015-10-22 18:59:24 +02:00
Raghav R V e3afc0e8c9 MAINT move custom error/warning classes into sklearn.exceptions
ENH NonBLASDotWarning -> EfficiencyWarning; Improve error message
DOC Add exceptions module to modules/classes.rst
MAINT Move ConvergenceWarning, UndefinedMetricWarning et al into exceptions
MAINT Remove ChangedBehaviorWarning from base
DOC/FIX Improve DataConversionWarning's docstring
2015-10-19 22:35:35 +02:00
shagun Sodhani bd66a270b9 proposed fix for #5387 2015-10-16 20:13:46 +05:30
TomDLT 94eb61960a ENH add sag solver in LogisticRegression and Ridge 2015-09-10 13:28:02 -04:00
Danny Sullivan 4ceffe05a1 Adding Implementation of SAG 2015-09-10 13:27:04 -04:00
Louis Tiao 3396087038 Update plot_ols.py
Minor/trivial NumPy slicing refactor
2015-06-15 16:17:28 +10:00
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