Commit Graph

100 Commits

Author SHA1 Message Date
Guillaume Lemaitre 36f6734789
ENH add predict_log_proba to ClassifierChain (#27720) 2023-12-05 22:41:36 -05:00
Lucy Liu 7535c5346e
MAINT Remove unused variable in `ClassifierChain` (#27701) 2023-11-01 12:24:33 +01:00
Christian Lorentzen dda6337b2c
ENH scaling of LogisticRegression loss as 1/n * LinearModelLoss (#26721)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2023-10-06 23:49:37 +02:00
Tialo 5eba9b5f24
DOC Add link to plot_classifier_chain_yeast example in ClassifierChain (#26937)
Co-authored-by: Adrin Jalali <adrin.jalali@gmail.com>
2023-08-12 12:24:14 +02:00
Adrin Jalali 36c5073601
MNT (SLEP6) remove other_params from provess_routing (#26909)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2023-07-27 17:43:45 +00:00
Adrin Jalali 4e679023eb
CLN clean up some repeated code related to SLEP006 (#26836)
Co-authored-by: Omar Salman <omar.salman@arbisoft.com>
2023-07-17 15:26:41 +05:00
Omar Salman 02d20c1851
ENH Add routing to LogisticRegressionCV (#26525)
Co-authored-by: Omar Salman <omar.salman@arbisoft>
Co-authored-by: Adrin Jalali <adrin.jalali@gmail.com>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2023-07-14 19:00:35 +02:00
Guillaume Lemaitre 5d145bf760
DOC fixes intersphinx warnings (#26779)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2023-07-10 20:25:35 +00:00
Adrin Jalali 42173fdb34
MNT add isort to ruff's rules (#26649) 2023-06-21 17:50:07 +02:00
Jérémie du Boisberranger 9c266cf5d6
MAINT Param validation: decorate all estimators with _fit_context (#26473) 2023-06-14 16:52:35 +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
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
Adrin Jalali 893d5accaf
MNT Update black to 23.3.0 (#26110) 2023-04-06 12:14:16 -04:00
Guillaume Lemaitre a7cd0ca44d
FIX propagate configuration to workers in parallel (#25363)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2023-01-20 12:44:35 -05:00
Olle Lukowski 01944223c8
MAINT Parameters validation for `ClassifierChain` and `RegressorChain` (#24112)
Co-authored-by: jeremie du boisberranger <jeremiedbb@yahoo.fr>
2022-08-31 23:11:19 +02:00
Thomas J. Fan 02ebf9e68f
MNT Adds dict typing hint to _parameter_constraints for mypy (#24301) 2022-08-30 11:01:10 +02: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
Lucy Liu ad6b3d36d4
DOC Fix typo in `RegressorChain` (#23989) 2022-07-25 09:43:57 +02:00
osman tamer d942600e1f
MAINT add parameter_constraints for MultiOutputClassifier and MultiOutputRegressor (#23902)
Co-authored-by: jeremiedbb <jeremiedbb@yahoo.fr>
2022-07-22 16:09:48 +02:00
Julien Jerphanion 38d568026d
DOC make a doctest more stable in MultiOutputClassifier (#22307)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2022-01-26 19:19:43 +01:00
LucieClair ec48b24678
DOC Improve document MultiOutputRegressor (#21836) 2021-11-30 19:40:53 +01:00
Reshama Shaikh 907c093977
DOC Ensures MultiOutput* and RegressorChain passes numpydoc validation (#20713)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2021-09-01 15:02:47 +02:00
baam 54810438a2
DOC Ensures that ClassifierChain passes numpydoc validation (#20835)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2021-08-31 19:01:43 +02:00
Olivier Grisel 270ac2e135
Check features_names_in_ in sklearn.multioutput (#20847) 2021-08-26 16:50:21 +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 1bd007fe0d Apply black on main 2021-07-12 19:37:28 +02:00
Joel Nothman ed3642014b
ENH Add available_if as a generic, literate variant of if_delegate_has_method (#19948)
* Better documentation where if_delegate_has_method is inapplicable

Fixes #19923

Introduces an elegant alternative for if_delegate_has_method, a decorator called available_if, which uses a callable to determine if an object should show a particular attribute.

If the callable also accepted the attribute name being decorated as a parameter, this could be used to implement if_delegate_has_method.

We could also replace if_delegate_has_method in all cases, since the code might be more readable as @available_if(lambda self, method: hasattr(self.base_estimator, method))

Possible alternative naming of available_if: hasattr_if.

TODO: add tests of the new decorator

* Fix use of super()

* Fixes to silly errors...

* add noqa

* Fix docstring issues

* remove debugging statements

* Use available_if instead of if_delegate_has_method in multioutput

* Public to private

* Rm unused import

* Black

* Use a sentinel instead of for-else with early return

* update reference docs

* TST

* DOC Add change log

* Update doc/whats_new/v1.0.rst

* Make test make sense

* Black

* Define available_if function in class

* Another way to express multioutput delegations
2021-07-11 15:36:26 +02: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
LSturtew 3f69c7da4d
ENH Adds n_features_in_ checking to multioutput (#19692)
Co-authored-by: jeremie du boisberranger <jeremiedbb@yahoo.fr>
2021-06-15 18:40:57 +02:00
Tom Dupré la Tour f6e6ad2d9e
MNT clean futurewarning for 1.0 | _deprecate_positional_args (#20002)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2021-05-14 11:30:27 -04:00
Guillaume Lemaitre e56d76a8da
FIX Removes unecessary check in _BaseChain (#19865) 2021-04-12 11:03:02 -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
tnwei 38a50f4c7b
DOC Improve n_jobs docs in sklearn/multioutput.py (#18634) 2020-10-30 14:35:59 -04:00
Albert Villanova del Moral f7a8dd2877
DOC Fix version in whatsnew and docstring (#18504)
* Fix feature version in whatsnew

* Add versionaddded

* Add versionadded to whatsnew enhancement

* fix versionchanged format
2020-10-01 13:02:54 +02: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
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
Frans Larsson 895f20d233
DOC Fix default values in multioutput.py docstrings (#17841)
Co-authored-by: Juan Carlos Alfaro Jiménez <JuanCarlos.Alfaro@uclm.es>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2020-07-10 10:32:27 +02:00
Juan Carlos Alfaro Jiménez 9cd13a1fa1
FIX Change MRO for some estimators (#17837) 2020-07-05 13:52:42 +02:00
Thorben Jensen d62af0e55d
DOC add minimal example to multioutput.ClassifierChain (#15211)
Co-Authored-By: Benjamin Bossan <BenjaminBossan@users.noreply.github.com>
Co-authored-by: Adrin Jalali <adrin.jalali@gmail.com>
Co-authored-by: Thomas J Fan <thomasjpfan@gmail.com>
2020-06-18 00:30:08 +02:00
Maren Westermann 5a8562703e
DOC adding suggested spaces in multioutput/RegressorChain (#17498)
* example for multioutput regressor

* add spaces (suggested changes) #DataUmbrella

Co-authored-by: Tim Nonner <tim.nonner@tamedia.ch>
2020-06-06 17:47:13 -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
brigi dbc35934a6
DOC Version added and changed labels added for v0.18 (#wimlds) (#16222)
* Versionlabels added to v0.18 (#wimlds)

* documentation issues: label changed and added for version 0.18

* fix intends and shorten description

Co-authored-by: Hannah <32333241+hhnnhh@users.noreply.github.com>
Co-authored-by: Brigitte@home <unger@nue.tu-berlin.de>
2020-04-27 18:43:47 -04:00
Ekaterina Borovikova 4755ae76d2
DOC Add versionchanged and versionadded for v0.20 (#16199)
Co-Authored-By: Adrin Jalali <adrin.jalali@gmail.com>
Co-Authored-By: Chiara Marmo <cmarmo@users.noreply.github.com>
Co-Authored-By: Nicolas Hug <contact@nicolas-hug.com>
2020-04-26 09:29:36 -04:00
Adrin Jalali 02309ffbda
API kwonly args in manifold, metrics, mixture, model_selection, multclass, multioutput (#16982) 2020-04-24 17:24:24 -04:00
Noa Tamir 5e2d74bc5f
DOC add versionadded versionchanged v0.19 (#16233)
* added v0.19.1 and wip v0.19

* finished adding vchanged strings for v0.19

Towards #15426

@adrinjalali #wimlds #scikitlearnsprint

* fixing linter issues

* caught line issues with flake8

* caught the last line issue

* added lines and cleaned gtiignore

* Update sklearn/multiclass.py

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

* Update sklearn/multiclass.py

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

Co-authored-by: Thomas J Fan <thomasjpfan@gmail.com>
2020-04-15 10:36:51 +02:00
Katrina Ni c4cf5fc340
DOC add example to MultiOutputRegressor (#16698)
Co-authored-by: Benjamin Bossan <BenjaminBossan@users.noreply.github.com>
Co-authored-by: Sönke Behrends <s.behrends@math.uni-goettingen.de>
Co-authored-by: Katrina Ni <kani@tableau.com>
2020-03-18 21:58:14 +11:00
Nicolas Hug d205638475
MNT Introduction of n_features_in_ attr with _validate_data mtd (#16112) 2020-02-29 09:05:11 -05:00