Commit Graph

547 Commits

Author SHA1 Message Date
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
Joshua Newton 6d1104e332
DOC Restructure Multiclass and multilabel in User Guide (#17811) 2020-09-17 12:21:51 -04: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
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
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
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
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
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
Daniel Mohns 41d648ef88
[MRG] Add Detection Error Tradeoff (DET) curve classification metrics (#10591)
* Initial add DET curve to classification metrics

* Add DET to exports

* Fix DET-curve doctest errors

- Sample snippet in  model_evaluation documentation was outdated.

* Clarify wording in DET-curve computation

- Align to the wording of ranking module to make it consistent.
- Add correct describtion of input and outputs.
- Update and fix non-existent links

* Beautify DET curve documentation source

- Limit line length to 80 characters.

* Expand DET curve documentation

- Add an example plot to show difference between ROC and DET curves.
- Expand Usage Note section with background information and properties
of DET curves.

* Update DET-curve documentation

- Fix typos and some grammar improvements.
- Use named references to avoid potential conflicts with other sections.
- Remove unneeded references and improved existing ones by using e.g.
using versioned links.

* Select relevant DET points using slice object

* Remove some dubiety from DET curve doc-string

* Add DET curve contributors

* Add tests for DET curves

* Streamline DET test by using parametrization

* Increase verbosity of DET curve error handling

- Explicitly sanity check input before computing a DET curve.
- Add test for perfect scores.
- Adapt indentation style to match the test module.

* Add reference for DET curves in invariance test

* Add automated invariance checks for DET curves

* Resolve merge artifacts

* Make doctest happy

* Fix whitespaces for doctest

* Revert unintended whitespace changes

* Revert unintended white space changes #2

* Fix typos and grammar

* Fix white space in doc

* Streamline test code

* Remove rebase artifacts

* Fix PR link in doc

* Fix test_ranking

* Fix rebase errors

* Fix import

* Bring back newlines

- Swallowed by copy/paste

* Remove uncited ref link

* Remove matplotlib deprecation warning

* Bring back hidden reference

* Add motivation to DET example

* Fix lint

* Add citation

* Use modern matplotlib API

Co-authored-by: Jeremy Karnowski <jeremy.karnowski@gmail.com>
Co-authored-by: Julien Cornebise <julien@cornebise.com>
Co-authored-by: Daniel Mohns <daniel.mohns@zenguard.org>
2020-08-16 11:34:37 +02:00
Adrin Jalali 3a49e5f209
MNT deprecate ChangedBehaviorWarning and NonBLASDotWarning (#17804)
* deprecate ChangedBehaviorWarning and NonBLASDotWarning

* add whats_new entry
2020-07-05 22:32:08 +02:00
Ashutosh Hathidara 0ea3244061
Added mean_absolute_percentage_error in metrics fixes #10708 (#15007)
Co-authored-by: mohamed-ali <m.ali.jamaoui@gmail.com>
Co-authored-by: Alexandre Gramfort <alexandre.gramfort@m4x.org>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Joel Nothman <joel.nothman@gmail.com>
Co-authored-by: Roman Yurchak <rth.yurchak@pm.me>
2020-07-04 13:24:20 +02:00
Nicolas Hug a1cc566605
DOC Updated deprecation section in classes.rst (#17296) 2020-05-22 10:05:46 -04:00
Thomas J Fan 60de458095
DOC Removes uneeded __init__ in API documentation (#17243) 2020-05-18 12:40:51 +02:00
Thomas J Fan ee2508ce45
ENH Adds HTML visualizations for estimators (#14180) 2020-04-30 08:31:58 +10:00
Kevin Markham 2d25ea74fe
DOC Add link to User Guide from Pipeline section (#16829) 2020-04-02 10:56:14 -07:00
Roman Yurchak 69ea066412
ENH Minimal Generalized linear models implementation (L2 + lbfgs) (#14300)
Co-authored-by: Christian Lorentzen <lorentzen.ch@googlemail.com>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Nicolas Hug <contact@nicolas-hug.com>
2020-03-04 14:08:24 +01:00
Arie Pratama Sutiono c2e742c48c
API Deprecates the fit_grid_point function (#16401) 2020-02-13 22:07:06 -05:00
Adrin Jalali 2821abc76c
DOC add Bunch to public docs and API (#16404)
* add Bunch to public docs and API

* address Thomas's suggestions

* use Thomas's description
2020-02-11 15:46:27 +01:00
trimeta 856d273b9d FIX Expose SelectorMixin through sklearn/feature_selection/ (#16132) 2020-01-17 15:37:26 +01:00
Nicolas Hug ad80d3159a DEP Remove deprecated joblib tools in utils (#15792) 2019-12-06 13:59:46 +01:00
Nicolas Hug 70ae89ecb2 MNT Removed deprecated metrics (#15794) 2019-12-05 10:49:00 -05:00
Nicolas Hug 5573abbb99 MNT Removed deprecated logistic_regression_path (#15791) 2019-12-04 12:24:10 -05:00
Nicolas Hug 4cdbde3085 MNT remove deprecated ensemble.partial_dependence (#15789) 2019-12-04 12:22:56 -05:00
Thomas J Fan e650a207ef ENH Adds plot_confusion matrix (#15083) 2019-11-14 14:43:54 +01:00
Thomas J Fan 968252dfb4 FEA Adds plot_precision_recall_curve (#14936) 2019-11-10 20:54:35 -06:00
Thomas J Fan 37ac3fd125 FEA Add make_column_selector for ColumnTransformer (#12371) 2019-11-05 09:22:26 -05:00
Nicolas Hug b92455a6b2 MAINT Deprecate all of utils.testing except all_estimators (#15367) 2019-10-28 17:28:56 +01:00
Chiara Marmo 728108383e Remove 'cholesky_delete' from toc (fix sphinx autodoc warning). (#15343) 2019-10-24 15:55:12 +02:00
Thomas J Fan 32e9911c99 MNT Fix uncaught deprecation imports (#15348) 2019-10-24 09:31:55 +11:00
Thomas J Fan bc19954d28 API MNT Exposes trustworthiness in top level module which was deprecated/removed by mistake (#15337) 2019-10-23 16:59:18 +02:00
Thomas J Fan 5e7e631ce6 DOC Moves cluster.bicluster into cluster in API ref (#15295) 2019-10-18 14:01:14 -04:00
Nicolas Hug 6a8b3d4c4b DOC reorganize API Ref of linear models (#15115) 2019-10-08 16:57:43 +02:00
Nicolas Hug 96c988cdde
MNT Make safe_indexing private (#15104) 2019-10-02 11:47:46 -04:00
Tim Bicker 4e9f97dba5 FEA Add Categorical Naive Bayes (#12569) 2019-09-24 07:38:22 +10:00
Thomas J Fan 97185ecd3e FEA Adds Plotting API to Partial Dependence (#14646) 2019-09-20 11:03:00 +02:00
Guillaume Lemaitre bab5926024 FEA: Stacking estimator for classification and regression (#11047) 2019-09-19 06:06:33 +10:00
Tom Dupré la Tour e52e9c8d75 FEA Generalize the use of precomputed sparse distance matr… (#10482) 2019-09-18 14:32:59 -04:00
Thomas J Fan 2d1b9e3513 FEA Adds KNNImputer (#12852) 2019-09-04 09:08:59 +10:00
Thomas J Fan d9a12aa0a9 ENH Disassemble check estimator (#14381) 2019-08-28 09:07:28 +03:00
Andreas Mueller 97a4d01e5f DOC add dcg_score and ndcg_score to api reference (#14659) 2019-08-15 11:50:15 +08:00
Hanmin Qin 3be7110d26 DOC Alphabetic order in classes.rst 2019-08-09 17:31:45 +08:00
Hanmin Qin 4b1a80e0bb DOC Some updates for new plotting API (#14598) 2019-08-07 21:37:28 -04:00
Thomas J Fan db79e2db42 FEA Plotting API starting with ROC curve (#14357) 2019-08-08 08:28:17 +08:00
Christian Lorentzen 89da7f71a6 ENH Add Poisson, Gamma and Tweedie deviances to regression metrics (#14263)
* ENH add new metric Tweedie deviance

* More improvements

* A few more fixes

* Fix doctest

* Review comments

* Add common metric tests

* Add what's new entry

* Fix symmetry check in metrics common tests

* Fix test order determinism

* Rename metric to mean_tweedie_deviance

* Address review comments

* Fix test_score_objects.py tests

* Add Poisson and Gamma deviances

* Fix doc link

* Fix typo on what's new

* Fix rst rendering
2019-07-19 17:45:00 +02:00
Thomas J Fan d1c52f402c [MRG] Adds Permutation Importance (#13146)
* ENH Adds files

* ENH Adds permutation importance

* RFC Better names

* STY Flake8

* ENH: Adds inspect module

* DOC Adds pre_dispatch

* DOC Adds permutation importance example

* Trigger CI

* BLD Adds inspect to configuration

* RFC Update to only inspect fitted model

* RFC Removes parameters

* ENH: Adds pandas support

* STY Flake8

* DOC Adds new permutation importance example

* ENH Renames module to model_inspection

* DOC Fix links

* DOC Fixes image link

* DOC Fixes image link

* DOC Spelling

* DOC

* TST Fix keyword

* Rework RF Imp vs Perm Imp example (#4)

* WIP

* WIP

* WIP

* DOC Adds multcollinear features example

* WIP

* DOC: Clean up docs

* TST Adds tests for strings

* STY Indent correction

* WIP

* ENH Uses check_X_y

* TST Adds test with strings

* STY Fix

* TST Adds column transformer to test

* CLN Address comments

* CLN Removes import

* TST Adds test with nan

* CLN Removes import

* ENH Parallel

* DOC comments

* ENH Better handling of pandas

* ENH Clear checking of pandas dataframe

* STY Formatting

* ENH Copies in parallel helper

* DOC Adds comments

* BUG Fix copying

* BUG Fix for pandas

* BUG Fix for pandas

* REV

* BLD Trigger CI

* BUG Fix

* BUG Fix

* TST Does this work

* BUG Fixes test

* BUG Fixes test

* BUG Fix

* BUG Fix

* BUG Fix

* STY Fix

* TST Fix

* TST Fix segfault

* CLN Address comments

* CLN Address comments

* ENH Returns a bunch

* STY Flake8

* CLN Renames bunch key

* DOC Updates api

* DOC Updates api

* TST Adds permutation test with linear_regression

* DOC update

* DOC Fix label cutoff

* CLN Address comments

* TST Adds test for random_state effect

* DOC Adds permutation importance

* DOC Adds ogrisel suggestion

* DOC Address guillaumes comments

* DOC Address andreas comments

* DOC Update
2019-07-17 13:16:00 -04:00
Hanmin Qin 91819d5827 DOC Follow alphabetic order in classes.rst (#14254) 2019-07-05 11:04:20 +02:00
Greg Mogavero 6ab8c86c38 [MRG] DOC DOC sklearn.manifold.t_sne.trustworthiness added to classes.rst (#9747) 2019-06-16 14:40:05 +02:00
Guillaume Lemaitre af4247b152 DEP remove utilities related to mldata (#13798) 2019-05-21 18:37:09 +10:00
Thomas J Fan 17a253b0c7 DOC Fix reference in whats new 0.21 (#13845) 2019-05-10 08:52:36 +10:00