Commit Graph

3288 Commits

Author SHA1 Message Date
Guillaume Lemaitre 1eece2cec8
DOC add image denoising kPCA example (#20248)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2021-06-29 18:14:50 +02:00
Paweł Olszewski c3a3b1e602
EXA Fix issue in Statistical comparison of models using grid search (#19966) 2021-06-21 21:46:33 +02:00
geroldcsendes bdf79d53a8
DOC Fix color palette in manifold example (#19517) 2021-06-19 10:18:30 +02:00
Thomas J. Fan 81dde3a6e5
STY Ensures that "flake8 ." works (#20298) 2021-06-18 15:46:40 +02:00
Ishaan Bhat 9e30508e48
EXA Fix dist matrix in permutation_importance_multicollinear.py (#20239)
Transforming correlation matrix to distance matrix before performing hierarchical clustering
2021-06-18 14:00:01 +02:00
Maria Telenczuk 8a63ec40e4
MRG: Deprecate normalize in least_angle models (#17769)
Co-authored-by: Alexandre Gramfort <alexandre.gramfort@m4x.org>
2021-06-18 13:54:46 +02:00
Maria Telenczuk dc2b5875d0
DEP deprecates 'normalize' in _omp.py (#17750)
Co-authored-by: Alexandre Gramfort <alexandre.gramfort@m4x.org>
2021-06-17 23:24:40 +02:00
Thomas J. Fan d44c7ae8eb
EXA Set random_state=0 in AffinityPropagation example (#19507)
to prevent warning

Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>
2021-06-17 20:58:25 +02:00
Tommaso Di Noto f697181706
MNT Remove unused line in example (#20273) 2021-06-15 11:42:21 -07:00
Olivier Grisel 56f4b83627
Fix number of splines in legend of example plot (#20142) 2021-06-01 10:33:08 +02:00
Alihan Zihna deda6e2a5a
EXA improve example of forest feature importances digits (#19429)
Co-authored-by: Alihan Zihna <a.zihna@ckhgbdp.onmicrosoft.com>
Co-authored-by: Christian Lorentzen <lorentzen.ch@gmail.com>
2021-05-28 16:31:18 -04:00
kobaski 495ff48a7c
[MRG] resolve ambiguity of the nested cross-val example (#20148)
* resolve ambiguity of the nested cross-val example

* Update examples/model_selection/plot_nested_cross_validation_iris.py

make it more explict

Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>

Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2021-05-27 23:43:13 +10:00
Guillaume Lemaitre 7c212a2966
EXA improve the example for QuantileRegressor (#20133) 2021-05-26 16:18:15 +02:00
David Dale c1cc67dd06
FEA Add QuantileRegressor estimator (#9978)
Co-authored-by: David Dale <ddale@yandex-team.ru>
Co-authored-by: Christian Lorentzen <lorentzen.ch@gmail.com>
2021-05-25 14:02:37 +02:00
yoch c67518350f
DOC use reshape instead of manually reshaping in plot_color_quantization (#19960) 2021-05-20 10:27:08 -04:00
Tom Dupré la Tour f6e6ad2d9e
MNT clean futurewarning for 1.0 | _deprecate_positional_args (#20002)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2021-05-14 11:30:27 -04:00
Maria Telenczuk a9cc0ed86f
DOC correct the orders of the x labels (#19997) 2021-04-28 15:37:41 +02:00
Loïc Estève 9099c79639
EXA Fix plot_map_data_to_normal.py example legend (#19930)
Lambda was meant to be on a different line.
2021-04-20 09:57:42 -04:00
Vinicius Rios Fuck c59a310e5e
DOC Fix typos plot_column_transformer_mixed_types.py (#19871) 2021-04-12 22:18:20 -04:00
Adrian Sadłocha dff37c4a33
DOC Fix incorrect 0-1 scaling in the RBM example (#19363) 2021-04-08 11:13:49 -04:00
Maria Telenczuk 9cfacf1540
DEP Deprecate 'normalize' in ridge models (#17772)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Alexandre Gramfort <alexandre.gramfort@m4x.org>
2021-04-06 21:33:28 +02:00
Nicolas Hug 309f135c32
MNT Remove HistGradientBoosting from experimental (#19799) 2021-04-02 16:40:20 +02:00
Tom Dupré la Tour a9ae69397e
FIX Approximate nearest neighbors in TSNE example (#19809) 2021-04-02 10:44:06 +02:00
Albert Thomas c854b83c91
[MRG] Linear One-Class SVM using SGD implementation (#10027)
Co-authored-by: Tom Dupré la Tour <tom.dupre-la-tour@m4x.org>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2021-03-23 10:53:57 +01:00
Rodion Martynov 0892a98fc9
Stratified Group KFold implementation (#18649)
* Initial implementation

* Forgot to add to second __add__ list

* Update split method parameter doc

* Added example; changed default test_size to 0.1; added to author list

* StratifiedGroupKFold impl and other improvements

* Add class to __all__ spec

* Remove random_state when no shuffle

* Tighter formatting

* Update the implementation of StratifiedGroupKFold

* Add StratifiedGroupKFold to __init__

* Add y checks to StartifiedGroupKFold

* Raise error if n_splits > max num samples in class

* Warn if n_splits > mn num samples in class

* Add SGKfold to general repr test

* Add SGKFold to 2d_y test case

* Add SGKfold to value erros test case

Parameters are the same as for StratifiedKFold
to ensure similar behavior given n_groups == n_samples

* Add SGKFold to StratifiedKFold test cases

The idea is to ensure similar behavior when groups are trivial
(n_groups == n_samples)

* Add SGKFold to reproducibility test case

* Add SGKFold to GroupKFold test case

* Add SGKFold to nested cv test case

* Add SGKFold to random_state with shuffle=False test case

* Add SGKFold to constant splits test case

* Fix repr test case

* Fix formatting issues

* Add samples to a fold with least num samples

Required to produce balanced size folds when the distribution of y is
more or less the same

* Remove GroupShuffleSplit impl

* Add notes to StratifiedGroupKFold

* Fix doctest

* Added stratified group kfold tests

* Better variable naming

* Add section to documentation

* Remove leftover StratifiedGroupShuffleSplit import

* Add changelist and reference to original kernel

* Better naming for least populated class check

* Better expression for number of labels

* Remove use of Counter

We already have this data in output of np.unique

* Add tests for homogeneous groups

* Add StratifiedGroupKFold test against GroupKFold

* Add changes to changelist in docstring

* Add StratifiedGroupKFold to classes.rst

* Fix description of StratifiedGroupKFold

* Move license notice out of docstring

* Disambiguate labels to classes in doc

* Add changelog entry

* Fix changelog author entry

* Fix StratifiedGroupKFold docstring

* Better variable names

* Remove defaultdict in favor of numpy indexing

* Extracted best_fold search into a separate method

* Make use of numpy broadcasting instead of for loop

* Encode groups and use arrays instead of dicts

* Use numpy sort instead of python

* Clarify shuffling behavior of StratifiedGroupKF in docs

* Switch name from label_idx to class_idx

* Remove accidentally leftover comment

* Fix np.sort keyword to support numpy < 1.15

* Fix typo in docstring

* Add StratifiedGroupKFold to visualization doc

* Add visualization for uneven group as an example

* Fix image numbers to match updated example

* Add author

* Add SGKF visualization to docs

* Add comments for groups in stratified CV tests

Co-authored-by: Leandro Hermida <hermidal@cs.umd.edu>
Co-authored-by: marrodion <rodion_martynov@epam.com>
2021-03-20 21:57:42 +11:00
Christian Lorentzen b9d6db81ec
[MRG] ENH Consistent loss name for squared error (#19310) 2021-03-19 15:21:34 +01:00
mlondschien 95b7c680ab
ENH Add periodic extrapolation to SplineTransformer (#19483)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Christian Lorentzen <lorentzen.ch@gmail.com>
2021-03-17 13:46:45 +01:00
Alessia Marcolini 95c3c762fb
DOC Fix typo in plot_multi_metric_evaluation example (#19675) 2021-03-15 10:46:22 +01:00
putschblos 04534204f2
EXA Fix overlapping titles in clustering overview (#19506) 2021-02-22 16:23:55 +01:00
xavier dupré 6a6217f15f
ENH Add mean_pinball_loss metric for quantile regression (#19415)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Christian Lorentzen <lorentzen.ch@gmail.com>
2021-02-18 19:43:40 +01:00
Alihan Zihna 920f2257bb
EXA improve example of forest feature importances (#19377)
Co-authored-by: Alihan Zihna <a.zihna@ckhgbdp.onmicrosoft.com>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2021-02-08 11:22:41 +01:00
Amanda Dsouza cf4909eb92
DOC simplify SVM margin illustration by chaging plotting style (#19387) 2021-02-08 10:02:32 +01:00
Ogbonna Chibuike Stephen 94337993ef
EXA remove warning when setting yticks in permutation importances examples (#19385) 2021-02-07 12:19:05 +01:00
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