Commit Graph

38 Commits

Author SHA1 Message Date
Will Dean 0bdc754e5d
API Standardize `X` as `inverse_transform` input parameter (#28756)
Co-authored-by: Jérémie du Boisberranger <jeremie@probabl.ai>
2024-04-29 15:08:25 +00:00
Jérémie du Boisberranger 57a72222da
MAINT Clean up deprecations for 1.5: in KBinsDiscretizer (#28817) 2024-04-11 17:59:05 +00:00
Loïc Estève d61b65e644
CI Unpin pytest and regenerate lock-files (#28318) 2024-01-31 18:14:14 +01:00
Dimitri Papadopoulos Orfanos 1ba0783f64
MAINT Fix typos found by codespell (#26852) 2023-07-18 10:20:40 +02:00
Adrin Jalali 42173fdb34
MNT add isort to ruff's rules (#26649) 2023-06-21 17:50:07 +02:00
Jérémie du Boisberranger 199cdfd768
ENH Change default value of subsample + allow for all strategies in KBinsDiscretizer (#26424)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2023-05-31 18:06:11 -04:00
Dimitri Papadopoulos Orfanos 2fd022d972
MAINT Fix typos found by codespell (#26448) 2023-05-31 10:19:21 +02:00
Gleb Levitski cde6d65794
ENH KBinsDiscretizer sample_weight support for kmeans strategy (#25257) 2023-01-03 11:38:34 -08:00
Dea María Léon 1f3c1be77a
ENH add support for sample_weight in KBinsDiscretizer with strategy="quantile" (#24935)
Co-authored-by: seladus <clement.blancovolle@insa-rouen.fr>
Co-authored-by: Seladus <71873495+Seladus@users.noreply.github.com>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2022-12-13 17:11:47 +01:00
Rushil Desai 7134e4183c
API Rename OneHotEncoder option sparse to sparse_output (#24412)
Co-authored-by: Christian Lorentzen <lorentzen.ch@gmail.com>
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
2022-09-16 13:46:53 +02:00
Jérémie du Boisberranger f96da4076d
ENH Param validation: Introduce Options constraint (#24048) 2022-08-30 10:35:48 -04:00
SangamSwadik 652a6278c4
MAINT parameter validation for KbinsDiscretizer (#23804)
Co-authored-by: Sangam Swadi K <sangamswadik@users.noreply.github.com>
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
Co-authored-by: jeremiedbb <jeremiedbb@yahoo.fr>
2022-07-06 16:11:52 +02:00
Thomas J. Fan 36c6c74e5f
FIX Fixes KBinsDiscretizer for encode=ordinal (#22735)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2022-03-09 11:10:50 -08:00
Thomas J. Fan 1fc86b6aac
MNT Update black to stable version (#22474) 2022-02-15 11:36:26 +01:00
Thomas J. Fan 4ff0767087
ENH Better error message for check_scalar (#22218)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2022-02-11 16:15:30 +01:00
Amanda Dsouza 48e5423d74
ENH add parameter subsample to KBinsDiscretizer (#21445)
Co-authored-by: Felipe Bidu Rodrigues <felipe@felipevr.com>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2021-11-04 10:20:57 +01: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
LSturtew 3e45aeef90
TST Remove assert warn from preprocessing tests (#19691) 2021-03-20 10:07:09 -04:00
Thomas J. Fan d933c20bef
ENH Checks n_features_in_ in preprocessing module (#18577)
Co-authored-by: Olivier Grisel <olivier.grisel@gmail.com>
Co-authored-by: Joel Nothman <joel.nothman@gmail.com>
Co-authored-by: Christian Lorentzen <lorentzen.ch@gmail.com>
Co-authored-by: Nicolas Hug <contact@nicolas-hug.com>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2020-10-21 18:11:44 +02:00
Thomas J. Fan 7cc0177f8e
MNT Replaces numpy alias with builtin typse (#17687)
* MNT Replaces numpy alias with builtin typse

* STY Lint error
2020-06-24 16:51:51 +02:00
Arthur Imbert 846d51771d
ENH Add dtype parameter to KBinsDiscretizer to manage the output data type (#16335)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2020-06-16 14:13:48 +02:00
Nicolas Hug b92455a6b2 MAINT Deprecate all of utils.testing except all_estimators (#15367) 2019-10-28 17:28:56 +01:00
Samesh Lakhotia 1c116807ce MAINT:Fix assert raises in `sklearn/preprocessing/tests/` (#14717) 2019-08-29 12:38:54 +03:00
Thomas J Fan be4accf79d TST refactor test_numeric_stability (#14221) 2019-06-30 10:28:29 +08:00
Hanmin Qin b40868d52b FIX Remove bins whose width <= 1e-8 with a warning in KBinsDiscretizer (#13165)
* remove redundant bins

* tests

* what's new

* issue number

* numeric issue

* move what's new

* Joel's comment

* forget something

* flake8

* more doc update

* Joel's comment

* redundant bins

* new message

* comment
2019-02-20 15:39:32 +01:00
SandroCasagrande 9ac5793af1 FIX Ensure sorted bin_edges from kmeans strategy of KBinsDiscretizer (#13135) 2019-02-12 09:26:49 +08:00
surgan12 62d2059804 MNT remove __future__ imports (#12791) 2019-02-02 22:05:06 +08:00
Andreas Mueller 952ef6637a MRG Drop legacy python / remove six dependencies (#12639) 2019-01-03 15:50:05 +02:00
jeremiedbb ebe77d6936 modify kbins test using kmeans due to unstable local minimum (#12450) 2018-10-24 13:04:38 +02:00
ZJ Poh adddf00433 [MRG] np.ones -> np.full (#11628) 2018-07-23 09:49:01 +02:00
Giovanni Giuseppe Costa 61547de6b7 ENH KBinsDiscretizer : inverse_transform for ohe encoder (#11505) 2018-07-21 11:57:51 +08:00
Hanmin Qin e4089d1ea2 [MRG] ENH Remove ignored_features in KBinsDiscretizer (#11467) 2018-07-11 22:55:28 +02:00
Tom Dupré la Tour 5a61af94e2 [MRG+2] Implement two non-uniform strategies for KBinsDiscretizer (discrete branch) (#11272) 2018-07-10 09:29:56 +10:00
Hanmin Qin 2249f8affd comments from hlin177 2017-11-30 16:15:10 +08:00
Tom Dupré la Tour 430af307c5 DOC add a second example for KBinsDiscretizer (#10195) 2017-11-28 09:41:31 +11:00
Hanmin Qin eef7bdb901 add encoding option to KBinsDiscretizer (#9647) 2017-09-07 23:48:30 +10:00
hlin117 7ef342ee89 ENH add fixed-width discretizer 2017-07-12 18:20:14 +10:00