Commit Graph

48 Commits

Author SHA1 Message Date
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
Taehoon Lee 93871e2e61 Fix typos (#9095) 2017-06-10 12:54:40 +02:00
Andreas Mueller 7c6486f09c fix multioutput partial_fit delegation (#9013) 2017-06-07 08:09:44 +02:00
Andreas Mueller 1c41368bac [MRG+1] Uncontroversial fixes from estimator tags branch (#8086)
* some bug fixes.

* minor fixes to whatsnew

* typo in whatsnew

* add test for n_components = 1 transform in dict learning

* feature extraction doc fix

* fix broken test

* revert aggressive input validation changes

* in SelectFromModel, don't store threshold_ in transform. If we called "fit", use estimates from last "fit".

* move score from EllipticEnvelope to OutlierDetectionMixin

* revert changes to Tfidf documentation

* remove dummy input validation from whatsnew

* fix text feature tests

* rewrite from_model threshold again...

* remove stray condition

* fix self.estimator -> estimator, slightly more interesting test

* typo in comment

* Fix issues in SparseEncoder, add tests.
more explicit explanation of SparseEncoder change, add issue numbers to whatsnew

* minor fixes in whats_new.rst

* slightly more consistency with tuples for shapes

* not longer typo
2017-06-06 16:34:47 +02:00
Peng Yu 8695ff5969 [MRG + 1] add partial_fit to multioutput module (#8054)
* add partial_fit to multioupt module

* fix range in python3

* fix flake8

* fix the comments

* fix according to comments

* fix lint

* remove pytest

* fix ValueException message

* py 3.5 compatiable classes

* fix stuff

* fix according the comments

* remove used copy

* flake8..

* fix docs

* eventually, i use deepcopy to ensure the parallel

* lint..

* address final comment

* fix addressing the comments

* update confirmed separate estimators

* finally remove copy

* compact test
2017-01-05 16:11:18 +01:00
Peter Bull dd2e48c091 [MRG+1] Return list instead of 3d array for MultiOutputClassifier.predict_proba (#8095)
* Return list instead of 3d array for MultiOutputClassifier.predict_proba

* Update flake8, docstring, variable name

 - Changed `rs` to `rng` to follow convention.
 - Made sure changes were flake8 approved
 - Add `\` to continue docstring for `predict_proba` return value.

* Sub random.choice for np.random.choice

`np.random.choice` isn’t available in Numpy 1.6, so opt for the Python
version instead.

* Make test labels deterministic

* Remove hanging chad...

* Add bug fix and API change to whats new
2016-12-22 18:54:21 +01:00
Maniteja Nandana 29ee54a586 Meta estimator for multi output classification 2016-04-01 07:18:59 +05:30
Tim Head 07cede74ca Multitarget regression meta estimator
Register OneVsRestRegressor as meta estimator

Rename to a more sensible name

Parallel predict and sparse support

Started MultiOutput documentation

Move code to new file multioutput.py

Continuing the move to new multioutput module

Added sample weight support

Better test for sample weights and actually support weights

Added a new test using weighted vs repeated samples to
test sample weight support. Uncovered that weights
were not actually passed on to underlying estimator.

Comment on multiprocess overheads

Move parallel_helper to utils.fixes

This helper works around a python2 limitation on pickling
instance methods

Example of multi-output regression with gradient boosting

Switch to uniform weighted score and updated example

The example now uses a RF with and without the MultiOutput
meta estimator

Added note for removing `score` method

Addressing comments on MultiOutputRegressor

MultiOutputregressor better test for weighted samples

Fix ups

Use explicit keyword argument for passing sample weights and
fix random_state on train-test split in the example
2016-03-10 16:06:08 -05:00