Commit Graph

57 Commits

Author SHA1 Message Date
Guillaume Lemaitre 36f6734789
ENH add predict_log_proba to ClassifierChain (#27720) 2023-12-05 22:41:36 -05:00
Naman Dhingra dea72cc602
TST Extend tests for `scipy.sparse.*array` in `sklearn/tests/test_multioutput.py` (#27171) 2023-08-28 14:48:46 +05:00
Adrin Jalali 42173fdb34
MNT add isort to ruff's rules (#26649) 2023-06-21 17:50:07 +02:00
Adrin Jalali 62671a704f
FEAT SLEP006: metadata routing infrastructure (#24027)
Co-authored-by: Christian Lorentzen <lorentzen.ch@gmail.com>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Benjamin Bossan <BenjaminBossan@users.noreply.github.com>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: Omar Salman <omar.salman@arbisoft.com>
2023-06-02 16:43:31 -04:00
Gleb Levitski b32e5c7ab3
ENH Accept 'auto' option for 'dual' parameter in LinearSVC and LinearSVR (#26093) 2023-05-30 16:54:24 +02:00
Adrin Jalali faf9b1ffe6
FIX fix available_if for MultiOutputRegressor.partial_fit (#26333)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2023-05-05 14:28:05 +00:00
Jérémie du Boisberranger e75d8a65bb
MAINT Clean-up remaining SGDClassifier(loss="log") (#25938) 2023-03-22 12:37:13 -04:00
Lucy Liu be008374b3
ENH Add verbose to classifier regressor chains (#23977)
Co-authored-by: ericfiegel <efiegel01@gmail.com>
Co-authored-by: Eric Fiegel <fiegel@usc.edu>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
Co-authored-by: Chiara Marmo <cmarmo@users.noreply.github.com>
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
Co-authored-by: jeremiedbb <jeremiedbb@yahoo.fr>
2022-07-28 19:36:17 +02:00
Christian Lorentzen 0c20ba7449
DEP loss "log" in favor of "log loss" in SGDClassifier (#23046)
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
2022-04-07 15:08:45 +02:00
Guillaume Lemaitre bb5503ca70
TST avoid FutureWarning due to n_features_in_ deprecation in Dummy* (#20963) 2021-09-07 14:14:31 +02:00
Harutaka Kawamura 8cf87a30bb
MNT Replace `@property` on predict methods with `@available_if` (#20667)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2021-08-13 18:00:21 -04:00
Olivier Grisel 2bcbc912a5
MAINT Make multioutput tests deterministic in common tests (#20468) 2021-07-13 11:31:19 +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
Thomas J. Fan da3c2d2a19
FIX MultiOutputRegressor correctly ducktypes fitted estimators (#19308)
Co-authored-by: Olivier Grisel <olivier.grisel@gmail.com>
2021-04-09 18:34:13 +02:00
Alihan Zihna f2773e840a
TST replace assert_raise_* by pytest.raises in tests/test_multioutput.py (#19618)
Co-authored-by: Alihan Zihna <a.zihna@ckhgbdp.onmicrosoft.com>
2021-03-08 13:03:56 -05:00
Venkatachalam N 8ba49f6280
EHN make some meta-estimators lenient towards missing values (#17987)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2020-08-26 11:10:24 +02:00
amy12xx f656c37d19
FIX Fixes ClassifierChain issue when a tuple is passed to order (#18124)
* fix error tuple passed to order

* fix linting

* Update sklearn/tests/test_multioutput.py

Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>

* updated test and whatsnew

* doc fix

* Update doc/whats_new/v0.24.rst

Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>

* Update sklearn/tests/test_multioutput.py

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

* Update sklearn/tests/test_multioutput.py

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

* code review fix

* code review fix

* added test

* code review fix

* Update sklearn/multioutput.py

Co-authored-by: Joel Nothman <joel.nothman@gmail.com>

Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: Joel Nothman <joel.nothman@gmail.com>
2020-08-17 14:30:15 -04: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
Venkatachalam N feb80ea973
ENH adding fit_params option for RegressorChain (#16111) 2020-02-18 19:02:38 -05:00
Christian Lorentzen 21686b7147
ENH Sample weights for ElasticNet (#15436) 2020-02-16 14:48:01 +01:00
huangk10 bdf1ae9e4a ENH Add a optional fit_param to enable custom MultiOutput fit process (#15959) 2020-01-06 17:40:16 -05:00
Nicolas Hug 4256542b10 MNT Removed deprecated attributes and parameters (#15803) 2019-12-09 22:17:06 +08:00
Rebekah Kim 981fa7b8f1 FIX property for predict_proba in MultiOutput Classifier (#15490) 2019-11-08 09:36:58 +11:00
Nicolas Hug 12c2b40761
MNT Remaining deprecations in sklearn/file.py (#15399) 2019-11-04 14:22:42 -05:00
Nicolas Hug b92455a6b2 MAINT Deprecate all of utils.testing except all_estimators (#15367) 2019-10-28 17:28:56 +01:00
Agamemnon Krasoulis 06dc44c965 TST MultiOutputClassifier classes_ attribute (#14629) 2019-08-14 11:32:52 +02:00
Harsh Mahajan 38fd24ac1e EXA Remove redundant tol parameter for SGDClassifier (#14556) 2019-08-02 14:04:10 -04:00
Adrin Jalali 19c068a2ec MNT towards removing assert_equal, etc (#14222) 2019-07-01 09:13:32 -04:00
Roman Yurchak 1015caf54d MAINT Remove imports from sklearn.utils._joblib (#13676)
* Remove sklearn.utils._joblib imports

* Lint

* More fixes
2019-06-18 18:37:14 +04:00
Guillaume Lemaitre c28ef9ef2a DEP change the default of multi_class to 'auto' in logistic regression (#13807) 2019-05-22 09:57:15 -04:00
Stéphane Couvreur 0bfa52dad7 DEP Change default of error_score in cross-validation (#13840) 2019-05-22 09:28:45 +10:00
Guillaume Lemaitre 7896b21562 MNT change default of solver in LogisiticRegression (#13805) 2019-05-08 21:31:39 +08:00
Rebekah Kim d903436afe Fix MultiOutputClassifier checking for predict_proba method of base estimator (#12222)
#WiMLDS
2019-04-19 14:16:49 -04:00
Oleksandr Pavlyk b8f881e832 MAINT: n_jobs=-1 replaced with n_jobs=4 in tests (#13644)
This change is to work around the hang

 https://github.com/scikit-learn/scikit-learn/issues/12263

afflicting Windows on machines with > 62 hyperthreads.
2019-04-15 20:52:45 +02:00
Clément Doumouro 01bc8b18ac FIX non deterministic behavior in SGD (#13422) 2019-04-04 21:31:09 +11:00
Joel Nothman 19c8af6d6a ENH/FIX Replace jaccard_similarity_score by sane jaccard_score (#13151) 2019-03-13 20:59:08 +08:00
surgan12 62d2059804 MNT remove __future__ imports (#12791) 2019-02-02 22:05:06 +08:00
Bartosz Michałowski fa98a72dcc MNT Replaced all occurrences of assert_true and assert_false with assert (#12588) 2018-11-28 09:16:26 +08:00
Thomas Moreau d25da1be20 FIX make joblib utils private, and remove mentions of externals.joblib (#12345) 2018-11-20 10:53:52 +11:00
Nicolas Hug 4e2da4af92 [MRG] Added FutureWarning in sgd models for tol parameter (#12399)
* Added ChangedBehaviorWarning in sgd models

if tol is None while max_iter is set

* Changed to FutureWarning and clarified None meaning

* Ignored warningin tests

* Ignore warnings in tests, round 2
2018-10-24 11:00:43 -04:00
Joel Nothman 7ed61a24fe ENH add multi_class='auto' for LogisticRegression, default from 0.22; default solver will be 'lbfgs' (#11905)
* Change default solver in LogisticRegression
* This is an API change, not a feature
* Decrease numerical precision in LogisticRegression doctest
* ENH add multi_class='auto' for LR, default from 0.22
* No warning when binary
2018-08-26 23:00:02 +03:00
Joel Nothman 14e7c328df Restructure access to vendored/site Joblib (#11471)
In order to fix #11408, this swaps `joblib` and `_joblib`. It however, allows users to access joblib's `Memory` or `Parallel` functionality without accessing `sklearn.externals._joblib` by importing `Memory`, `Parallel`, etc. into `sklearn.utils`.
2018-07-17 18:02:11 +02:00
Taehoon Lee 328b04f43e MNT Fix typos (#11057) 2018-05-03 16:30:05 +08:00
Kumar Ashutosh 87759c1924 FEA Add a new class RegressorChain similar to ClassifierChain (#9257) 2017-12-12 09:00:57 +11:00
Loïc Estève 4889a67942 MAINT remove unused imports 2017-08-31 10:28:09 +02:00
Joel Nothman 39f1b1380a TST/FIX failure on machines with one CPU (#9544) 2017-08-30 10:42:01 -04:00
Joel Nothman e674f64458 [MRG+1] FIX Add missing mixins to ClassifierChain (#9473)
* Add missing mixins to ClassifierChain

* Fix import in test
2017-08-04 12:26:54 -04:00
Hanmin Qin a294149f95 TST Change dataset for test_classifier_chain_vs_independent_models (#9255) 2017-07-04 14:41:24 +02:00
Adam Kleczewski b413299676 [MRG+1] Classifier chain (#7602)
[MRG+2] Classifier chain
2017-06-28 22:34:19 -07:00
Tom Dupré la Tour edeb3af217 Deprecate n_iter in SGDClassifier and implement max_iter (#5036) 2017-06-23 21:49:29 +02:00