Commit Graph

10 Commits

Author SHA1 Message Date
Thomas J. Fan 70a185ae59
MAINT Enable and run black on examples (#20502) 2021-10-07 10:13:00 +02:00
Thomas J. Fan 81dde3a6e5
STY Ensures that "flake8 ." works (#20298) 2021-06-18 15:46:40 +02: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
Vinayak Mehta adf866cdb6 Replaced fontsize legend parameter 2015-10-27 00:52:56 +05:30
johannah 47a8ffa618 Added colorblind compatibility 2015-10-22 18:59:24 +02:00
Florian Wilhelm 4fcd6b88f5 COSMIT: pep8 and renaming 2014-10-16 16:16:39 +02:00
Florian Wilhelm cf3b476aa4 FIX: TheilSen -> TheilSenRegressor in docs 2014-10-02 09:25:48 +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
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