Commit Graph

28153 Commits

Author SHA1 Message Date
Jordan Silke cbe5d4a12c
MNT accelerate examples/kernel_approximation/plot_scalable_poly_kernels.py (#22903)
Co-authored-by: sveneschlbeck <sven.eschlbeck@t-online.de>
Co-authored-by: Sven Eschlbeck <66701689+sveneschlbeck@users.noreply.github.com>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2022-03-29 17:49:03 +02:00
Thomas J. Fan d400723a21
FEA Add DecisionBoundaryDisplay (#16061)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Loïc Estève <loic.esteve@ymail.com>
2022-03-29 16:36:31 +02:00
Thomas J. Fan d4aad64b1e
MNT Update to black 22.3.0 to resolve click error (#22983)
* MNT Update to black 22.3.0 to resolve click error

* STY Update for new black version
2022-03-29 12:04:41 +02:00
Christian Lorentzen 75a94f518f
ENH migrate GLMs / TweedieRegressor to linear loss (#22548)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2022-03-28 19:20:01 -04:00
Jihane d14fd82cf4
ENH Preserving dtypes for ICA (#22806)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
2022-03-28 18:07:53 +02:00
Guillaume Lemaitre 8cdeb8010c
FIX make coef_ in PLS estimator consistent with linear models (#22016)
Co-authored-by: jeremie du boisberranger <jeremiedbb@yahoo.fr>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2022-03-28 17:27:21 +02:00
yiyangq 2c5058e0d6
TST Replace pytest.warns(None) in feature_extraction/tests/test_text.py (#22962) 2022-03-27 14:37:40 -04:00
yiyangq 7846b55e67
TST Replace pytest.warns(None) in manifold/tests/test_t_sne.py (#22963) 2022-03-27 14:35:01 -04:00
Daniela Fernandes 8fb8b444ce
TST Replace pytest.warns(None) in utils/tests/test_utils.py (#22961) 2022-03-27 13:47:13 +02:00
Theis Ferré Hjortkjær b1fc5c30bd
TST Replace pytest.warns(None) in test_gpc.py (#22960) 2022-03-27 13:22:00 +02:00
Daniela Fernandes 712b5b4a58
TST replace pytest.warns(None) in metrics/cluster/test_supervised.py (#22955) 2022-03-26 23:32:43 -04:00
Daniela Fernandes 37313eaf1f
TST replace pytest.warns(None) in metrics/cluster/test_unsupervised.py (#22956) 2022-03-26 23:32:08 -04:00
Theis Ferré Hjortkjær 5b901fe573
TST Replace pytest.warns(None) in test_gpr.py (#22959)
Co-authored-by: Theis Hjortkjær <theis@Theiss-MacBook-Pro.local>
2022-03-26 14:29:09 -04:00
Daniela Fernandes df1e6f1efa
TST replace pytest.warns(None) in metrics/tests/test_pairwise.py (#22957)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2022-03-26 14:28:16 -04:00
Daniela Fernandes 671178e5d9
TST replace pytest.warns(None) in preprocessing/test_common.py (#22936)
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
2022-03-26 10:45:31 -04:00
Joseph Schwartz-Messing 511b5f5d9e
DOC fix typo (#22958) 2022-03-26 13:50:32 +01:00
Thomas J. Fan cb547ae5d1
DOC Makes Sphinx reference to Bunch a class (#22948) 2022-03-25 22:27:51 +01:00
Julien Jerphanion e7d718ccf2
TST use global_dtype in feature_selection/tests/test_mutual_info.py (#22677)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Jérémie du Boisberranger <jeremiedbb@users.noreply.github.com>
2022-03-25 18:06:09 +01:00
Gael Varoquaux 48f363f35a
DOC Update comms team (#22942)
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
2022-03-25 14:36:30 +01:00
Varun Agrawal ea0571f737
FIX Fix recall in multilabel classification when true labels are all negative (#19085)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: jeremiedbb <jeremiedbb@yahoo.fr>
2022-03-25 13:07:54 +01:00
Christian Lorentzen bf0ece817d
ENH add sample_weight to sparse coordinade descent (#22808) 2022-03-25 11:09:28 +01:00
Thomas J. Fan 4408dfb86b
FIX Removes warning in HGBT when fitting on dataframes (#22908) 2022-03-25 10:56:49 +01:00
Adam Li 67eb4e5c24
[MAINT] Separate unit tests in `test_tree.py` for pickling and min_impurity_decrease (#22915) 2022-03-25 10:41:45 +01:00
Christian Lorentzen f89a40bd92
MNT fix typo in tree test name (#22943) 2022-03-24 23:24:18 +01:00
Daniela Fernandes f3f8967a3d
TST replace pytest.warns(None) in test_function_transformer.py (#22937) 2022-03-24 22:07:29 +01:00
Daniela Fernandes 14a4934eb5
TST removed pytest.warns(None) in test_data.py (#22938) 2022-03-24 22:05:10 +01:00
Thomas J. Fan c3f81c1d48
FIX PowerTransformer Yeo-Johnson auto-tuning on significantly non-Gaussian data (#20653)
Co-authored-by: Olivier Grisel <olivier.grisel@gmail.com>
2022-03-24 17:42:02 +01:00
Thomas J. Fan 8a6cf1a33e
BLD Monkeypatch windows build to stablize build (#22693) 2022-03-24 16:36:27 +01:00
Daniela Fernandes 8d9c7a7833
TST replace pytest.warns(None) in metrics/test_classification.py (#22888)
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
2022-03-24 10:41:45 -04:00
Jérémie du Boisberranger 9205fb4b11
TST Fix test failing scipy nightly (#22935) 2022-03-24 09:23:56 -04:00
Maxwell e5736afb31
API Deprecate max_feature=`auto` for tree classes (#22476)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
2022-03-23 17:59:23 +01:00
Thomas J. Fan 51fddb7fdc
ENH Adds encoded_missing_value to OrdinalEncoder (#21988) 2022-03-23 13:26:34 +01:00
Ming-Yang Ho 7f1c6c367d
DOC improve phrasing precision recall (#22924) 2022-03-23 12:01:18 +01:00
Dea María Léon 26eedbd1f4
DOC make fetch_covtype pass numpydoc (#22918) 2022-03-22 22:36:02 +01:00
Jérémie du Boisberranger d76f87c8eb
Fix Ridge sparse + sample_weight + intercept (#22899)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2022-03-22 20:15:54 +01:00
Jérémie du Boisberranger c6395d20e0
MNT Clean deprecation of dtype='numeric' + array of strings in check_array for 1.1 (#22589) 2022-03-22 14:50:11 -04:00
Olivier Grisel 9d7f5b97fd
MAINT use the default CPU_COUNT=2 for the macOS builds (#22919)
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
2022-03-22 14:49:07 -04:00
Gabriel Stefanini Vicente ffa0898d5a
API Add data_transposed argument and warning to make_sparse_coded_signal (#21425)
Co-authored-by: Andreas Mueller <t3kcit@gmail.com>
Co-authored-by: jeremie du boisberranger <jeremiedbb@yahoo.fr>
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
2022-03-22 16:01:42 +01:00
Richard Taylor 02f8ffd55f
MNT Replace pytest.warns(None) in test_ridge.py (#22917) 2022-03-22 08:47:38 -04:00
zempleni e7c710424a
DOC Update plot_label_propagation_structure.py to notebook style (#22726)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
2022-03-22 12:18:46 +01:00
zempleni 926df1bc4d
Update plot_label_propagation_digits.py (#22725)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
2022-03-22 12:17:27 +01:00
Meekail Zain db24a30bd3
ENH Allow `SelectFromModel`'s `max_features` to accept callables (#22356)
* Initial implementation

* Improved error handling and stability

* Added unit tests

* Updated test to use `max_features_` instead of `max_features`

* Added documentation for new private attribute `max_features_`

* Improved error handling for callables

* Updated whats_new

* Removed incorrect term reference to `max_features`

* Removed float case and improved testing

* Updated test names to more clearly reflect intention

* Added a sample callable in `max_features` description

* Improved documentation and streamlined error handling

* Updated example to include demonstrate using a callable for max_features

* Separated out callable demo into separate example

* Removed demo from `max_features` docs (now in example)

* Updated changelog

* Apply suggestions from code review

Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>

* Trimmed unneeded comments

* Updated tests to reflect new error handling

* Removed new line at end of docstring

* Updated docstring

* Fixed example syntax error

* Fixed example syntax

* Apply suggestions from code review

Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>

* Reverted irrelevant changes

* Update sklearn/feature_selection/_from_model.py

Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>

* Fixed error message

* Improved test coverage

* Minor doc improvement -- added a list for `max_features` type

* Update sklearn/feature_selection/_from_model.py

Co-authored-by: Adrin Jalali <adrin.jalali@gmail.com>

* Improved input validation and added test for array-like

* Updated doc to use no longer use lambda function

* Fixed docstring list

* Added missing whitespace for list format in docstring

Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: Adrin Jalali <adrin.jalali@gmail.com>
2022-03-22 11:18:12 +01:00
cdrig ac4cc3c64e
DOC make min_max_axis pass numpydoc (#22839)
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
2022-03-22 02:07:51 +01:00
Daniela Fernandes 070ba08941
DOC Ensures that sklearn.metrics._plot.confusion_matrix.plot_confusion_matrix passes numpydoc validation (#22842) 2022-03-22 01:22:10 +01:00
victoirelouis 2a4b40a0a4
Doc make make_sparse_coded_signal pass numpydoc (#22817)
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
2022-03-21 21:55:33 +01:00
Anne Ducout 5cccdef437
DOC Ensures that preprocessing._data.power_transform passes numpydoc validation (#22802)
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
2022-03-21 21:44:28 +01:00
Kevin Doucet 333b3fe65e
DOC Ensure that ledoit_wolf is passing numpydoc validation (#22496)
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
2022-03-21 21:24:36 +01:00
victoirelouis eea5a10bdb
DOC adds two dots from datasets._base.load_sample_image (#22805)
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
2022-03-21 20:44:22 +01:00
sharmadharmpal d49f7c3c06
DOC Ensures that load_wine passes numpydoc (#22469)
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
2022-03-21 19:51:48 +01:00
Dea María Léon 3dda3187c9
DOC fetch_california_housing passes numpydoc validation (#22882) 2022-03-21 18:45:39 +01:00