Commit Graph

3212 Commits

Author SHA1 Message Date
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
Lucy Liu 75c76ae488
DOC Add links, update plot_all_scaling (#17340) 2020-05-26 10:37:24 +02:00
Venkatachalam N 0c84afa544
DOC Rename features in highlight of feature importance (#17331) 2020-05-25 18:01:45 +02:00
Lucy Liu 0deaa3b4e1
DOC Amend plot_digits_classification.py to use notebook style (#17016) 2020-05-20 16:09:59 +02:00
Lucy Liu b4db36d337
DOC Update plot_mahalanobis_distances to notebook style (#17089) 2020-05-20 14:49:01 +02:00
Thomas J Fan e770715c43
MNT Completes position arg deprecation (#17272)
* ENH Adds public functions with position args warning

* BUG Circlar import

* STY

* BUG Add keywords

* BUG Fixes warnings

* ENH Adds other public functions

* CLN Suggestion

* CLN Suggestion

* REV Revert pairwise

* ENH Positoinal args for compute_class_weight
2020-05-19 09:07:25 +02:00
Lucy Liu d46663c481
DOC Update/clarify plot_unveil_tree_structure.py (#16942) 2020-05-19 08:58:46 +02:00
Christian Lorentzen 79b0943de0
DOC avoid FutureWarnings for deprecations examples (#17264)
* MNT keyword only in examples

* MNT pandas 1.0.0 deprectation

See pandas-dev/pandas#23566

* MNT new keyword in 0.23
2020-05-18 18:35:12 +02:00
maikia 1986c89a12
DOC exchange Boston for Diabetes at plot model complexity influence (#16533) 2020-05-18 15:30:23 +02:00
Lucy Liu a49752375d
DOC Update plot_column_transformer to notebook style (#17028) 2020-05-17 11:03:56 -04:00
Sergio b70472bd24
DOC correct estimator name in example (#17239) 2020-05-16 18:07:33 -04:00
Olivier Grisel 9d677b56f4
DOC Fix and extend mixed dtype column transformer example (#17088) 2020-05-16 17:11:02 -04:00
Lucy Liu 78a213b42c
DOC use Ames housing for transformed_target example (#16741) 2020-05-14 11:55:48 +02:00
Nicolas Hug 4f5384b249
MNT Remove class support check estimator and parametrize_with_checks (#17134) 2020-05-10 17:11:39 -04:00
Lucy Liu 0d29d2e11d
DOC Fix links and clarify plot_random_dataset.py (#17150) 2020-05-08 19:15:10 -04:00
Nicolas Hug ad6fc80425
DOC fix indentation in cv parameter description (#17161) 2020-05-08 16:03:43 -04:00