Commit Graph

211 Commits

Author SHA1 Message Date
Dimitri Papadopoulos Orfanos 6a7c8fd565
MAINT Fix typos found by codespell (#27824)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2023-11-22 15:59:36 +00:00
Thomas J. Fan 831c49aca3
ENH Adds polars output support to `set_output` API (#27315) 2023-11-19 22:46:56 +01:00
Loïc Estève 751ccc0a4d
CI Run test suite inside Pyodide (#27346)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2023-09-28 17:57:20 -04:00
Naoise Holohan 38a1e64bbe
FIX Param validation Interval error for large integers (#26648)
Co-authored-by: jeremie du boisberranger <jeremiedbb@yahoo.fr>
2023-09-27 16:07:49 +00:00
Tim Head 1b0a51bd90
Add tests for train_test_split with Array API input (#26855)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2023-08-09 18:27:31 +00:00
Roman Lutz fa3ca7ab9f
DOC fix outdated function name _safe_indexing_column (#26818) 2023-07-12 11:24:12 +02:00
Yao Xiao 87941ab497
MAINT Parameters validation for sklearn.utils.gen_even_slices (#26682)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2023-06-29 10:25:23 +00:00
Elabonga Atuo e490da9a71
MAINT Parameters validation for sklearn.utils.safe_mask (#26131)
Co-authored-by: jeremiedbb <jeremiedbb@yahoo.fr>
2023-06-27 17:08:26 +00:00
Jérémie du Boisberranger 04575f5fa3
MAINT Param validation: apply skip nested validation to all functions (#26495) 2023-06-22 18:06:24 +02:00
Adrin Jalali 42173fdb34
MNT add isort to ruff's rules (#26649) 2023-06-21 17:50:07 +02:00
Adrin Jalali 62671a704f
FEAT SLEP006: metadata routing infrastructure (#24027)
Co-authored-by: Christian Lorentzen <lorentzen.ch@gmail.com>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Benjamin Bossan <BenjaminBossan@users.noreply.github.com>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: Omar Salman <omar.salman@arbisoft.com>
2023-06-02 16:43:31 -04:00
Elabonga Atuo 10344f9fb4
MAINT Parameters validation for sklearn.utils.resample (#26139) 2023-04-14 16:02:05 +02:00
Pooja Subramaniam f4fbb28913
MAINT Parameters validation for utils.gen_batches (#25864) 2023-03-15 20:23:27 +01:00
Madhura Jayaratne c1cfc4d4f3
ENH Extend PDP for nominal categorical features (#18298)
Co-authored-by: Jérémie du Boisberranger <jeremiedbb@users.noreply.github.com>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>

Closes https://github.com/scikit-learn/scikit-learn/issues/14969
2022-11-25 17:35:59 +01:00
Guillaume Lemaitre af16e5934a
MAINT test globally setting output via context manager (#24932)
Co-authored-by: jeremie du boisberranger <jeremiedbb@yahoo.fr>
2022-11-24 14:14:06 +01:00
Geevarghese George 0003ee0492
DOC Ensure that gen_batches passes numpydoc validation (#24609) 2022-10-13 14:58:30 +02:00
Geevarghese George 0ee0189f98
DOC Ensure that gen_even_slices passes numpydoc validation (#24608) 2022-10-10 15:42:32 +02:00
Thomas J. Fan b20e474caf
MNT Optimize safe_indexing for slices (#24587) 2022-10-06 11:41:23 +02:00
Robert Juergens 0c22fa1da4
DOC Ensure that sklearn.utils.is_scalar_nan passes numpydoc validation (#24562)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2022-10-03 16:00:04 +02:00
Robert Juergens 537c325f29
DOC Ensure that sklearn.utils.axis0_safe_slice passes numpydoc (#24561) 2022-10-03 15:55:39 +02:00
Guillaume Lemaitre b22f7fa552
MNT numpydoc validation for Displays (#21469)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
2022-09-26 23:54:29 +02:00
Z Adil Khwaja e5629f6d7e
DOC ensures sklearn.utils.safe_sqr passes numpydoc validation (#24437) 2022-09-15 11:45:48 +02:00
Z Adil Khwaja 549894e877
DOC ensures sklearn.utils.safe_mask passes numpydoc validation (#24425) 2022-09-12 10:33:38 +02:00
Z Adil Khwaja 49279c3267
DOC ensures sklearn.utils.shuffle passes numpydoc validation (#24367)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2022-09-07 13:37:16 +02:00
htsedebenham 82cd3d74f2
DOC numpydoc validation for `resample` function (#23916) 2022-07-16 12:15:10 +01:00
Thomas J. Fan b2632dea49
ENH Adds FeatureHasher support to pypy (#23023) 2022-04-08 19:34:20 +02:00
Jérémie du Boisberranger 34f9dbf541
MNT Clean fixes and compat for old versions of our dependencies (#22642)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2022-03-02 11:32:06 +01: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
Thomas J. Fan 1fc86b6aac
MNT Update black to stable version (#22474) 2022-02-15 11:36:26 +01:00
Adrin Jalali 1eb134e1c6
MNT move bunch to its own file (#22084) 2021-12-31 10:02:23 +01:00
katotten 9a0592fa33
fixed issues with documentation validation for sklearn.utils.check_pandas_support (#21566) 2021-11-06 09:12:59 +01:00
Ying Xiong 5256fb3649
[MRG] Support pd.NA in StringDtype columns for SimpleImputer (#21114)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2021-11-05 12:13:21 +01:00
Thomas J. Fan d1285a9232
DOC Adds missing imports into examples and test them (#21186) 2021-09-29 13:51:33 +02:00
Dimitri Papadopoulos Orfanos f71c031314
DOC Typos found by codespell (#21069) 2021-09-17 19:04:54 +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
t-jakubek d5215a1535
Fixing integer overflow on 32-bit architectures. (#20904)
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
2021-09-03 14:00:26 +02:00
Guillaume Lemaitre d6735f4851
FIX accept large Python numeric in OrdinalEncoder (#20727) 2021-08-16 23:12:35 +02:00
Joris Van den Bossche 6ab86fb34b
FIX Use take in safe_indexing for pandas to avoid SettingWithCopyWarning (#20673)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2021-08-09 12:00:45 +02:00
Thomas J. Fan 1013f930ef
MAINT Removes UserWarning when calling all_estimators (#20500) 2021-07-13 10:45:38 +02:00
Thomas J. Fan 3ae7c76153
STY Enables black with experimental_string_processing=true (#20412) 2021-06-29 09:47:04 +02:00
Thomas J. Fan 82df48934e
MNT Applies black formatting to most of the code base (#18948) 2021-06-17 14:21:09 -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
Sean Benhur J 04f84c6d08
DOC Added utils.gen_batches in documentation (#19688) 2021-03-17 15:53:00 +01:00
Guillaume Lemaitre 255718b4ad
introduce _safe_tags for estimator not inheriting from BaseEstimator (#18797)
Co-authored-by: Nicolas Hug <contact@nicolas-hug.com>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2020-12-02 11:18:53 +01:00
Oleh Kozynets f9e0b7d55f
FIX VisibleDeprecationWarning in unit tests and docstrings (#18414) 2020-10-28 14:47:57 +01:00
Ryotaro Tsukada 27f11e7f17
DOC Fix typo in docstring for check_pandas_support (#18688) 2020-10-26 22:36:50 -04:00
Albert Villanova del Moral 647fcb1ac1
DOC Fix A to uppercase in See Also docstring section (#18332) 2020-09-04 10:35:01 -04:00
Anand Tiwari 2738e381ea
DOC fix erroneous statement regarding meta-estimator in all_estimators (#18231)
Co-authored-by: anandt <anandt@cvent.com>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2020-08-31 10:51:12 +02:00