Commit Graph

1580 Commits

Author SHA1 Message Date
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
Dea María Léon 26eedbd1f4
DOC make fetch_covtype pass numpydoc (#22918) 2022-03-22 22:36:02 +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
Jérémie du Boisberranger bb5ab53f94
API Config: change default display to "diagram" (#22856) 2022-03-21 15:43:07 +01:00
Thomas J. Fan fb835771d1
FIX Fixes OneVsOneClassifier.predict for Estimators with only predict_proba (#22604)
Co-authored-by: Loïc Estève <loic.esteve@ymail.com>
2022-03-18 17:23:50 +01:00
Thomas J. Fan e920073ed1
TST Fixes global random seed with pytest-xdist (#22844)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2022-03-15 10:30:54 +01:00
Olivier Grisel dd1b8c3d39
DOC Fix the formatting for environment variables in docs (#22833) 2022-03-14 22:54:29 -04:00
Aurélien Geron 7723d9374e
ENH Add inverse_transform to random projection transformers (#21701)
Co-authored-by: jeremie du boisberranger <jeremiedbb@yahoo.fr>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2022-03-14 15:07:25 +01:00
Dea María Léon 322e92d48b
DOC corrected docstring on make_classification (#22797) 2022-03-14 09:38:20 -04:00
Olivier Grisel d3429ca328
TST introducing the random_seed fixture (#22749)
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
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-14 10:41:06 +01:00
cdrig 9b1978d04f
DOC fix the docstring of sklearn.datasets._samples_generator.make_biclusters (#22790) 2022-03-13 17:44:12 +01:00
WeijiaDu 6eb25ca8db
DOC fix numpydoc errors in classification_report (#22803)
* fix classification_report errors in NumpyDoc

* DOC fix numpydoc errors in classification_report

Co-authored-by: Weijia DU <weijia@Weijias-2.local>
2022-03-13 10:37:13 +01:00
Magali f6d37b85d5
Changing docstring for binzrize (#22801)
Co-authored-by: Magali Morin <magali.morin@student-cs.fr>
2022-03-12 19:22:25 +01:00
sakinaOuisrani f9d74236e2
fix docstring of dict_learning.sparse_encode and multiclass.check_classification_targets #21350 #pariswimlds (#22793)
* fix docstring

* fixed linting in multiclass

* fixed linting in dict learning

* fixed linting in dict learning

* fixed linting in dict learning

* fixed linting in dict learning

* fixed linting in dict learning

Co-authored-by: Sakina <s.ouisrani@sesamm.com>
2022-03-12 18:41:19 +01:00
Anne Ducout 6d36596c4d
fix docstrings on preprocessing._data.normalize (#22795)
Co-authored-by: ducanne <71016393+ducannelync@users.noreply.github.com>
2022-03-12 17:38:24 +01:00
Vera Komeyer 34dd69bc15
DOC Ensures that check_random_state passes numpydoc validation (#22787) 2022-03-12 17:27:57 +01:00
msabatier 887e9f7487
DOC make_regression sample_generator (#22784)
* fix sklearn.datasets._samples_generator.make_multilabel_classification doctring

* fix make_regression sample generator numpydoc
2022-03-12 17:21:20 +01:00
MarieS-WiMLDS 617e9c458b
fix(doc): fix sklearn.linear_model._ridge.ridge_regression (#22788)
Co-authored-by: Marie <marie.sacksick@cybelangel.com>
2022-03-12 16:57:10 +01:00
sakinaOuisrani aec4eaa17b
DOC Fix docstring in quantile_transform function #21350 (#22780)
* fix: docstring in quantile_transform function

* fix: docstring quantile transformer

Co-authored-by: Sakina <s.ouisrani@sesamm.com>
2022-03-12 16:52:14 +01:00
Fatima GASMI fbe847722c
DOC Fix docstring in sklearn.metrics._ranking.label_ranking_loss (#22781)
Co-authored-by: fatima GASMI <fatima.gasmi@eulerhermes.com>
2022-03-12 16:47:29 +01:00
Vera Komeyer 3fdbd3d032
DOC Ensures that paired_euclidean_distances passes numpydoc validation (#22783) 2022-03-12 16:45:51 +01:00
cdrig a8c41b55b8
fix docstring r-regression (#22785) 2022-03-12 16:41:44 +01:00
Chloe-Agathe Azencott babc517f7a
Fixed sklearn.model_selection._split.check_cv docstring in #21350 (#22778) 2022-03-12 15:21:41 +01:00
Amar pratap singh 05ef75200f
DOC Ensures ledoit_wolf_shrinkage passes numpydoc (#22748) 2022-03-10 12:36:47 -05:00
Daniela Fernandes 98a9ae05ee
DOC Ensures that sklearn.metrics._ranking.average_precision_score passes numpydoc validation (#22712)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2022-03-10 13:47:49 +01:00
poloso 7645845e76
DOC Ensures that function passes numpydoc validation: f1_score (#22358)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2022-03-09 16:42:23 +01:00
iofall ff1c6f3a92
FIX Remove validation from __init__ and set_params for ColumnTransformer (#22537)
Co-authored-by: iofall <50991099+iofall@users.noreply.github.com>
Co-authored-by: arisayosh <15692997+arisayosh@users.noreply.github.com>
2022-03-09 11:56:06 +01:00
Thomas J. Fan 67a3feed2f
ENH Adds get_feature_names_out for AdditiveChi2Sampler (#22137)
Co-authored-by: Olivier Grisel <olivier.grisel@gmail.com>
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
2022-03-08 15:02:18 +01:00
Thomas J. Fan d616e43947
ENH Adds feature_names_out for most of kernel_approximation (#22694) 2022-03-08 14:01:03 +01:00
Jérémie du Boisberranger d135a0f8db
MNT additional cleaning in test for 1.1 (#22661) 2022-03-03 10:31:02 +01:00
Dennis Osei bdd5a9e19d
DOC Ensures that linnerud passes numpydoc validation (#22484)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2022-02-26 23:27:12 -05:00
Sam Adam Day 26d218cfeb
DOC Ensures that get_chunk_n_rows passes numpydoc validation (#22539) 2022-02-18 15:25:55 -05:00
Guillermo Tomás Fernández Martín 8abc6d890e
DOC Ensure that tosequence passes numpydoc validation (#22494)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2022-02-17 17:17:28 +01:00
Julien Jerphanion 6a16763c00
ENH Introduce `PairwiseDistancesReduction` and `PairwiseDistancesArgKmin` (feature branch) (#22134)
* MAINT Introduce Pairwise Distances Reductions private submodule  (#22064)

* MAINT Introduce FastEuclideanPairwiseArgKmin  (#22065)

* fixup! Merge branch 'main' into pairwise-distances-argkmin

Remove duplicated Bunch

* MAINT Plug `PairwiseDistancesArgKmin` as a back-end (#22288)

* Forward pairwise_dist_chunk_size in the configuration

* Flip finalized results for PairwiseDistancesArgKmin

The previous would have made the code more complex
by introducing some boilerplate for the interface plugs.

Having it this way actually simplifies the code.

This also removes the haversine branch for
test_pairwise_distances_argkmin

* Plug PairwiseDistancesArgKmin as a back-end

* Adapt test accordingly

* Add whats_new entry

* Change input validation order for kneighbors

* Remove duplicated test_neighbors_distance_metric_deprecation

* Adapt the documentation

* Add mahalanobis case to test fixtures

* Correct whats_new entry

* CLN Remove unneeded private metric attribute

This was needed when 'fast_sqeuclidean' and 'fast_euclidean'
were present to choose the best implementation based on the user
specification.

Those metric have been removed since then, making this attribute
useless.

* TST Assert FutureWarning instead of DeprecationWarning in
test_neighbors_metrics

* MAINT Add use_pairwise_dist_activate to scikit-learn config

* TST Add a test for the 'brute' backends' results' consistency

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

* fixup! MAINT Add use_pairwise_dist_activate to scikit-learn config

* fixup! fixup! MAINT Add use_pairwise_dist_activate to scikit-learn config

* TST Filter FutureWarning for WMinkowskiDistance

* MAINT pin numpydoc in arm for now (#22292)

* fixup! TST Filter FutureWarning for WMinkowskiDistance

* Revert keywords arguments removal for the GEMM trick for 'euclidean'

* MAINT pin max numpydoc for now (#22286)

* Add 'haversine' to CDIST_PAIRWISE_DISTANCES_REDUCTION_COMMON_METRICS

* fixup! Add 'haversine' to CDIST_PAIRWISE_DISTANCES_REDUCTION_COMMON_METRICS

* Apply suggestions from code review

* MAINT Document some config parameters for maintenance

Also rename one of them.

* FIX Support and test one of 'sqeuclidean' specification

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

* FIX Various typos fix and correct haversine

'haversine' is not supported by cdist.

* Directly use get_config

* CLN Apply comments from review

* Motivate swapped returned values

* TST Remove mahalanobis from test fixtures

* MNT Add comment regaduction functions' signatures

* TST Complete test for `pairwise_distance_{argmin,argmin_min}` (#22371)

* DOC Add sub-pull requests to the whats_new entry

* DOC place comment inside functions

* DOC move up whatsnew entry

Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: Christian Lorentzen <lorentzen.ch@gmail.com>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Jérémie du Boisberranger <jeremiedbb@users.noreply.github.com>
2022-02-17 10:37:22 +01:00
mpoemsl f5f01a3a87
DOC Ensures that precision_recall_curve passes numpydoc (#22514)
Co-authored-by: mpoemsl <37959974+mpoemsl@users.noreply.github.com~>
2022-02-17 00:17:01 -05:00
combscCode e11c4d21a4
DOC Ensures that orthogonal_mp passes numpydoc validation (#22501) 2022-02-16 17:05:01 +01:00
combscCode 6e39fd6886
DOC Ensures that lars_path passes numpydoc validation (#22500) 2022-02-16 15:59:15 +01:00
GAURAV CHOUDHARY 73e605a1c2
DOC Ensures that precision_recall_fscore_support passes numpydoc validation (#22472)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2022-02-16 11:10:18 +01:00
Thomas J. Fan b28c5bba66
FIX DummyRegressor overriding constant (#22486) 2022-02-15 17:46:54 +01:00
Thomas J. Fan 1fc86b6aac
MNT Update black to stable version (#22474) 2022-02-15 11:36:26 +01:00
Matías 3abc99bdf2
DOC Ensures that fetch_openml passes numpydoc validation (#22483) 2022-02-14 20:09:08 -05:00
Matías fb29452f02
DOC Ensures that fetch_olivetti_faces passes numpydoc validation (#22480) 2022-02-14 11:31:52 +01:00