Commit Graph

3127 Commits

Author SHA1 Message Date
Eric Fiegel 6420b8b502
DOC min_sample_split does not take sample_weight into account (#18897) 2020-11-23 15:28:50 +00:00
Patrice Becker 2f6af711b0
FEA Add Self Training Estimator (#11682)
Co-authored-by: Oliver Rausch <oliverrausch@users.noreply.github.com>
Co-authored-by: Patrice Becker <patricelbecker@gmail.com>
Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>
2020-11-20 19:49:08 +01:00
Thomas J. Fan b4453f126f
ENH Add Categorical support for HistGradientBoosting (#18394)
Co-authored-by: Nicolas Hug <contact@nicolas-hug.com>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Olivier Grisel <olivier.grisel@gmail.com>
2020-11-16 23:10:12 +01:00
Gordon Walsh 11f9742992
[ENH] Create public kmeans_plusplus including index output (#17937) 2020-11-11 15:24:03 +01:00
Kiril Isakov 35b3195958
DOC add link to stratification UG for train_test_split (#18735) 2020-11-10 16:11:05 +00:00
Ankit Choraria 020479a26e
DOC fix user guide for LabelPropagation and LabelSpreading regarding task supported (#18794) 2020-11-10 14:41:23 +01:00
Martina G. Vilas 5e85a65ab6
DOC Add grid search stats example (#17432) 2020-11-06 17:39:35 +00:00
Chiara Marmo 9a0bc639a6
DOC Fix changelog rendering and undefined label sphinx warning (#18772) 2020-11-06 12:16:43 +00:00
Declan O'Neill 7386948d38
DOC typo in linear_model.rst (#18770) 2020-11-06 08:12:02 +00:00
Christian Lorentzen de59efe7cb
[MRG] ENH add Poisson splitting criterion for single trees (#17386) 2020-11-02 16:32:29 +01:00
Lucy Liu 8471c8389d
ENH Add libsvm-like calibration procedure to CalibratedClassifierCV (#17856)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2020-10-29 18:50:49 +01:00
ufmayer 662cc647d9
FEA Add Rand Index and pair confusion matrix (#17412)
Co-authored-by: Chiara Marmo <cmarmo@users.noreply.github.com>
2020-10-28 14:28:11 +01:00
Nicolas Hug dccaf4c867
DOC Good practices and pitfalls for random_state (#18363) 2020-10-27 11:36:55 -04:00
Oleh Kozynets 160debe468
DOC remove mentions of preprocessing functions in the user guide (#18327) 2020-10-20 18:20:48 +02:00
Geoffrey Bolmier 5654da026b
FEA Top k accuracy metric (#16625)
Co-authored-by: Nicolas Hug <contact@nicolas-hug.com>
Co-authored-by: Jeremiah Johnson <jwjohnson314@gmail.com>
Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>
2020-10-16 16:51:41 +02:00
Agamemnon Krasoulis 8e527294ca
DOC Probability calibration - Syntax fix (#18625) 2020-10-15 08:11:53 -04:00
Sam 858fa806ec
DOC Fix parameter order in model_evaluation.rst (#18602) 2020-10-12 13:19:52 +02:00
Thomas J. Fan eeddc17a85
ENH Adds missing value support to OneHotEncoder (#17317)
OneHotEncoder supports categorical features with missing values by
considering the missing values as an additional category.
2020-10-09 08:38:33 +02:00
Thomas J. Fan 3b334c5b25
MNT Uses enable_halving_search_cv instead (#18563) 2020-10-09 07:49:20 +11: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
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 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
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
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
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
Albert Villanova del Moral 647fcb1ac1
DOC Fix A to uppercase in See Also docstring section (#18332) 2020-09-04 10:35:01 -04: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
Nicolas Hug 8061aace11
FIX DOC MNT Big revamp of cross-decomposition module (#17095) 2020-08-31 12:38:39 -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
Oleh Kozynets b50a29b616
DOC Fix docs for clustering.rst following doc guideline (#18230)
Co-authored-by: Oleh Kozynets <olehkss@github.com>
2020-08-23 09:27:26 +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
Maren Westermann 70e1558607
DOC shorten links in doc/* modules (#17820)
* shorten links in doc modules

* fix links

* implement suggested changes

* try to fix links with tilde sign

* change back broken links in computing.rst and try make link in faq.rst work

* implement reviewer's suggested changes
2020-08-21 14:31:41 +02:00
Juan Carlos Alfaro Jiménez 395d6c171f
DOC/FIX Remove toctree from autosummary directives outside of the API (#17358) 2020-08-19 14:35:46 +02:00
Guillaume Lemaitre bf4714f401
ENH follow-up style improvements of DET curves #10591 (#18169)
* follow-up on #10591 

* DOC improvements

* TST add additional test for pos_label

Co-authored-by: Christian Lorentzen <lorentzen.ch@gmail.com>
2020-08-19 12:39:56 +02:00
Sunitha Selvan ae7667ce22
DOC mention LOOCV instead of GCV in RidgeCV (#18154) 2020-08-18 11:32:21 +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
Christian Lorentzen e0abd262ea
DOC improve model evaluation a bit (#18166) 2020-08-17 07:55:57 -04: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
rauwuckl eb7b15817e
DOC clarify the kernel gradient for GaussianProcesses (#18115) 2020-08-16 09:54:18 +10: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 854f649307
DOC Expand Brier score, fix docstring (#18051)
* fix brier

* fix brier

* add ref

* add ref for lint

* Add link to PDF for calibration book chapter.

* Fix broken repeated ref by using qualified identifier

* Fix indentation

Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2020-08-13 19:25:01 -04:00
Nicolas Hug 25487f22d6
DOC Add example comparing PCR and PLS (#17151) 2020-08-11 14:46:33 -07:00
Bharat Raghunathan 54e85ffaba
DOC Correction in empirical covariance (#17587) 2020-08-07 14:00:00 +02:00
Bharat Raghunathan f734e11a53
ENH: Add regularization to the main NMF class (#17414)
* ENH: Add regularization to the main NMF class

* Update _nmf with suggestions from code review

Update `_nmf.py` with suggestion from review

Co-authored-by: Adrin Jalali <adrin.jalali@gmail.com>

* Refactor tests, fix linter errors

* Change default value to None

* Revert back to default value of "both"

* Update default value documentation acc to @thomasjpfan

Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>

* CLN Places regularization at the end

* Add whatsnew entry

* DOC Fix

* DOC Fix

Co-authored-by: Adrin Jalali <adrin.jalali@gmail.com>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2020-08-06 12:04:17 -07:00
Chiara Marmo 075d424568
FEA Add Nonnegative LinearRegression (#17578)
Co-authored-by: Nicolas Hug <contact@nicolas-hug.com>
Co-authored-by: Joseph Knox <jknox13@uw.edu>
Co-authored-by: Joseph Knox <joseph.edward.knox@gmail.com>
2020-08-06 08:30:24 -04:00