Commit Graph

65 Commits

Author SHA1 Message Date
Adrin Jalali 51c8e0e19d
CLN replace authors with the standard line (#29250) 2024-06-17 17:57:02 +00:00
Adrin Jalali 55ca335e42
CLN use new license notice line (#29246) 2024-06-13 15:51:09 +02:00
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
Xuefeng Xu 395761a763
DOC fix description of sample_weight in KBinsDiscretizer (#28853) 2024-04-17 10:10: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
Xuefeng Xu c63b21ec30
ENH Improve the efficiency of QuantileTransformer (#27344)
Co-authored-by: Jérémie du Boisberranger <jeremie@probabl.ai>
2024-03-28 07:28:37 +01:00
Mateusz Sokół 0e56ae34f8
MAINT: Remove `np.int_` and `np.uint` (#27523) 2023-10-06 12:20:14 +02:00
Stefanie Senger 8ccaf0da1d
DOC Add links to preprocessing examples in docstrings and userguide (#26877)
Co-authored-by: Arturo Amor <86408019+ArturoAmorQ@users.noreply.github.com>
Co-authored-by: Adrin Jalali <adrin.jalali@gmail.com>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2023-08-24 15:15:41 +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 9c266cf5d6
MAINT Param validation: decorate all estimators with _fit_context (#26473) 2023-06-14 16:52:35 +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
Adrin Jalali 893d5accaf
MNT Update black to 23.3.0 (#26110) 2023-04-06 12:14:16 -04:00
Alex Buzenet d85b1d3302
ENH Raise NotFittedError in get_feature_names_out for MissingIndicator, KBinsDiscretizer, SplineTransformer, DictVectorizer (#25402)
Co-authored-by: Alex <alex.buzenet.fr@gmail.com>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2023-01-23 10:59:14 -05: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
Thomas J. Fan 02ebf9e68f
MNT Adds dict typing hint to _parameter_constraints for mypy (#24301) 2022-08-30 11:01:10 +02: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
Dimitri Papadopoulos Orfanos 3d4ee9e9dc
MNT Remove utf-8 encoding declarations (#21260)
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
2022-03-14 17:59:36 +01: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
Olivier Grisel 279388d9ed
DOC Improve get_feature_names_out docstrings (#22718)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2022-03-07 13:02:12 -05:00
Meekail Zain 4d9e005811
FIX np.digitize fixes in calibration and discretization (#22526)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: Andreas Mueller <andreas.mueller@columbia.edu>
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
2022-02-19 20:50:46 +01:00
mandjevant 231ca9e804
DOC Various documentation improvements (#21764)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2021-11-26 11:11:43 +01:00
Aurélien Geron bacc91cf1d
MNT Make algorithm='auto' default to using 'full' instead of 'elkan' (#21735)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2021-11-25 19:16:21 +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 d1285a9232
DOC Adds missing imports into examples and test them (#21186) 2021-09-29 13:51:33 +02:00
genvalen cfbaba1e61
DOC Ensures that KBinsDiscretizer passes numpydoc validation (#21016) 2021-09-13 10:55:21 +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
Thomas J. Fan 786c4e5e39
DOC Adds feature_names_in_ to docstrings (#20787) 2021-08-26 13:44:45 +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
Guillaume Lemaitre 1cd282d600
DOC add n_features_in_ in the documentation (#20236) 2021-06-09 16:58:03 +02: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
Gleb Levitskiy 7ddd6e5d34
KBinsDiscretizer efficiency improvement to 'kmeans' strategy (#19934)
* efficiency improvement

* update doc

* lint

* lint
2021-04-20 21:39:19 +02:00
Guillaume Lemaitre 266a11b2e1
DOC Update docs guideline regarding docstring formatting (#18243)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
2021-01-08 12:55:53 -05: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
Juan Carlos Alfaro Jiménez 28d84693b3
MNT Put back positional args in KBinsDiscretizer (#18437) 2020-09-22 11:37:42 -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
Albert Villanova del Moral 875d32fe55
DOC Fix versionadded/versionchanged for 0.24 (#18312) 2020-09-01 10:51:01 +02:00
Frans Larsson 07842079b5
DOC Fix default values, shape and dtype for preprocessing._discretization.py (#18290)
Co-authored-by: Juan Carlos Alfaro Jiménez <JuanCarlos.Alfaro@uclm.es>
2020-08-31 12:59:39 +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
Saurabh Jain 00bc681e10
DOC shorten class links in docstring using tilde (#17470)
* added tilde to bunch of files

* Updated _kde.py

Changed array_like to array-like

* Updated _kde.py

Removed space

* updated _kde.py

Added full stop

* PEP8

Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2020-06-16 10:44:13 +02:00
Ekaterina Borovikova 4755ae76d2
DOC Add versionchanged and versionadded for v0.20 (#16199)
Co-Authored-By: Adrin Jalali <adrin.jalali@gmail.com>
Co-Authored-By: Chiara Marmo <cmarmo@users.noreply.github.com>
Co-Authored-By: Nicolas Hug <contact@nicolas-hug.com>
2020-04-26 09:29:36 -04:00
Thomas J Fan e54cd3c061
API Deprecate positional arguments in preprocessing (#16996)
* API Deprecate positional arguments in preprocessing

* CLN Address comments

* CLN Uses classes as a keyword only argument

* BUG Fix
2020-04-23 19:10:49 +02:00
Nicolas Hug d205638475
MNT Introduction of n_features_in_ attr with _validate_data mtd (#16112) 2020-02-29 09:05:11 -05:00
Soumirai ea006d3f04 DOC numpydoc validation for KBinsDiscretizer (#15459) 2019-11-02 17:54:45 +01:00
Andreas Mueller 03ea20db0f Fix mixin inheritance order, allow overwriting tags (#14884) 2019-09-05 10:13:30 +02:00
Andreas Mueller 92af3dabbb MAINT simplify check_is_fitted to use any fitted attributes (#14545) 2019-08-13 22:09:07 +02:00