Commit Graph

19 Commits

Author SHA1 Message Date
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