Commit Graph

3222 Commits

Author SHA1 Message Date
siavrez f87b5ae223
Update learning_curve.rst (#22086) 2022-01-03 10:00:36 +01:00
Christian Ritter ed865d7a33
DOC Multioutput classifier example loc change (#21889)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2022-01-02 14:56:57 -05:00
siavrez 319e91c458
DOC Update cross_validation.rst (#22067) 2021-12-23 09:35:46 -05:00
siavrez d5a0d19f3c
DOC Update cross_validation.rst (#22066) 2021-12-23 09:21:10 -05:00
Mandy Gu 379919dc59
ENH Add optional parameter to return raw data for diabetes dataset (#16605)
Co-authored-by: happilyeverafter95 <mgu@wealthsimple.com>
Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2021-12-17 11:33:18 +01:00
Brian Sun 4d68797e27
ENH Updating defaults for RandomForestRegressor and Classifier (#20803)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2021-11-30 00:29:46 +01:00
Guillaume Lemaitre 2330c4c465
MNT remove deprecated kind='legacy' in partial_dependence (#21589)
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
2021-11-24 11:11:10 +01:00
Guillaume Lemaitre 4f6a28f2eb
FIX/API Fix AIC/BIC in LassoLarsIC and introduce noise_variance (#21481) 2021-11-23 21:32:26 +01:00
Guillaume Lemaitre d5ce9c4966
DOC improve kernel PCA example (#19945)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Christos Aridas <chkoar@users.noreply.github.com>
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
2021-11-04 08:40:33 +01:00
Guillaume Lemaitre 16e027bfc3
DOC convert to notebook style CO2 GPR regression (#20358) 2021-11-03 18:49:26 +01:00
Guillaume Lemaitre 79fae0cc9d
DOC convert to notebook style Kernel ridge GPR example (#20357)
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
2021-11-03 18:47:34 +01:00
Guillaume Lemaitre 3611c938c9
DOC convert to notebook GPR regression with noise estimation (#20359)
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
2021-11-03 18:45:38 +01:00
Andrew Knyazev f449af888e
ENH add 'cluster_qr' method to spectral segmentation (#21148)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Victor Minden <victorminden@gmail.com>
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
2021-11-02 11:32:14 +01:00
Jérémie du Boisberranger e773581c3a
FIX Make dict learning loss match the paper (#19210)
Co-authored-by: Olivier Grisel <olivier.grisel@gmail.com>
2021-10-27 20:10:58 +02:00
Guillaume Lemaitre 90e04a5f15
FIX add support for multilabel classification in RidgeClassifier* (#19869)
Co-authored-by: Alexandre Gramfort <alexandre.gramfort@m4x.org>
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
2021-10-27 15:18:02 +02:00
puhuk 337e0d234b
DOC Use :doi: and :arxiv: directives for references (#21099) 2021-10-20 13:53:25 -04:00
christopherlim98 958ccc5bb1
DOC update documentation for DBSCAN and OPTICS (#21343) 2021-10-19 10:59:27 -04:00
Reshama Shaikh 7601f87b7a
DOC Display diagram to pipeline example (#18758)
Co-authored-by: Nicolas Hug <contact@nicolas-hug.com>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2021-10-13 16:31:09 +02:00
Julien Jerphanion 6b332d9969
MNT Move `DistanceMetric` under `metrics` (#21177) 2021-10-08 17:57:32 +02:00
Jon Haitz Legarreta Gorroño 9b90126f10
DOC Build proper sentence for Davies-Bouldin Index advantage (#21081)
Build proper sentence for Davies-Bouldin Index advantage in User Guide.
2021-09-24 11:07:13 +02:00
Thomas J. Fan 017eb3fcff
API Change ColumnTransformer parameter name to verbose_feature_names_out (#21080) 2021-09-21 17:16:51 +02:00
almeidayoel 2b7564c155
DOC fix typo in DET curve description (#21089) 2021-09-20 23:01:29 +02:00
J Alexander 623026ea11
DOC minor fixes to examples for neighbors transformers (#21057)
Co-authored-by: Johnathan Alexander <jalexander86@gatech.edu>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2021-09-18 11:42:58 -04:00
Dimitri Papadopoulos Orfanos f71c031314
DOC Typos found by codespell (#21069) 2021-09-17 19:04:54 +02:00
jalexand3r 122d02e324
DOC fix typo parameter name in example Isomap (#21011)
Co-authored-by: Johnathan Alexander <jalexander86@gatech.edu>
2021-09-13 10:25:46 +02:00
Thomas J. Fan 057b82ed18
API Deprecates plot_partial_dependence (#20959)
* API Deprecates plot_partial_dependence

* DOC Adds whats new

* DOC Fixes doc build errors

* CLN Removes feature warning

* CLN Address comments

* DOC Fix docstrings

* TST Skip future warning tests

* DOC Adjust docstrings

* REV Reduce diff

* DOC Adds docstring
2021-09-09 14:25:59 +02:00
Thomas J. Fan 4abd9f2d9e
API Implements get_feature_names_out for transformers that support get_feature_names (#18444)
Co-authored-by: Andreas Mueller <andreas.mueller@columbia.edu>
Co-authored-by: Andreas Mueller <andreasmuellerml@gmail.com>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Olivier Grisel <olivier.grisel@gmail.com>
Co-authored-by: Christian Lorentzen <lorentzen.ch@gmail.com>
2021-09-07 10:56:57 +02:00
Christian Lorentzen 9061ff9e58
FEA add d2_tweedie_score (#17036) 2021-09-04 23:17:03 +02:00
Guillaume Lemaitre d4da690822
API add from_estimator and from_preditions to PrecisionRecallDisplay (#20552)
Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>
2021-08-31 10:51:32 +02:00
Lucy Liu da36f72cc2
ENH Add CalibrationDisplay plotting class (#17443)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2021-08-31 09:43:05 +02:00
Guillaume Lemaitre 4b0d291fb3
DOC fix hyperlink for permutation test example (#20697)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2021-08-07 16:39:46 -04:00
Guillaume Lemaitre 513695f1e4
DOC fix typo in multioutput regression doc (#20701) 2021-08-07 14:05:21 -04:00
Julien Jerphanion 20ee33a95a
DOC Remove `graph_shortest_path` references (#20677) 2021-08-04 16:40:16 +02:00
gregorystrubel 0b45ac56f1
FIX adjust inliner criteria in RANSACRegressor (#19499)
Co-authored-by: Gregory Strubel <greg@Air-de-Ali.local>
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2021-07-30 15:28:12 +02:00
Mohamed Khoualed 4797222cc4
DOC fix typos in the user guide linear model documentation (#19554)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2021-07-29 18:08:45 +02:00
swpease 5d88f9aff9
DOC fixed covariance matrix equation in lda_qda (#20611) 2021-07-26 18:13:47 -07:00
Olivier Grisel 45bb9ab916
DOC new example on feature engineering for cyclic time features (#20281)
Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: Christian Lorentzen <lorentzen.ch@gmail.com>
2021-07-26 11:02:49 +02:00
Jérémie du Boisberranger a42a333c35
FIX add two parameters to regularized NMF (#20512)
Co-authored-by: Tom Dupré la Tour <tom.dupre-la-tour@m4x.org>
2021-07-15 15:35:24 +02:00
Joel Nothman ed3642014b
ENH Add available_if as a generic, literate variant of if_delegate_has_method (#19948)
* Better documentation where if_delegate_has_method is inapplicable

Fixes #19923

Introduces an elegant alternative for if_delegate_has_method, a decorator called available_if, which uses a callable to determine if an object should show a particular attribute.

If the callable also accepted the attribute name being decorated as a parameter, this could be used to implement if_delegate_has_method.

We could also replace if_delegate_has_method in all cases, since the code might be more readable as @available_if(lambda self, method: hasattr(self.base_estimator, method))

Possible alternative naming of available_if: hasattr_if.

TODO: add tests of the new decorator

* Fix use of super()

* Fixes to silly errors...

* add noqa

* Fix docstring issues

* remove debugging statements

* Use available_if instead of if_delegate_has_method in multioutput

* Public to private

* Rm unused import

* Black

* Use a sentinel instead of for-else with early return

* update reference docs

* TST

* DOC Add change log

* Update doc/whats_new/v1.0.rst

* Make test make sense

* Black

* Define available_if function in class

* Another way to express multioutput delegations
2021-07-11 15:36:26 +02:00
John Paton cea784e75e
DOC Update broken Davis2006 reference link in Model Evaluation User Guide (#20339) 2021-06-24 13:44:40 +02:00
Jannik 36cc933f41
DOC Fix broken link for the paper on cross-validation (#20328) 2021-06-22 21:45:34 +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
Loïc Estève 365234563e
Set up matplotlib agg backend at the beginning of the tests (#20230)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2021-06-17 17:45:53 +02:00
Jérémie du Boisberranger ef71c8597e
MNT Clean deprecations for 1.0 | trees (#19336) 2021-06-15 18:18:47 +02:00
Shao Yang Hong c53d33ea96
[MRG] Listed valid metrics in neighbors.rst (#19379)
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: Chiara Marmo <cmarmo@users.noreply.github.com>
2021-06-09 10:01:00 +02:00
KurumeYuta 8bc36080d9
[MRG] Fix Sparse PCA optimization task #19775 (#20153) 2021-06-01 11:38:16 +02:00
Guillaume Lemaitre 7c873713df DOC change figure in user guide of quantile regression 2021-05-26 17:45:01 +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
Eleni Markou 1ac047d29a
DOC Replace broken link in clustering.rst (#20102) 2021-05-19 09:34:22 -04:00
Chiara Marmo 40b45e6b7c
[MRG] CI Push Scipy minimum version to 1.1.0. Remove Python 3.6 from builds. (#20069)
* Push scipy min version to 1.0.0

* Update all ubuntu images to 20.04 focal.

* Add ubuntu images 18.04 bionic and scipy fron conda-forge.

* Fix conditions.

* Pin python 3.6 for ubuntu bionic.

* Change pipeline name.

* Change matrix element name.

* Keep python 3.9 from system not conda in Ubuntu 20.04.

* Remove python directive when unnecessary.

* Cleanup.

* Downgrade to python 3.6 as scipy 1.0.0 is incompatible with 3.8.

* Fix comment.

* Fix comment.

* Pin pytest again as we are forced to use 3.6.

* Move to conda installer for 32bit linux.

* Install miniconda for ubuntu 32bit.

* Install wget for ubuntu 32bit.

* Revert 32bit OS to ubuntu bionic 18.04.

* Install scipy from pip in 32bit system.

* Fix doctest failures.

* Revert example rendering.

* Relax pytest version in ubuntu install.

* Skip failing tests.

* Put comment at the right place.

* Remove python3.6. Ubuntu32 still needs to be adapted.

* Push numpy and scipy min versions for compatibility with 3.7.

* Push matplotlib min version for compatibility with 3.7. Install numpy via pip in 32bit linux.

* Install numpy before scipy in Linux 32bit.

* Pass numpy version to linux32.

* Test 32bit architecture on debian buster (still exists for 32bit with python 3.7).

* Install matplotlib from distribution.

* Syntax error...

* Stick to the numpy debian version to avoid Expected 124 from C header, got 112 from PyObject error.

* Clean comments.

* Revert skip in doctest to check with new dependencies.

* Rename distrib.

* Skip again...

* Fix test on check_array.

* Remove comment and fix lint at the same time.

* Clean import.

* Increase atol in test_derivatives to make the test pass in py37_conda_openblas environment.

* Avoid sparse matrix dependent on scipy version.

* Skip docstring test for pandas versions less then 1.1.0.

* Fix lint error.

* Empty commit to force checks.

* Add minimal dependencies in changelog.

* Update to python 3.7 CircleCI and Travis builds.

* Move to debian buster for python3.7 dependencies.

* Fix the container tag.

* Lower the minimal pandas version for compatibility with python 3.7.
2021-05-18 16:09:36 +02:00