Commit Graph

1336 Commits

Author SHA1 Message Date
Olivier Grisel 548a4524b4
MNT n_features_in_ consistency in decomposition (#18557)
Co-authored-by: Nicolas Hug <contact@nicolas-hug.com>
2020-10-08 09:47:24 -04:00
Thomas J. Fan 02fa8f1adb
ENH Deprecates _pairwise attribute and adds pairwise to estimator tags (#18143) 2020-10-07 21:53:36 +11:00
Thomas J. Fan 8731cd732b
ENH Uses _validate_data in other methods in the neural_network module (#18514) 2020-10-07 11:35:47 +02:00
Nicolas Hug 5721629fd3
MNT Use a pytest-like context manager in estimator_checks.py (#18418) 2020-09-28 15:05:43 -04:00
Juan Carlos Alfaro Jiménez 09c41fe7f3
MNT Use substitutions for minimum dependencies in README.rst (#18301)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2020-09-23 13:01:05 +02:00
Albert Villanova del Moral 174f935149
FIX Preserve parameters when slicing a pipeline (#18429)
Co-authored-by: Paweł Biernat <pawel.biernat@ardigen.com>
2020-09-21 16:52:13 -04:00
hugorichard 370e5452b5
FEA Allow passing custom covariance estimators to LDA (#14446)
Co-authored-by: hugo richard <hugo.richard@inria.fr>
Co-authored-by: Nicolas Hug <contact@nicolas-hug.com>
2020-09-17 08:40:41 -04:00
Nicolas Hug 0a5af0d2a1
FEA Successive halving for faster parameter search (#13900)
* More flexible grid search interface

* added info dict parameter

* Put back removed test

* renamed info into more_results

* Passed grroups as well since we need n_to use get_n_splits(X, y, groups)

* port

* pep8

* dabl -> sklearn

* add _required_parameters

* skipping check in rst file if pandas not installed

* Update sklearn/model_selection/_search_successive_halving.py

Co-Authored-By: Joel Nothman <joel.nothman@gmail.com>

* renamed into GridHalvingSearchCV and RandomHalvingSearchCV

* Addressed thomas' comments

* repr

* removed passing group as a parameter to evaluate_candidates

* Joels comments

* pep8

* reorganized user user guide

* renaming

* update user guide

* remove groups support + pass fit_params

* parameter renaming

* pep8

* r_i -> resource_iter

* fixed r_i issues

* examples + removed use of word budget

* Added inpute checking tests

* added cv_resutlts_ user guide

* minor title change

* fixed doc layout

* Addressed some comments

* properly pass down fit_params

* change default value of force_exhaust_resources and update doc

* should fix doc

* Used check_fit_params

* Update section about min_resources and number of candidates

* Clarified ratio section

* Use ~ to refer to classes

* fixed doc checks

* Apply suggestions from code review

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

* Addressed easy comments from Joel

* missed some

* updated docstring of run_search

* Used f strings instead of format

* remove candidate duplication checks

* fix example

* Addressed easy comments

* rotate ticks labels

* Added discussion in the intro as suggested by Joel

* Split examples into sections

* minor changes

* remove force_exhaust_budget and introduce min_resources=exhaust

* some minor validation

* Added a n_resources_ attribute

* update examples

* Addressed comments

* passing CV instead of X,y

* minor revert for handling fit_params

* updated docs

* fix len

* whatsnew

* Add test for sampling when all_list

* minor change to top-k

* Force CV splits to be consistent across calls

* reorder parameters

* reduced diff

* added tests for top_k

* put back doc for groups

* not sure what went wrong

* put import at its place

* some comment

* Addressed comments

* Added tests for cv_results_ and base estimator inputs

* pep8

* avoid monkeypatching

* rename df

* use Joel's suggestions for testing masks

* Made it experimental

* Should fix docs

* whats new entry

* Apply suggestions from code review

Co-authored-by: Andreas Mueller <t3kcit@gmail.com>

* Addressed comments to docs

* Addressed comments in examples

* minor doc update

* minor renaming in UG

* forgot some

* some sad note about splitter statefulness :'(

* Addressed comments

* ratio -> factor

Co-authored-by: Joel Nothman <joel.nothman@gmail.com>
Co-authored-by: Andreas Mueller <t3kcit@gmail.com>
2020-09-09 17:12:35 +02:00
Nicolas Hug 8061aace11
FIX DOC MNT Big revamp of cross-decomposition module (#17095) 2020-08-31 12:38:39 -04:00
Maren Westermann 4c314923de
DOC alphas_ documentation of LassoLarsIC (#18224) 2020-08-31 10:12:07 +02: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
Cary Goltermann a0a76fcfbe
EHN raise error with inconsistant transformer_weight in FeatureUnion (#17876)
Co-authored-by: Cary Goltermann <cgoltermann@kpmg.com>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2020-08-25 11:51:17 +02:00
Nicolas Hug 5bf37e8425
FEA Add sequential feature selection transformer (#17159)
Co-authored-by: rasbt <mail@sebastianraschka.com>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2020-08-21 19:57:05 +02:00
George Armstrong ee09b2a7ee
ENH Add min_categories parameter for each feature to CategoricalNB (#16326)
Co-authored-by: Joel Nothman <joel.nothman@gmail.com>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2020-08-20 17:05:57 +02:00
Daniel López daebcac781
FEA Add PolynomialCountSketch to Kernel Approximation module (#13003)
* Add Tensor Sketch algorithm

* Add user guide entry

* Add example

* Add benchmark

Co-authored-by: Christian Lorentzen <lorentzen.ch@googlemail.com>
Co-authored-by: Tom Dupré la Tour <tom.dupre-la-tour@m4x.org>
Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>
2020-08-18 08:44:20 +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 1dedc7e6a8
[MRG] Prototype 4 for strict check_estimator mode (#17361) 2020-08-06 12:02:15 +02:00
Julien Jerphanion 96a364e27f
[MRG] Use joblib.Parallel for CalibratedClassifierCV.fit (#17107)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2020-07-26 15:33:08 +02:00
Jérémie du Boisberranger 5d2107e999
DOC document and deprecate missing attributes in MiniBatchKMeans (#17864) 2020-07-12 16:29:44 +02:00
Shail Shah a293a6ce7c
DOC added attributes in LassoLarsCV (#17838) 2020-07-10 12:33:06 +02:00
Yashika Sharma 0edfedb532
DOC Added missing attributes to OneVsRest Classifier (#17844)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2020-07-10 10:30:14 +02:00
Thomas J. Fan 233f2ce052
DEP deprecate grid_score_ and cv_alphas_ in GraphicalLassoCV (#16392)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2020-07-09 11:14:02 +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
Jiaxiang 4e6a6e22f0
ENH Allow isotonic reg 2d input with 1 feature (GH15012) (#17379) 2020-07-06 22:33:12 +10:00
Juan Carlos Alfaro Jiménez 3561802bdc
MNT Deprecate coef_ and intercept_ in naive bayes estimators (#17427) 2020-07-05 21:03:30 +10:00
Lucy Liu 6b29bc69c5
ENH Support pipelines in CalibratedClassifierCV (#17546) 2020-06-30 15:23:34 +02:00
Jie Zheng 3491e07044
DOC add missing attributes to LocalOutlierFactor (#17696)
Co-authored-by: Loïc Estève <loic.esteve@ymail.com>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2020-06-26 09:52:02 +02:00
kishimoto acb8ac5145
[MRG] Expose interpolation thresholds as public fitted attribute of IsotonicRegression (#16289)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Thomas J Fan <thomasjpfan@gmail.com>
Co-authored-by: Nicolas Hug <contact@nicolas-hug.com>
2020-06-25 21:16:43 +02:00
Kendrick Cetina 2c7107089c
DOC improve attributes and parameters descriptions in RFE and RFECV (#17721)
Co-authored-by: Beatriz San Miguel <beatriz.sanmiguelgonzalez@uk.fujitsu.com>
Co-authored-by: Loïc Estève <loic.esteve@ymail.com>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2020-06-25 18:46:31 +02:00
Jie Zheng e781ae8e3c
DOC add missing attributes to MDS (#17697) 2020-06-25 10:12:51 +02:00
Naoki Hamada 7cc8503919
DOC add missing attributes in KernelDensity (#17705)
Co-authored-by: Naoki Hamada <hamada-naoki@jp.fujitsu.com>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
Co-authored-by: Olivier Grisel <olivier.grisel@gmail.com>
2020-06-24 21:23:09 +02:00
simonamaggio a109dff722
DOC add missing attributes in HistGradientBoostingRegressor (#17677)
Co-authored-by: Olivier Grisel <olivier.grisel@gmail.com>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2020-06-24 19:27:07 +02:00
Kendrick Cetina 4a97ad49c1
DOC add missing attributes in GaussianProcessClassifier (#17698)
Co-authored-by: Beatriz San Miguel <beatriz.sanmiguelgonzalez@uk.fujitsu.com>
Co-authored-by: Loïc Estève <loic.esteve@ymail.com>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2020-06-24 18:38:28 +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
simonamaggio 683b3e51ee
DOC add missing attributes in GradientBoostingRegressor (#17671) 2020-06-24 08:56:47 +02:00
Louis Douge aec1f6dc09
DOC Adding missing attributes to the MLP classes docstring (#17669)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2020-06-24 08:54:43 +02:00
simonamaggio 3d098af4cc
DOC add missing attributes in RBFSampler (#17668)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2020-06-23 17:21:09 +02:00
beatrizsmg be9492ca1e
DOC add missing attributes in IsolationForest (#17667)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
Co-authored-by: Kendrick Cetina <kendrick.cetina@uk.fujitsu.com>
2020-06-23 15:43:09 +02:00
simonamaggio c9f8f52a78
DOC add missing attributes in LatentDirichletAllocation (#17666) 2020-06-23 14:51:52 +02:00
t-kusanagi2 195f2f4d50
DOC document all attributes in PLSRegression (#17664) 2020-06-23 14:35:02 +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
Aura Munoz ac6caa050b
fix: Reduce warnings for k_means and discriminant_analysis (#17510)
* fix: Reduce warnings for k_means and discriminant_analysis

- Reduce the number of warnings for k_means by setting n_init to 1
when proviging initialization centers
- Remove discriminant_analysis test warnings by guarding against zero
division for `predict_log_proba`
- Print `p` parameter ignore warning only when different than `None`

* add tests for warning case

* fix lint issues

* address warnings

* fix linting
2020-06-15 12:47:05 -04:00
Jake Tae 6df781b0c3
ENH Replace *args with named arguments in make_union (#17472)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: IQRA MUHAMMAD <iqra@iqra.local>
2020-06-07 13:40:10 -04:00
Lauren Oldja 1019f989de
ENH: Added keyword arguments to make_pipeline (#17477)
* kwarg make_pipeline

* update tests for make_pipeline

Co-authored-by: Lauren Oldja <laurenoldja@LaurenOldjasMBP.fios-router.home>
2020-06-06 15:25:55 -04:00
zoj613 6b68144f17
FIX Allow sparse input data for OutputCodeClassifier (#17233)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2020-05-26 14:17:34 +02:00
Nicolas Hug 7494da6f52
MNT removed deprecated files generation (#17132) 2020-05-25 17:34:17 +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
Nicolas Hug 1931e142ed
Remove deprecated utils (#17133) 2020-05-20 22:03:54 +02:00
Nicolas Hug 4f5384b249
MNT Remove class support check estimator and parametrize_with_checks (#17134) 2020-05-10 17:11:39 -04:00