Commit Graph

817 Commits

Author SHA1 Message Date
sadak d306abad8f
DOC fixed linear_model._least_angle.py parameters consistency (#18062)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2020-08-21 15:14:05 +02:00
Marijn van Vliet fd653f8f3e
ENH Add alpha_per_target parameter to RidgeCV (#6624)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2020-08-06 12:24:53 -04: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
Christian Kastner 12e30fa10f
TST Increase absolute tolerance for RANSACRegressor test (#18082)
An absolute difference of 1.45081487e-13 has been observed on 64-bit PowerPC.
2020-08-04 19:01:39 +02:00
Christian Lorentzen fcba0d6c0b
TST Add test for multinomial identifiability constraint in logistic regression (#16791)
* MNT import from numpy.testing in logistic regression

* TST add test for symmetric identifiability constraint

* address review comments

* address review comments again

* reduce atol
2020-07-15 22:24:30 -04:00
Thomas J. Fan 9fc7bceca6
BUG Do not overwrite X when copy_X=True and Gram='auto' (#17914) 2020-07-15 22:44:58 +02:00
Gim Seng 7d5a54b329
FIX Raise error when l1_ratio is out-of-range in ElasticNet (#17846)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: Nicolas Hug <contact@nicolas-hug.com>
Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>
2020-07-08 15:12:11 +02:00
maikia 1c62652704
TST check equivalence normalize/StandardScaler and dense/sparse in linear models (#17665)
Co-authored-by: Alexandre Gramfort <alexandre.gramfort@m4x.org>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>
2020-06-26 14:17:11 +02:00
Thomas J. Fan 7cc0177f8e
MNT Replaces numpy alias with builtin typse (#17687)
* MNT Replaces numpy alias with builtin typse

* STY Lint error
2020-06-24 16:51:51 +02: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
Rithvik Rao 005d55e3d8
TST Fixed tiny typo in test_logistic.py (#17562) 2020-06-11 09:13:23 +02:00
Nicolas Hug ac8cbb3799
[MRG] More deprecation for 0.24 (#17142)
* normalize_components in sparsePCA

* changed default strategy of Dummy to prior and removed outputs_2d ttribute

* removed usage of None to drop estimator in ensemble and behaviour param of IsolationForest

* remove support for drop=None in Voting

* removed some warning decorators

* remove feature_extraction.extract_patches

* removed VectorizerMixin and copy parameter from TFIDFVectorizer

* kernel.set_params now raises attributeerror

* removed fig from plot_partial_dependence

* removed iid parameter of search estimators

* removed brier_scorer

* raise error in split when shuffle is False and random_state is not None

* removed MultiOutputEstimator

* removed base classes of NaiveBayes

* removed drop from pipeline

* removed utils in random_projection

* removed presort and classes_ in trees

* flake8

* fixed some tests

* flake

* fixed docstring

* fixed other one

* some left

* mmmm
2020-05-20 16:04:14 -04:00
Thomas J Fan e770715c43
MNT Completes position arg deprecation (#17272)
* ENH Adds public functions with position args warning

* BUG Circlar import

* STY

* BUG Add keywords

* BUG Fixes warnings

* ENH Adds other public functions

* CLN Suggestion

* CLN Suggestion

* REV Revert pairwise

* ENH Positoinal args for compute_class_weight
2020-05-19 09:07:25 +02:00
Christian Lorentzen 4b92a775db
MNT Cleaner cythn cdef loss function in SGD (#17191) 2020-05-12 22:40:42 +02:00
Lucy Liu e2256c111d
TST Replace Boston dataset in test_coordinate_descent.py (#17153) 2020-05-08 19:52:34 -04:00
Alexandre Gramfort 04d2e3290f
Speedup MultiTaskLasso (#17021) 2020-05-02 10:11:07 +02:00
Jérémie du Boisberranger 1d3a553b2d
[MRG] Fix LinearModelsCV for loky backend. (#14264) 2020-04-28 20:57:01 +10:00
Adrin Jalali 1ba06518c5
API make load_* args in datasets kwarg only (#16719)
* API male load_* args in datasets kwarg only

* more loaders

* pep8

* fix test_omp usage

* fix some usages

* Update sklearn/datasets/_samples_generator.py

Co-Authored-By: Thomas J Fan <thomasjpfan@gmail.com>

Co-authored-by: Nicolas Hug <contact@nicolas-hug.com>
Co-authored-by: Thomas J Fan <thomasjpfan@gmail.com>
2020-04-27 14:41:35 -04:00
Nicolas Hug 946fddec7b
BUG Fix instability issue of ARDRegression (with speedup) (#16849) 2020-04-23 10:19:45 -04:00
Adrin Jalali dc0cc6e9be
[MRG] API kwonly args in impute, inspection, kernel_ridge (#16926)
, and linear_model
2020-04-19 22:58:47 +02:00
Angela Ambroz abfb6fd11e
[MRG] Add jitter to LassoLars (#15179)
* Adding jitter to LassoLars fit

* CircleCI fail

* MR comments

* Jitter becomes default, added test based on issue description

* flake8 fixes

* Removing unexpected cython files

* Better coverage

* PR comments

* PR comments

* PR comments

* PR comments

* PR comments

* Linting

* Apply suggestions from code review

* addressed comments

* added whatnew entry

* test both estimators

* update whatsnew

* removed random_state for lassolarsIC

Co-authored-by: Nicolas Hug <contact@nicolas-hug.com>
2020-04-17 17:14:21 +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
Roman Yurchak 75d3f29e72
MAINT Remove outdated numpy and scipy backports (#16725)
* Remove unecessary numpy & scipy backports

* More fixes

* Remove unused imports
2020-03-20 13:57:18 +01:00
Roman Yurchak 1cbe59ee06
CI Check for unused imports when linting (#16678)
* Check for missing imports in linting

* Exclude externals

* Remove unused imports
2020-03-12 12:56:35 +01:00
Christian Lorentzen 21686b7147
ENH Sample weights for ElasticNet (#15436) 2020-02-16 14:48:01 +01:00
Roman Feldbauer 9b39c4c4d2
TST Fix unreachable code in tests (#16110) 2020-02-16 14:41:26 +01:00
Carlos H Brandt 4913037f8f
MNT Deprecate public attributes in SGD and PassiveAggresive classes (#16261) 2020-02-12 16:09:40 +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 4953ec36a4 MNT remove more deprecations for 0.23 (#15860)
* removed warn_on_dtype

* removed parameters to check_is_fitted

* all_estimators parameters

* deprecated n_components attribute in AgglomerativeClustering

* change default of base.score for multioutput

* removed lots of useless decorators?

* changed default of copy in quantil_transform

* removed six.py

* nmf default value of init param

* raise error instead of warning in LinearDiscriminantAnalysis

* removed label param in hamming_loss

* updated method parameter of power_transform

* pep8

* changed default value of min_impurity_split

* removed assert_false and assert_true

* added and fixed versionchanged directives

* reset min_impurity_split default to None

* fixed LDA issue

* fixed some test

* more docstrings updates

* set min_impurity_decrease for test to pass

* upate docstring example

* fixed doctest

* removed multiouput.score since it's now consistent with the default

* deprecate least_angle parameter combination

* remove support for l1 or l2 loss in svm

* removed linear_assignment.py

* add test
2020-01-13 13:43:50 +01:00
Venkatachalam N 730d1e726b [MRG] BUG fix RidgeClassifierCV to accept custom score (#14848)
* handle_clf_ridgeGCV

* included test case

* undo_lambda_rm

* crtd_commet

* check_y

* include_comp_proba

* fix_format

* added more comment for is_clf condtn

* adding param is_clf

* adding super

* format fixes

* init params

* moving param 2 inint

* using is_classifier

* removing super

* ENH do not allocate local arrays in Ridge*CV of store_cv_vales is False

* add whats new

* TST check multiple metrics for RidgeCV

* linting

* update whats new

* missing doc when solving conflict

* missing doc

* style

* correct whats new

* fix

* address agramfort comments

* fix

Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2020-01-06 21:35:28 +01:00
Olivier Grisel 4d5407c89f
Make test_sag_regressor_computed_correctly deterministic (#16003)
Fix #15818.
2020-01-02 14:13:27 +01:00
Guillaume Lemaitre a07974b3c0 FIX add best_score_ to Ridge*CV estimators (#15655) 2019-12-10 20:29:55 +01:00
Guillaume Lemaitre 54da2f00fc ENH do not allocate local arrays in Ridge*CV of store_cv_values is False (#15652) 2019-12-09 22:21:34 +08:00
Nicolas Hug 4256542b10 MNT Removed deprecated attributes and parameters (#15803) 2019-12-09 22:17:06 +08:00
J-A16 1c42e79d42 FIX pass sample weights to final estimator (#15773) 2019-12-09 19:33:06 +11:00
Nicolas Hug 5573abbb99 MNT Removed deprecated logistic_regression_path (#15791) 2019-12-04 12:24:10 -05:00
Olivier Grisel 43d8dee07b MNT improve the convergence warning message for LogisticRegression (#15665) 2019-11-20 09:48:26 +11:00
Andreas Mueller e254b30b6e MAINT run latest CI on Python 3.8 (#15637) 2019-11-19 09:56:37 +01:00
Thomas J Fan d84785c5e1 [MRG] ENH: Add scaling to convergence warning for LBFGS (#15571) 2019-11-17 17:10:14 +11:00
Nicolas Hug 19ad136223 MNT Replace DeprecationWarning with FutureWarning (#15080)
* bruteforce renaming

* WIP

* WIP

* some more

* removed weird line

* update -Werror

* testiforest

* again

* Fixed some tests

* fixed some tests

* removed -Werror

* fixed test_docstring_param issue

* fixed some tests

* some more

* renamed to SklearnDeprecationWarning

* pep8

* updated docs

* pep8

* merge

* changed to FutureWarning

* fixes

* Update doc/developers/tips.rst

Co-Authored-By: Adrin Jalali <adrin.jalali@gmail.com>

* avoid duplicates

* fixed warning for deprecations

* Still make CI break if DeprecationWarning isn't caught

* updated one warning

* fixed test

* fixed some renamings

* updated new dep warnings

* fixed bad import

* ignore warnings

* update again

* ignore futurewarning when walking packages

* Fixed test

* pep8

* Added whatsnew
2019-10-29 15:39:26 +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
Guillaume Lemaitre 2b60d32977 MAINT sync/add support sample_weight with liblinear (#15038) 2019-10-25 08:38:19 -04:00
Nicolas Hug 7effc37174
MNT Warn when shuffle is False but random_state is not None (#15353) 2019-10-24 16:33:12 -04:00
Nicolas Hug bcd399f4cb FIX Fixed some imports after deprecations (#15345) 2019-10-23 16:59:52 +02:00
Thomas J Fan 0a7adef005 MNT Make modules private in linear_model (#15324) 2019-10-23 15:34:26 +02:00
Thomas J Fan e489aab0d6 MNT Remove warning in logistic regression cv scoring (#15184) 2019-10-18 18:55:25 +02:00
Nicolas Hug 220e146a7f FIX Fixed reshaping attributes of LogisticRegressionCV (#15044) 2019-10-03 09:59:14 +02:00
Alexandre Gramfort d92f12a137 FIX: dtype check in MultiTaskLassoCV and MultiTaskLassoCV (#15086)
* FIX: dtype check in MultiTaskLassoCV and MultiTaskLassoCV

* fix pr number

* address comments from @rth
2019-09-26 07:30:36 -04:00
Venkatachalam N 2e7b554293 Fix bug in implementation of scoring in loo `_RidgeGCV` (#14864) 2019-09-08 15:05:14 +02:00