Commit Graph

2172 Commits

Author SHA1 Message Date
Alex Henrie f35457f1fc
MNT Remove unnecessary assignments from LogisticRegression.fit (#18539) 2020-10-05 22:43:38 +02:00
Albert Villanova del Moral 7e545e1724
DOC Fix versionadded for 0.23 (#18522) 2020-10-05 10:23:32 +11:00
Thomas J. Fan 06d6f8a9f6
FIX Passes global configuration when spawning joblib jobs (#17634)
* WIP

* BUG Passes context to joblib jobs

* BUG Fix

* BUG Fix

* CLN Moves delayed into fixes

* CLN Adds linter

* REV Revert diff

* DOC Adds comment for removal

* Use a simple implementation
2020-09-21 16:59:42 +02:00
Albert Villanova del Moral 647fcb1ac1
DOC Fix A to uppercase in See Also docstring section (#18332) 2020-09-04 10:35:01 -04:00
Albert Villanova del Moral 875d32fe55
DOC Fix versionadded/versionchanged for 0.24 (#18312) 2020-09-01 10:51:01 +02:00
Sam Ezebunandu 1b83e176f7
DOC Fix docstring for default value in linear_model/_huber_loss_and_g… (#18297)
Co-authored-by: Sam Ezebunandu <samuel.ezebunandu@outlook.com>
2020-08-31 12:47:04 +02:00
Maren Westermann 4c314923de
DOC alphas_ documentation of LassoLarsIC (#18224) 2020-08-31 10:12:07 +02:00
Ram Rachum 61ec6b9b79
MNT Use raise from in 19 modules (#17835) 2020-08-25 08:57:29 +02:00
Frans Larsson 9e340a1c38
DOC Add None as valid option to random_state for linear_model module (#18240) 2020-08-23 09:53:43 +02:00
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
Sunitha Selvan ae7667ce22
DOC mention LOOCV instead of GCV in RidgeCV (#18154) 2020-08-18 11:32:21 +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
Frans Larsson d5bfff32f6
DOC Fix doc of defaults in sklearn.linear_model._omp.py (#18100)
Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>
2020-08-06 12:05:46 +02:00
Nicolas Hug 1dedc7e6a8
[MRG] Prototype 4 for strict check_estimator mode (#17361) 2020-08-06 12:02:15 +02:00
Frans Larsson 3dd2e94a4e
DOC Fix doc of defaults in sklearn.linear_model._sag.py (#18098) 2020-08-06 11:53:33 +02:00
Frans Larsson 709ffc3d73
DOC Fix doc of defaults in sklearn.linear_model._theil_sen (#18099) 2020-08-06 10:52:12 +02: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
Maren Westermann ae0d535516
DOC add attribute active_ to LarsCV (#17886) 2020-07-22 00:39:12 +10:00
Maren Westermann 886fb97465
DOC sparse_coef_ documentation for MultiTaskElasticNet and MultiTaskLasso (#17884) 2020-07-16 13:57:13 -04: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
Maren Westermann ce03e544a8
add dual_gap_ attribute (#17882) 2020-07-11 10:42:00 -04:00
Shail Shah a293a6ce7c
DOC added attributes in LassoLarsCV (#17838) 2020-07-10 12:33:06 +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
t-kusanagi2 3c6db87ce2
DOC Add missing attrributes in ElasticNet and etc (#17740)
Co-authored-by: BenjaminLiu <imbenliu@gmail.com>
Co-authored-by: Loïc Estève <loic.esteve@ymail.com>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2020-07-06 15:44:33 +02:00
Juan Carlos Alfaro Jiménez 9cd13a1fa1
FIX Change MRO for some estimators (#17837) 2020-07-05 13:52:42 +02:00
barankarakus 28b1e00665
Fixed typo in docstring of enet_path in _coordinate_descent.py (#17807) 2020-07-04 11:20:58 +02:00
Srimukh Sripada 180646fa18
PERF Dot product optimizations using multi_dot (#17737) 2020-07-04 10:58:59 +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
pwalchessen 89b80a6c67
DOC add missing attributes in several modules (#15521)
Co-authored-by: Patricia Walchessen <pwalchessen@gmail.com>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2020-06-18 11:18:23 +02:00
Saurabh Jain 00bc681e10
DOC shorten class links in docstring using tilde (#17470)
* added tilde to bunch of files

* Updated _kde.py

Changed array_like to array-like

* Updated _kde.py

Removed space

* updated _kde.py

Added full stop

* PEP8

Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2020-06-16 10:44:13 +02:00
Rithvik Rao 005d55e3d8
TST Fixed tiny typo in test_logistic.py (#17562) 2020-06-11 09:13:23 +02:00
Atsushi Nukariya b898f25cc2
DOC Add examples to linear_model.TweedieRegressor (#17516)
* Add examples to linear_model.TweedieRegressor

* Address review
2020-06-07 10:09:53 -04:00
Atsushi Nukariya 76817211a1
DOC Add example to linear_model.GammaRegressor (#17519)
* Add examples to linear_model.GammaRegressor

* Apply suggestions from code review

Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>

Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2020-06-07 10:08:27 -04:00
Atsushi Nukariya 74b445efb7
DOC Add example to linear_model.PoissonRegressor (#17453)
* [WIP]: Add examples to linear_model.PoissonRegressor

* Address review

* Address review

* Apply suggestions from code review

Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>

* Remove numpy import

Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2020-06-06 23:43:29 -04:00
genvalen e57fab1265
DOC Update default doc string values for linear_model (#17506) 2020-06-06 17:15:14 -04:00
マーティン 6998f621b8
DOC Enabling links to objects in docstrings of RANSACRegressor (#17479)
* Add link to DecisionTreeRegressor object in BaggingRegressor docstrings

* Add link to DecisionTreeClassifier object in BaggingClassifier class doctring

* Replace object reference with class link to LinearRegression
2020-06-06 15:19:29 -04:00
Deeksha Madan 58d74c10a6
Replaces array_like with array-like (#17463)
* replacing array_like with array-like

* Replacing array_like with array-like
2020-06-06 12:27:11 -04:00
Roman Yurchak 8feb04524c
Common check for sample weight invariance with removed samples (#17176)
Co-Authored-By: Nicolas Hug <contact@nicolas-hug.com>
2020-06-04 00:30:01 +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
Roman Yurchak 818e16a1ea Revert "Common check for sample weight invariance with removed samples (#16507)"
This reverts commit 77279d6b3e.
2020-05-10 17:05:01 +02:00
Roman Yurchak 77279d6b3e
Common check for sample weight invariance with removed samples (#16507)
Co-Authored-By: Nicolas Hug <contact@nicolas-hug.com>
2020-05-10 15:41:53 +02:00
Lucy Liu e2256c111d
TST Replace Boston dataset in test_coordinate_descent.py (#17153) 2020-05-08 19:52:34 -04:00
mathurinm 2a5c22a6aa
Delegate choice of final model to sub class in LinearModelCV (#17099)
* init

* flake8 error by vscode autoformatting

* remove returns

* get_model > get_estimator

* cosmit Tom + autoformat on save error again
2020-05-06 19:29:31 +02:00
Alexandre Gramfort 04d2e3290f
Speedup MultiTaskLasso (#17021) 2020-05-02 10:11:07 +02:00