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
Omar Salman
acd2d90e50
ENH Array API support for LabelEncoder ( #27381 )
...
Co-authored-by: Omar Salman <omar.salman@arbisoft>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2024-05-16 15:47:35 +02:00
Loïc Estève
e4fc3705e7
CI fix scipy-dev by using asarray() instead of array(..., copy=False) ( #28583 )
2024-03-06 17:45:43 +01:00
Yao Xiao
f3310d2f5a
FIX make 'array-like' reject sparse containers in parameter validation ( #28101 )
...
Co-authored-by: jeremie du boisberranger <jeremiedbb@yahoo.fr>
2024-02-28 17:54:16 +01:00
Mateusz Sokół
cb15a82e64
MAINT: Remove np.in1d and np.trapz usages ( #27140 )
...
Co-authored-by: Loïc Estève <loic.esteve@ymail.com>
2023-09-06 17:06:31 +02:00
Thomas J. Fan
3dea10209e
FIX Disable set_output for label encoders ( #26940 )
...
Co-authored-by: Adrin Jalali <adrin.jalali@gmail.com>
Co-authored-by: Omar Salman <omar.salman@arbisoft.com>
2023-07-31 09:02:34 +00:00
Lucy Liu
b13f69ce49
DOC Directly import label class in example ( #26876 )
2023-07-21 12:32:16 +05:00
Lucy Liu
f108e2a361
DOC Fix cross references in `LabelBinarizer` ( #26678 )
2023-06-23 11:11:35 +02: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
Jérémie du Boisberranger
9c266cf5d6
MAINT Param validation: decorate all estimators with _fit_context ( #26473 )
2023-06-14 16:52:35 +02:00
Adrin Jalali
893d5accaf
MNT Update black to 23.3.0 ( #26110 )
2023-04-06 12:14:16 -04:00
Jiawei Zhang
d4d98017c3
MAINT Parameters validation for sklearn.preprocessing.label_binarize ( #26078 )
...
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
2023-04-04 13:13:31 +02:00
Thomas J. Fan
9c4f023528
FIX Improves nan support in LabelEncoder ( #22629 )
2022-10-28 08:32:09 +02:00
Thomas J. Fan
02ebf9e68f
MNT Adds dict typing hint to _parameter_constraints for mypy ( #24301 )
2022-08-30 11:01:10 +02:00
Sabri Monaf Sabri
4b2a17831b
DOC Fixed sklearn.preprocessing._label.label_binarize docstring ( #24002 )
...
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2022-07-26 09:21:43 +02:00
Sangam
fd60379f95
MAINT parameter validation for Multilabel Binarizer ( #23802 )
...
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
2022-07-01 00:06:34 +02:00
Sangam
577a1d2a4f
MAINT validate parameter in LabelBinarizer ( #23592 )
...
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
2022-06-30 23:05:28 +02:00
krumetoft
c241fe7e5e
FIX validate in `fit` for `LabelBinarizer` estimator ( #21434 )
...
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2021-11-02 11:26:02 +01:00
Olivier Grisel
2571cb2989
Improve validation messages with infinite data ( #21219 )
...
* Improve validation messages with infinite data
* Extend and fix validation tests
* Test and fix extended error message
* data_name => input_name
* Mention estimators that natively support missing values
* More informative error message
* cosmetic
* typo
* Fix broken tests
* Fix test_knn
* Add changelog entry
* Fix broken test for param search models
* Missing input names
* Allow Y and y in estimator checks
* Add missing input names
* Fix input_name for FunctionTransformer
* More missing input names
* Update test
* More test fixes on scores
* Simplify message to avoid to make generic fallback meaningful
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
* More informative estimator checks failure messages
* Make sure the estimator name is passed correctly in _validate_data
* Simplify calls to _validate_data
* Handle estimator name in private _check_y helper
* More specific error message
* Add estimator to check_X_params and check_y_params
* Add .. versionadded flags in public docstrings
* Update changelog
* Improve _validate_data's docstring
* Typo in doc/whats_new/v1.1.rst
* Make _check_estimator_name return None if estimator == None
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
* check_params dict updates with style
* Increase test coverage
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2021-10-29 15:59:57 +02:00
Juan Martin Loyola
dfdaa45f2c
DOC Ensures that MultiLabelBinarizer passes numpydoc validation ( #21315 )
2021-10-20 17:27:18 +02:00
genvalen
304a5e8e16
DOC Ensures that LabelBinarizer passes numpydoc validation ( #20990 )
2021-09-09 11:09:37 +02:00
Christian Lorentzen
c90fae02c2
CLN some code cleansing in preprocessing ( #18686 )
2021-08-31 18:58:56 +02:00
Glòria Macià Muñoz
6503af90fb
DOC Ensures LabelEncoder passes numpydoc validation ( #20456 )
...
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2021-07-06 13:32: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
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
Albert Villanova del Moral
647fcb1ac1
DOC Fix A to uppercase in See Also docstring section ( #18332 )
2020-09-04 10:35:01 -04:00
Frans Larsson
fef3664fb8
DOC Fix doc of defaults in _label.py ( #18220 )
...
Co-authored-by: Juan Carlos Alfaro Jiménez <JuanCarlos.Alfaro@uclm.es>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2020-08-21 20:24:42 +02:00
beatrizsmg
ec1070a212
DOC improve attributes and parameters descriptions in MultiLabelBinarizer ( #17718 )
...
Co-authored-by: Nicolas Hug <contact@nicolas-hug.com>
2020-06-25 18:20:40 +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
Thomas J Fan
d40d993199
CLN Refactors _encode into two functions ( #17101 )
2020-05-12 14:23:00 -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
Facundo Ferrín
4346c82ca4
[MRG] Improve error message for None values in OneHotEncoder and OrdinalEncoder ( #16713 )
2020-03-21 14:29:04 +01:00
Paula
ff878d60aa
DOC add versionadded to OneHotEcoder, LabelEncoder ( #15506 )
...
and OrdinalEncoder
2019-11-15 22:01:55 +01:00
Léonard Binet
846e6a38b0
ENH Support for list of lists or list of arrays multilabel indicator (continuation) ( #14865 )
2019-10-25 11:37:18 +11:00
Thomas J Fan
15d5ef04df
MNT Make modules private in preprocessing ( #15323 )
2019-10-22 11:37:05 +08:00