Commit Graph

6610 Commits

Author SHA1 Message Date
Guillaume Lemaitre 73732e5a0b
TST Add sample order invariance to estimator_checks (#18570) 2020-10-08 15:02:09 +02:00
Xethan cdff9b0b49
MNT Avoid nonlinear complexity for repr of nested estimators when print_c… (#18508)
* Avoid nonlinear complexity for repr of nested estimators when print_changed_only=True

* Automatically consider parameters with no default value as changed

* Use helper function for improved readability

* Add a non-regression test and a release note entry

Co-authored-by: nathan <nathan@sancare.fr>
2020-10-08 14:48:58 +02:00
Lucy Liu 18a4841667
DOC Add common pitfalls: data leakage (#18426)
* Add common pitfalls on data leakage (#18426)
2020-10-08 08:42:37 +02:00
Thomas J. Fan 02fa8f1adb
ENH Deprecates _pairwise attribute and adds pairwise to estimator tags (#18143) 2020-10-07 21:53:36 +11:00
Maria Telenczuk 64697c665f
MRG Sample weight for StandardScaler (#18510) 2020-10-07 10:10:30 +02:00
Nicolas Hug e2583d45f7
DOC put back original anchor to avoid breaking links (#18551) 2020-10-06 23:45:16 -04:00
Albert Villanova del Moral 58451568d3
FIX TruncatedSVD.fit_transform returns the same as fit.transform (#18528)
Co-authored-by: zhengruifeng <ruifengz@foxmail.com>
2020-10-06 22:47:10 +02:00
Maria Telenczuk 0e854befc7
DOC update link to shuffle_split in older_versions.rst (#18544) 2020-10-06 11:12:04 -04:00
Albert Villanova del Moral 7e545e1724
DOC Fix versionadded for 0.23 (#18522) 2020-10-05 10:23:32 +11:00
Trevor Waite 2538489f4a
[MRG] Nearest Centroid Divide by Zero Fix (#18370)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2020-10-02 13:40:03 +02: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
Umberto Lupo 7ed9721935
DOC Adds giotto-tda to "Related projects" (#18427)
Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>
2020-09-29 17:32:30 -04:00
Nicolas Hug df61e9ed98
FIX accept uint8 X in hist-gbdt.predict (#18410)
* fixed dtype issue

* whatsnew

* dont pass lists
2020-09-26 09:55:35 +02:00
Albert Villanova del Moral 547ed6b182
DOC Improve links in cross_validation's user guide (#18379) 2020-09-24 11:19:09 -04:00
Chiara Marmo 54ce422269
DOC revamp model persistence documentation (#18046)
Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>
2020-09-23 22:54:27 +10:00
Nicolas Hug 4aada4e5fd
ENH Support unknown_value=np.nan in OrdinalEncoder (#18406) 2020-09-23 12:57:31 +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
watchtheblur d01014c319
DOC Fix step 5 under "Contributing Code" to include build tools installation (#18417)
Co-authored-by: Nicolas Hug <contact@nicolas-hug.com>
2020-09-21 13:52:31 +02:00
Joshua Newton 6d1104e332
DOC Restructure Multiclass and multilabel in User Guide (#17811) 2020-09-17 12:21:51 -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
Tom Dupré la Tour ab3dc9fdf3 DOC add new triage team members 2020-09-16 10:41:45 -06:00
Juan Carlos Alfaro Jiménez 2b79665b90
DOC Add enable_successive_halving module to the API Reference (#18402) 2020-09-15 15:08:14 -04:00
Rahul Jakhar 19eb458567
DOC Update doc for LinearSVC and supported loss with l1 penalty (#18362)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2020-09-13 16:55:58 -04:00
Norbert Preining d2cd254041
FIX MLPClassifier not iterating to max_iter if warm started (#18269)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2020-09-10 10:14:17 -04:00
Thomas J. Fan fd1ff73c64
DOC Updates donation link on website (#18346) 2020-09-09 14:16:15 -07: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
Guillaume Lemaitre 21569e719c
TST Common test preserve dtype (#18054)
Co-authored-by: Sebastian Kießling <sebkies@gmail.com>
Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>
2020-09-08 10:13:53 +02:00
Juan Carlos Alfaro Jiménez 5f0a89fd97
DOC Nitpicks in the API Reference (#18356) 2020-09-07 10:26:58 -04:00
Juan Carlos Alfaro Jiménez ec02cc989e
DOC Remove signature from base and mixin classes in API Reference (#18344) 2020-09-07 10:44:56 +02:00
Juan Carlos Alfaro Jiménez 92e74700b3
DOC Add icc-build commit message marker to documentation (#18342) 2020-09-04 14:03:33 -04:00
Chiara Marmo 5a73abc3e9
DOC update documentation regarding the scikit-learn triage team (#18204)
Co-authored-by: Lucy Liu <jliu176@gmail.com>
2020-09-04 17:02:16 +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
Nicolas Hug 4a2de5b864
[MRG] MNT Initialize histograms in parallel and don't call np.zero in Hist-GBDT (#18341) 2020-09-04 15:48:39 +02:00
Madhura Jayaratne 4de0f97aa3
DEP deprecate "mae" criterion in GadientBoosting estimators (#18326) 2020-09-04 11:17:39 +02:00
Olivier Grisel e325f16d6a
ENH Break cyclic references in Histogram GBRT (#18334)
Co-authored-by: Nicolas Hug <contact@nicolas-hug.com>
2020-09-03 15:47:25 -04:00
Albert Villanova del Moral 31c742713e
DOC Fix docstring following numpydoc validation (#18322) 2020-09-03 16:13:11 +02:00
Albert Villanova del Moral 875d32fe55
DOC Fix versionadded/versionchanged for 0.24 (#18312) 2020-09-01 10:51:01 +02:00
Guillaume Lemaitre 80c0a29382
DOC improve the ROC-AUC docstring (#18110)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2020-09-01 10:49:20 +02:00
Roman Yurchak ac8760d089
MNT Use mypy --allow-redefinition + config (#18313) 2020-08-31 19:03:38 -04:00
Guillaume Lemaitre 8bab999e2e
ENH add parameter as_frame in fetch_kddcup99 (#18280)
Co-authored-by: aliang <aliang@air>
2020-08-31 13:45:48 -04:00
Nicolas Hug 8061aace11
FIX DOC MNT Big revamp of cross-decomposition module (#17095) 2020-08-31 12:38:39 -04:00
Guillaume Lemaitre 9007dc237c
DOC improve documentation of get/set params (#18285)
Co-authored-by: Juan Carlos Alfaro Jiménez <JuanCarlos.Alfaro@uclm.es>
2020-08-31 12:05:53 -04:00
Albert Villanova del Moral b93e03ab04
DOC fix hyperlink in whats new 0.19 (#18303) 2020-08-31 11:43:39 +02:00
subrat93 192c2333fe
ENH Raises warning when getting non-finite score in SearchCV (#18266)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2020-08-29 10:34:02 -04:00
Chiara Marmo bebb6d2255
DOC Tutorial structure and layout (#18261)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2020-08-29 10:32:33 -04:00
Guillaume Lemaitre e030010c6c
ENH Adds plot_det_curve and associated display (#18176)
Co-authored-by: Christian Lorentzen <lorentzen.ch@gmail.com>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2020-08-28 22:36:52 -04:00
Thomas J. Fan 576775d6d1
FIX Correctly sets MDS pairwise attribute (#18278) 2020-08-28 12:26:08 +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
alexshacked 0111511ea3
FIX Raise proper error for sparse dataframe with mixed dtypes (#17992)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2020-08-25 13:54:05 -04:00
david-cortes f1fe837806
ENH Do not pass random_state to estimator in IterativeImputer (#15636) 2020-08-25 11:40:11 -04:00