Commit Graph

135 Commits

Author SHA1 Message Date
Udit Gupta 89465e09cf
Improved display of function docstring (#21247) 2022-03-13 01:59:32 +01:00
Ross Barnowski 24106c2149
DOC Fix incorrect heading underline length in docstrings (#22278) 2022-01-24 09:58:33 -05:00
Mandy Gu 379919dc59
ENH Add optional parameter to return raw data for diabetes dataset (#16605)
Co-authored-by: happilyeverafter95 <mgu@wealthsimple.com>
Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2021-12-17 11:33:18 +01:00
Fortune Uwha 5672310409
[MRG]DOC Ensures that cross_val_score passes numpydoc validation (#21464)
Co-authored-by: Fortune Oluchi Uwha <fou@synoint.com>
2021-10-26 18:34:00 +02:00
iofall 92544c73d7
Fix numpydoc format for sklearn.model_selection._validation.numpydoc_validation_cross_val_predict (#21433)
Co-authored-by: iofall <50991099+iofall@users.noreply.github.com>

Co-authored-by: arisayosh <15692997+arisayosh@users.noreply.github.com>
2021-10-23 20:04:16 +02:00
Loïc Estève 93bc20f7eb
Raise an error when all fits fail in cross-validation or grid-search (#21026) 2021-10-05 16:42:51 +02:00
genvalen 642127806a
DOC use backticks for n_samples and n_features in X docstring (#20914) 2021-09-02 13:35:03 +02:00
Loïc Estève 7317416193
Warn in the main process when a fit fails during a cross-validation (#20619)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2021-08-10 16:31:26 +02:00
Michal Karbownik 39f37bb63d
DOC make docstring consistent regarding None in metrics (#19718)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2021-07-27 14:05:47 +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
Thomas J. Fan 9a13bdfaf1
MNT Adds black config and fixes formatting before black (#19031)
Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>
Co-authored-by: Christian Lorentzen <lorentzen.ch@gmail.com>
2021-06-12 17:14:09 +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
Alihan Zihna 734ae1f2df
DOC add explicit message regarding shuffling in default CV (#19776)
Co-authored-by: Alihan Zihna <a.zihna@ckhgbdp.onmicrosoft.com>
2021-04-09 10:37:15 +02:00
guiweber 81102146e3
DOC Fixed typo in cross_val_predict docstring (#19739) 2021-03-21 15:06:12 -04:00
Thomas J. Fan 6f180d79f5
BUG Fixes verbose > 2 for grid search (#19659) 2021-03-11 18:34:04 +01:00
Ashish 70c6ac9d04
DOC Fixed typos in documentation (#19511) 2021-02-20 12:01:19 -05:00
Atsushi Nukariya b5e55f79fd
TST replace assert_warns* by pytest.warns in model_selection/tests (#19458) 2021-02-19 11:44:09 +01:00
Guillaume Lemaitre e4ae68f09a
DOC add info regarding support of dict of multimetric scores (#19205)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2021-01-19 17:53:22 -05:00
Amanda Dsouza 1e386a49fc
ENH Add support for 'fit_params' to learning_curve (#18595)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2020-10-14 12:25:58 -04:00
Amanda Dsouza 8091fafd70
[MRG] Fit params support for permutation_test_score and validation_curve (#18527) 2020-10-14 14:17:56 +02:00
Guillaume Lemaitre 7dcb1ac560
FIX allow to output error_score if a scoring failure happen (#18343)
Co-authored-by: Devi Sandeep Endluri <dsandeep97@tamu.edu>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2020-10-09 15:12:57 +02:00
Ankit Choraria 9120be9d65
DOC remove irrelevant parts in _validation.py (#18548) 2020-10-07 08:15:40 -04:00
Nicolas Hug 521b3f289a
MNT Minor refactoring _fit_and_predict (#18471) 2020-09-30 12:35:46 +02:00
Frans Larsson c7d29e31bf
DOC Fix default values in _validation.py (#18337)
Co-authored-by: Juan Carlos Alfaro Jiménez <JuanCarlos.Alfaro@uclm.es>
2020-09-24 11:20:53 -04: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
Alex Itkes 8b68ea165c
DOC specify default of error_score in cross_validate (#14488) 2020-09-18 15:43:52 -04: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
Frans Larsson c6579afdc4
DOC add None as valid option to random_state in model_selection module (#18232) 2020-08-22 17:32:36 +02:00
Lucy Liu 018de22323
DOC Add user guide for permutation_test_score (#18055)
* wip

* add user guide

* fix link to ex

* suggestion

* suggestions
2020-08-13 19:34:55 -04:00
Lucy Liu 793f974e26
DOC Add doc for permutation_test_score (#17373) 2020-07-31 09:42:36 +02:00
Lucy Liu d3a3d214fc
DOC Fix return docstring cross_val_predict (#18035) 2020-07-30 10:46:56 -07:00
Thomas J. Fan 9acfaab966
ENH Adds support for multimetric callable return a dictionary (#15126) 2020-07-16 17:55:40 +02:00
Lucy Liu 4746e2117a
DOC Clarify return of cross_val_predict (#17851) 2020-07-12 17:07:24 -04:00
Thomas J. Fan 88b1fa6f0e
MNT Small refactor for cross_validate (#17867) 2020-07-09 14:00:27 +10:00
Christos Aridas ffbb1b4a0b
MNT Collapse an unnecessary enclosed if statement (#17766)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2020-07-02 08:16:56 -04:00
Juan Carlos Alfaro Jiménez 0e33229351
FIX Extract estimator objects before aggregating dict of scores (#17745)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2020-06-26 21:15:41 -04:00
Thomas J. Fan 67bf1e78f5
ENH _fit_and_score now returns a dictionary (#17332)
* ENH _fit_and_score now returns a dictionary

* MRG

* REV

* LOL

* Removing things in gitignore is fun
2020-06-26 12:38:12 +02:00
Hirofumi Suzuki c95ed757b4
DOC add explanation of n_jobs in sklearn/model_selection/_validation.py (#17717) 2020-06-25 14:25:16 +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
Chiara Marmo fc0d2c3210
[MRG] ENH Show split/candidate ids in verbose output of SearchCV (#16935) 2020-06-19 11:26:58 +02: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
Stephen Marsh 361bf75544
DOC Fix link to user guide (#16989) 2020-04-24 09:25:39 -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
stareh daec09e6b4
DOC added the link for the reference in permutation_test_score (#16202)
* added the link for an open pdf of the article

* Address comment

Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>
2020-02-03 13:59:27 +01:00
rachelcjordan 5c9957764a DOC improve random state docstring in the _validation module (#16231) 2020-01-26 20:29:11 +01:00
indecisiveuser f6a19a7e8d DOC Format docstrings in validation module (#16134) 2020-01-22 06:22:57 -05:00
Qizhi Jiang e3ee768a0c DOC Docstring improvements to confusion_matrix and splitters (#16072) 2020-01-11 18:42:10 +01:00
Adrin Jalali 46001e7cfb FIX support scalar values in fit_params in SearchCV (#15863)
* support a scalar fit param

* pep8

* TST add test for desired behavior

* FIX introduce _check_fit_params to validate parameters

* DOC update whats new

* TST tests both grid-search and randomize-search

* PEP8

* DOC revert unecessary change

* TST add test for _check_fit_params

* olivier comments

* TST fixes

* DOC whats new

* DOC whats new

* TST revert type of error

* add olivier suggestions

* address olivier comments

* address thomas comments

* PEP8

* comments olivier

* TST fix test by passing X

* avoid to call twice tocsr

* add case column/row sparse in check_fit_param

* provide optional indices

* TST check content when indexing params

* PEP8

* TST update tests to check identity

* stupid fix

* use a distribution in RandomizedSearchCV

* MNT add lightgbm to one of the CI build

* move to another build

* do not install dependencies lightgbm

* MNT comments on the CI setup

* address some comments

* Test fit_params compat without dependency on lightgbm

Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2019-12-31 13:02:45 +01:00