Commit Graph

56 Commits

Author SHA1 Message Date
Christian Lorentzen bf0ece817d
ENH add sample_weight to sparse coordinade descent (#22808) 2022-03-25 11:09:28 +01:00
Jérémie du Boisberranger d76f87c8eb
Fix Ridge sparse + sample_weight + intercept (#22899)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2022-03-22 20:15:54 +01:00
Jérémie du Boisberranger 7414a7c4c5
FIX LinearRegression sparse + intercept + sample_weight (#22891) 2022-03-18 17:47:26 +01:00
Richard Taylor 615c68a6aa
TST replace pytest.warns(None) in linear_model test_base.py (#22876) 2022-03-17 13:33:30 +01:00
Jérémie du Boisberranger 34f9dbf541
MNT Clean fixes and compat for old versions of our dependencies (#22642)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2022-03-02 11:32:06 +01:00
Thomas J. Fan 9f85c9d449
TST Better info when checking for no warnings in tests (#22362) 2022-02-03 11:42:48 +01:00
Thomas J. Fan 3ae7c76153
STY Enables black with experimental_string_processing=true (#20412) 2021-06-29 09:47:04 +02:00
Thomas J. Fan 82df48934e
MNT Applies black formatting to most of the code base (#18948) 2021-06-17 14:21:09 -04:00
Olivier Grisel 5f3bfccb8a
[MRG] FIX sample_weight invariance for linear models (#19616)
Co-authored-by: Alexandre Gramfort <alexandre.gramfort@m4x.org>
Co-authored-by: Christian Lorentzen <lorentzen.ch@gmail.com>
2021-06-12 14:44:14 +02:00
Maria Telenczuk 9cfacf1540
DEP Deprecate 'normalize' in ridge models (#17772)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Alexandre Gramfort <alexandre.gramfort@m4x.org>
2021-04-06 21:33:28 +02:00
Olivier Grisel c748e465c7
FIX Don't scale near-constant features to large values (#19527) 2021-02-25 10:21:52 +01:00
Maria Telenczuk dbd68b2846
MRG fix Normalize for linear models when used with sample_weight (#19426)
Co-authored-by: Alexandre Gramfort <alexandre.gramfort@m4x.org>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2021-02-22 11:48:54 +01:00
Maria Telenczuk 306826f7b6
MRG Deprecates 'normalize' in LinearRegression (_base.py) (#17743)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
Co-authored-by: Nicolas Hug <contact@nicolas-hug.com>
Co-authored-by: Alexandre Gramfort <alexandre.gramfort@m4x.org>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2021-01-22 14:57:23 +01:00
Chiara Marmo 075d424568
FEA Add Nonnegative LinearRegression (#17578)
Co-authored-by: Nicolas Hug <contact@nicolas-hug.com>
Co-authored-by: Joseph Knox <jknox13@uw.edu>
Co-authored-by: Joseph Knox <joseph.edward.knox@gmail.com>
2020-08-06 08:30:24 -04:00
Hirofumi Suzuki c29092d699
MNT define a parse_version function in sklearn.utils.fixes (#17670)
Co-authored-by: Loïc Estève <loic.esteve@ymail.com>
Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>
2020-06-24 13:35:49 +02:00
Thomas J Fan fa1ea2ab6f
ENH Adds support for pandas dataframe with only sparse arrays (#16728) 2020-03-27 12:09:23 +01:00
Christian Lorentzen 21686b7147
ENH Sample weights for ElasticNet (#15436) 2020-02-16 14:48:01 +01:00
Rushabh Vasani c2ede74db0 ENH add warning for pandas sparse Dataframe in check_array (#16021) 2020-01-27 12:30:55 +01:00
Nicolas Hug b92455a6b2 MAINT Deprecate all of utils.testing except all_estimators (#15367) 2019-10-28 17:28:56 +01:00
Thomas J Fan 4a95e33e63 MNT Make modules private in sklearn.datasets (#15307) 2019-10-27 17:17:23 -04:00
Thomas J Fan 0a7adef005 MNT Make modules private in linear_model (#15324) 2019-10-23 15:34:26 +02:00
qdeffense f13c9c0752 CLN remove redundant default parameters in examples and tests (#14590)
remove redundant 'fit_intercept=True' in examples and tests along with some instances of other redundant parameters (max_iter=100, C=1 and alpha=1.0)
2019-08-07 10:38:41 -07:00
Adrin Jalali 19c068a2ec MNT towards removing assert_equal, etc (#14222) 2019-07-01 09:13:32 -04:00
Alexandre Gramfort 66899eddd0 FIX: make LinearRegression perfectly consistent across sparse or dense (#13279)
* FIX : make LinearRegression perfectly consistent across sparse or dense

* comments

* review
2019-02-27 13:52:19 +01:00
Joan Massich f02ef9f52f LogisticRegression convert to float64 (for SAG solver) (#13243)
* Remove unused code

* Squash all the PR 9040 commits

initial PR commit

seq_dataset.pyx generated from template

seq_dataset.pyx generated from template #2

rename variables

fused types consistency test for seq_dataset

a

sklearn/utils/tests/test_seq_dataset.py

new if statement

add doc

sklearn/utils/seq_dataset.pyx.tp

minor changes

minor changes

typo fix

check numeric accuracy only up 5th decimal

Address oliver's request for changing test name

add test for make_dataset and rename a variable in test_seq_dataset

* FIX tests

* TST more numerically stable test_sgd.test_tol_parameter

* Added benchmarks to compare SAGA 32b and 64b

* Fixing gael's comments

* fix

* solve some issues

* PEP8

* Address lesteve comments

* fix merging

* avoid using assert_equal

* use all_close

* use explicit ArrayDataset64 and CSRDataset64

* fix: remove unused import

* Use parametrized to cover ArrayDaset-CSRDataset-32-64 matrix

* for consistency use 32 first then 64 + add 64 suffix to variables

* it would be cool if this worked !!!

* more verbose version

* revert SGD changes as much as possible.

* Add solvers back to bench_saga

* make 64 explicit in the naming

* remove checking native python type + add comparison between 32 64

* Add whatsnew with everyone with commits

* simplify a bit the testing

* simplify the parametrize

* update whatsnew

* fix pep8
2019-02-27 11:14:29 +01:00
jakirkham b3c177cf2c [MRG] MNT: Optionally skip another input check in ElasticNet, Lasso (#11487) 2018-07-27 13:41:14 +02:00
Andreas Mueller eec7649236 MAINT Complete 0.20 deprecations (#9570) 2018-06-24 23:06:26 +10:00
Arthur Imbert 89962f0c5b [MRG+1] _preprocess_data consistent with fused types (#9093)
* add test for _preprocess_data and make it consistent

* fix pep8

* add doc, cast systematically y in X.dtype and update test_coordinate_descent.py

* test if input values don't change with copy=True

* test if input values don't change with copy=True #2

* fix doc

* fix doc #2

* fix doc #3
2017-06-23 20:33:11 +05:30
giorgiop 140a5acda8 MAINT depr of center_data, normalize in linear_model 2016-02-17 14:26:50 -05:00
giorgiop 1d16ec4718 tests sample_weights linearreg, ridge 2015-11-10 22:08:26 +01:00
Andreas Mueller e3ff540991 COSMIT don't use the deprecated residuals property of ols 2015-11-01 22:13:54 -05:00
Sonny Hu a88f6ecf9d add sample_weight into LinearRegression 2015-08-13 14:32:07 -04:00
Raghav R V cd2ee7e454 MAINT docstring --> comments to prevent nose from using doc in verbose mode 2015-03-21 11:16:49 +05:30
Andreas Mueller 6beacc3fb6 remove deprecated stuff from 0.17 2015-03-18 14:49:04 -04:00
Andreas Mueller e3f94351f2 TST Silence some tests. 2015-01-29 17:24:41 -05:00
Olivier Grisel 54f483aafa FIX #2986: ZeroDivisionError in LinearRegression on sparse data 2014-11-14 12:51:43 +01:00
akshayah3 c57e6ed6c7 PEP8 fixes 2014-09-19 20:10:29 +05:30
akshayah3 da646701f9 Added seperate tests 2014-09-19 19:06:29 +05:30
akshayah3 ef7169afd7 Added tests 2014-09-19 16:56:30 +05:30
Joel Nothman a786e12ace TST/COSMIT tests/comments for [sparse]center_data
Also removes sparse_std which was redundant
2014-03-30 22:07:48 +11:00
Manoj-Kumar-S 8ff19bd4bd Preserve CSR storage format when input is CSR in sparse_center_data 2014-03-22 23:19:22 +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
Mathieu Blondel f65efcf8eb More use sklearn.utils.testing.
My model is training :)
2012-10-25 21:21:22 +09:00
Olivier Hervieu d0b20f0a21 FIX inconsistent coef_.shape in LinearRegression
Should fix issue #652.
2012-05-15 15:30:08 +02:00
flyingimmidev f20995006d BugFix, matrix was not flagged as sparse. 2012-03-10 21:23:34 +01:00
flyingimmidev d4a6ebd21e pep8 errors fixed 2012-03-07 21:12:22 +01:00
flyingimmidev c987520266 spelling 2012-03-06 23:04:05 +01:00
flyingimmidev 5a2f016614 consistency 2012-03-06 22:59:15 +01:00
flyingimmidev c55214c411 fixed spelling error
data set generators used instead of custom data sets
2012-03-06 22:55:17 +01:00
flyingimmidev 2a52d97afb Test added for multiple-outcome:
- linear regression 
- sparse linear regression
2012-03-06 21:07:39 +01:00