Commit Graph

3227 Commits

Author SHA1 Message Date
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
Chiara Marmo 2b303b12e6
DOC Fix mpl in plot_partial_dependence_visualization_api (#18109) 2020-08-06 15:04:00 -04: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
Lucy Liu e087f8a395
DOC Update plot_permutation_test_for_classification.py (#17385) 2020-07-31 11:34:15 +02:00
Guillaume Lemaitre 2f6e22b398
DOC make warning more obvious in example regarding feature importance (#18024) 2020-07-30 13:19:06 +02:00
赵丰 (Zhao Feng) f0da528b92
DOC fix typo in plot_tweedie_regression_insurance_claims.py (#18026) 2020-07-29 10:56:12 -04:00
Maren Westermann 0550793bd6
FIX inconsistent hyperparameter and bounds issue in GP kernels (#17946) 2020-07-18 11:27:31 +02:00
willpeppo 36abde7eed
EXA Avoid redundant numpy imports in plot_release_highlights.py (#17903) 2020-07-11 21:15:15 +02:00
Biprateep Dey d849033fa5
MNT removed repeated definition of ranked_exposure (#17895) 2020-07-11 13:29:07 -04:00
Guillaume Lemaitre f4cd388569
EXA Improve the alphas values in MLP example (#17880)
Co-authored-by: 叶贞明 TaiChiTiger <sakyayj@126.com>
2020-07-10 12:39:37 +02:00
Thomas J. Fan 233f2ce052
DEP deprecate grid_score_ and cv_alphas_ in GraphicalLassoCV (#16392)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2020-07-09 11:14:02 +02:00
Adrin Jalali db673eb72e
DOC use conda-forge in installation guideline (#17825) 2020-07-08 16:34:45 +02:00
Jona Sassenhagen 5e193ec655
[MRG] varimax rotation for factor analysis (#11064)
* init varimax

* fix py2 and add example text

* fix print again

* test, docs

* fix test

* fix doctstring

* np.allclose for test

* add refrence

* address comments

* update

* Fix linting failure.

* Fix deprecation warning.

* a bit of cleanup

* Address @jnothman's review comments.

* Update section divider

* Add note in what's new page and versionadded to docstring.

Co-authored-by: Eric Prestat <eric.prestat@gmail.com>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2020-07-05 21:29:08 +02:00
Nicolas Hug 8611b9a9af
Fix SVs computation (#17405) 2020-07-01 12:33:31 -04:00
Juan Carlos Alfaro Jiménez 547ead6c0c
MNT More replacements of numpy aliases with built-in types (#17707)
* MNT More replacements of numpy aliases with built-in types [scipy-dev]

* MNT More (manual) replacements of numpy aliases

* MNT More (manual) replacements of numpy aliases

* FIX Minor change

* MNT Trigger build [scipy-dev]

* FIX Minor change

* MNT Trigger build [scipy-dev]

* FIX More deprecations of numpy aliases [scipy-dev]

* MNT Silent numpy aliases warnings [scipy-dev]

* FIX Fix silent deprecations

* Trigger build [scipy-dev]

* FIX Add scape characters [scipy-dev]

* FIX Remove package specification from silent

* Trigger build [scipy-dev]

* Revert
2020-06-26 12:45:03 +02:00
kishimoto acb8ac5145
[MRG] Expose interpolation thresholds as public fitted attribute of IsotonicRegression (#16289)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Thomas J Fan <thomasjpfan@gmail.com>
Co-authored-by: Nicolas Hug <contact@nicolas-hug.com>
2020-06-25 21:16:43 +02:00
Thomas J. Fan 6195a16505
DOC Removes FunctionTransformer example (#17318)
* DOC Removes FunctionTransformer example

* DOC Updates description
2020-06-25 14:27:38 +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
Hirofumi Suzuki c29092d699
MNT define a parse_version function in sklearn.utils.fixes (#17670)
Co-authored-by: Loïc Estève <loic.esteve@ymail.com>
Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>
2020-06-24 13:35:49 +02:00
Guillaume Lemaitre c8898450aa
EXA add compatibility with scipy 1.5 (#17695) 2020-06-24 12:35:30 +02:00
Venkatachalam N 96f6a830cf
EXA Add topic plots to topic modeling example (#17202) 2020-06-21 09:53:26 +10:00
Maren Westermann 4e8dc9db5c
DOC shorten links in examples/* modules (#17636)
* shorten links in examples

* fix linting errors
2020-06-20 17:43:14 +02:00
Maren Westermann 465f29f4f6
shorten links in examples-applications (#17635) 2020-06-19 13:35:32 +02:00
Juan Carlos Alfaro Jiménez c298cb771d
MNT Fix documentation build due to failure in plot_ica_vs_pca (#17629) 2020-06-18 10:22:17 +02:00
Thomas J. Fan 549514e4fd
FIX Uses f_classif instead f_regress in classification example (#17537) 2020-06-16 13:19:08 +02:00
Saurabh Jain 00bc681e10
DOC shorten class links in docstring using tilde (#17470)
* added tilde to bunch of files

* Updated _kde.py

Changed array_like to array-like

* Updated _kde.py

Removed space

* updated _kde.py

Added full stop

* PEP8

Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2020-06-16 10:44:13 +02:00
Madhura Jayaratne 45a6ef7b72
FEA Add support for Individual Conditional Expectation (ICE) plots (#16619) 2020-06-15 13:44:44 +02:00
Roman Yurchak 94f2e9c5d8
DOC simpler block delimitation in sphinx-gallery examples (#17068)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2020-06-08 23:23:14 -04:00
rachel fischoff 9ae41ab26e
changed the colors of plot_compare_cross_decompisition.py to default matplotlib (#17475) 2020-06-08 11:09:45 -04:00