Commit Graph

67 Commits

Author SHA1 Message Date
Guillaume Lemaitre ae2c80a210
MAINT remove normalize parameter and subsequent clean-up (#27855)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Loïc Estève <loic.esteve@ymail.com>
2023-12-04 14:29:06 +00:00
Lucy Liu 926671b25b
FIX improve warning message in `_ensure_sparse_format` (#27757) 2023-11-14 11:12:56 +01:00
Yao Xiao b60ee07cab
TST Extend tests for `scipy.sparse/*array` in `sklearn/linear_model/tests/test_base` (#27225)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2023-09-13 19:23:29 +02:00
Adrin Jalali 42173fdb34
MNT add isort to ruff's rules (#26649) 2023-06-21 17:50:07 +02:00
Thomas J. Fan 4986838b7a
CI Adjust atol for conda-forge to pass (#26628) 2023-06-20 16:02:31 +02:00
Christian Lorentzen 42d235924e
TST Add tests for LinearRegression that sample weights act consistently (#15554)
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
2023-05-26 15:52:54 +00:00
Olivier Grisel 5a332e77a1
PERF fix overhead of _rescale_data in LinearRegression (#26207) 2023-04-18 23:42:13 +02:00
Adrin Jalali 893d5accaf
MNT Update black to 23.3.0 (#26110) 2023-04-06 12:14:16 -04:00
Jérémie du Boisberranger e41753ebd5
MAINT Clean deprecation for 1.2: normalize in linear models (#24391) 2022-10-12 14:06:47 +02:00
Sven Stehle 158b620f78
TST use global_random_seed in sklearn/linear_model/tests/test_base.py (#23465)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
Co-authored-by: Christian Lorentzen <lorentzen.ch@gmail.com>
2022-06-22 11:18:37 +02:00
Thomas J. Fan 3d096378ff
MNT Replace pytest.warns(None) in linear_models tests (#23138) 2022-04-19 15:53:55 +02:00
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