Commit Graph

3255 Commits

Author SHA1 Message Date
EL-ATEIF Sara 28fa8972d3
DOC rename Birch to BIRCH in docs (#19368) 2021-02-06 09:54:47 +00:00
Guillaume Lemaitre 94b81ab2e7
DOC use diagram and simplify pipeline in stacking example (#18830)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>
2021-02-01 23:03:46 +01:00
Guillaume Lemaitre 69d6378666
EXA use pipeline in feature engineering example with RF,RT,GBDT (#18835)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2021-02-01 21:24:22 +01:00
Guillaume Lemaitre ee32699b4c
DOC use notebook style and diagram for feature selection example (#18836) 2021-01-28 11:51:11 +01:00
Ayush Singh 74f20aedff
DOC Fixed typo in a comment (#19284) 2021-01-27 09:48:24 +01:00
Christian Lorentzen 27f1c737f2
FEA Add SplineTransformer (#18368) 2021-01-24 10:53:27 +01:00
Guillaume Lemaitre 8c6a045e46
ENH/DEP add class method and deprecate plot function for confusion matrix (#18543)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: Adrin Jalali <adrin.jalali@gmail.com>
2021-01-22 19:57:41 +01:00
Abhinav Gupta a6659f885b
DOC Replacing swarmplot with stripplot to avoid seaborn warning (#19195) 2021-01-18 16:13:19 +01:00
Guillaume Lemaitre 266a11b2e1
DOC Update docs guideline regarding docstring formatting (#18243)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
2021-01-08 12:55:53 -05:00
Adam Midvidy 2d95acfe95
ENH/DOC Add additional validation for user-supplied gram matrixes (#19004) 2021-01-05 10:44:52 +01:00
yzhenman 2800878993
DOC fix dataset used for visualization in digits classification example (#19095) 2021-01-04 11:04:55 +01:00
Olivier Grisel b026c4d7c9
DOC 0.24.0 release highlights formatting (#19059) 2020-12-22 15:24:50 +01:00
Chiara Marmo e8a364b471
DOC Fix ref section of grid search stats example (#18949) 2020-12-01 09:38:00 +00:00
Chiara Marmo 76e82ba00a
DOC Release highlights for version 0.24 (#18795)
Co-authored-by: Joel Nothman <joel.nothman@gmail.com>
Co-authored-by: Nicolas Hug <contact@nicolas-hug.com>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2020-11-30 19:21:32 +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
Guillaume Lemaitre e31b21d01f
EXA use class instead of function for preprocessing in plot_kmeans_digits (#18657) 2020-11-13 11:37:50 +01:00
Gordon Walsh 11f9742992
[ENH] Create public kmeans_plusplus including index output (#17937) 2020-11-11 15:24:03 +01:00
Lucy Liu 3a5093973c
DOC Improve multiclass calibration example (#18763)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2020-11-08 10:09:52 -05:00
Martina G. Vilas 5e85a65ab6
DOC Add grid search stats example (#17432) 2020-11-06 17:39:35 +00:00
Nils Werner d619d96d55
DOC Tomography L1 reconstruction example: use dot product operator (#18722) 2020-11-02 16:39:11 +01:00
Olivier Grisel a2728ac8d4
flake8: move E402 ignore rule to setup.cfg for examples folder (#18724) 2020-11-01 22:31:57 +01:00
Guillaume Lemaitre 9358a94aa7
FIX deprecate calibrators_ in _CalibratedClassifier (#18714) 2020-11-01 19:29:43 +01:00
Guillaume Lemaitre 60945b49a5
FIX solved legend issue in PDP (#18713) 2020-11-01 19:27:45 +01:00
Juan Carlos Alfaro Jiménez e6b9917d38
MNT Move plot_scalable_poly_kernels example to kernel_approximation directory (#18656)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2020-10-30 11:21:44 +01:00
Guillaume Lemaitre b617bd96b8
FIX solve wrong indexing in plots with ICE when subsampling (#18359) 2020-10-30 09:40:49 +01: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
Joaquin Vanschoren 61feb5ea27
DOC Improved explanation of SVM-RBF behavior (#18538)
* Improved explanation of SVM-RBF behavior

The previous explanation of the results contained an incorrect interpretation. The description is updated as discussed here: https://github.com/scikit-learn/scikit-learn/issues/18532

* Making linter happy

* Update examples/svm/plot_rbf_parameters.py

Co-authored-by: Nicolas Hug <contact@nicolas-hug.com>

* Update examples/svm/plot_rbf_parameters.py

Co-authored-by: Nicolas Hug <contact@nicolas-hug.com>

* making linter happy

* whitespace

Co-authored-by: Nicolas Hug <contact@nicolas-hug.com>
2020-10-05 18:08:00 -04:00
Ghislain Antony Vaillant 9fda736543
DOC Fix typo in plot_feature_union example (#18474) 2020-09-28 16:21:03 -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 373946ec9e
DOC Fix x-axis label positions for SH iterations example (#18380)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2020-09-12 11:13:49 -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
Jonathan e9077056d2
DOC cleaned descriptive paragraph for linear regression example (#18348)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2020-09-07 10:42:52 +02:00
Bhavika Devnani 74590c8fd5
EXA Adjust the location of a comment (#18325)
Adjusting the location of the comment so it corresponds to the correct code snippet.
2020-09-02 16:04:06 +02:00
Harry Scholes ffb4feafc9
DOC fix missing space in example (#18321) 2020-09-02 11:18:44 +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
Maren Westermann 19c8b1933b
DOC shorten links in plot_partial_dependence.py (#18273) 2020-08-27 08:10:37 -04:00
Oleh Kozynets d873ed152a
DOC Fix docstring in examples (#18251)
Co-authored-by: Oleh Kozynets <olehkss@github.com>
2020-08-26 10:07:02 +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
Vinicius Rios Fuck ef3937bb98
DOC Add legend and axis label in nearest neighbors example (#18164)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2020-08-21 19:20:01 +02:00
eschibli bf121f4cec
DOC Added explicit min_features variable to RFECV example (#18091)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2020-08-20 15:44:36 +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
Thomas J. Fan f286e27798
DOC Fixes failing examples (#18180) 2020-08-18 08:52:41 +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
Nicolas Hug 25487f22d6
DOC Add example comparing PCR and PLS (#17151) 2020-08-11 14:46:33 -07:00
Thomas S Benjamin 61ce18fcb7
DOC Fixes hard coded title in gmm selection example plot (#17418)
Co-authored-by: Thomas S. Benjamin <tbenjamin@vencorelabs.com>
Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>
2020-08-07 21:10:32 +02:00
Kartik Chugh e63bf0ca39
EXA Improves contour boundaries for K-Nearest Neighbors (#17580) 2020-08-07 12:17:24 +02:00