pelennor
5f0a69585b
Doc fix typos in sklearn.preprocessing._encoders ( #21910 )
2021-12-07 14:32:43 +01:00
Aurélien Geron
d23d589587
ENH Add get_feature_names_out to FunctionTransformer ( #21569 )
2021-11-30 13:31:17 -05: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
Thomas J. Fan
60cf98bc89
FIX Ignore distutils warning in [scipy-dev] + fix numpy 1.22 support in OneHotEncoder ( #21517 )
...
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2021-11-04 12:17:50 +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
Jérémie du Boisberranger
1f8825c8dd
MNT Centralize common cython compiler directives ( #21512 )
2021-11-03 13:26:23 +01: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
Juan Martin Loyola
fe9b706368
DOC fix hyperlinkg to MultiLabelBinarizer ( #21331 )
2021-10-20 17:26:27 +02:00
Thomas J. Fan
f3f04ed603
DOC Doc fix for one_hot_encoder ( #21074 )
2021-10-20 14:00:57 +02:00
Dimitri Papadopoulos Orfanos
10a5468e90
DOC Remove some str/unicode leftovers from Python 2 ( #21270 )
...
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2021-10-08 13:55:15 +02:00
Pinky
cd87551a29
DOC Ensures that SplineTransformer passes numpydoc validation ( #21248 )
...
* Remove SplineTransformer from DOCSTRING_IGNORE_LIST
* Fix numpydocs from SplineTransformer
2021-10-07 12:32:10 +02:00
Juan Martin Loyola
5ea46a5fba
DOC Ensures that PolynomialFeatures passes numpydoc validation ( #21239 )
2021-10-05 12:01:19 +02:00
Thomas J. Fan
d1285a9232
DOC Adds missing imports into examples and test them ( #21186 )
2021-09-29 13:51:33 +02:00
Juan Martin Loyola
6e2388f901
DOC Ensures that RobustScaler passes numpydoc validation ( #21155 )
2021-09-27 10:34:03 +02:00
Dimitri Papadopoulos Orfanos
f71c031314
DOC Typos found by codespell ( #21069 )
2021-09-17 19:04:54 +02:00
Manimaran
21fdba3bc9
DOC Ensures that QuantileTransformer passes numpydoc validation ( #21065 )
2021-09-16 14:00:34 +02:00
Juan Martin Loyola
8023efe0c0
DOC Ensures that Normalizer passes numpydoc validation ( #21061 )
2021-09-16 10:01:03 +02:00
Bharat Raghunathan
129a5d7e86
DOC Ensures that OrdinalEncoder passes numpydoc validation ( #21030 )
...
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2021-09-14 12:08:58 +02:00
Juan Martin Loyola
597df0ad17
DOC Ensures that PowerTransformer passes numpydoc validation ( #21015 )
...
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2021-09-13 17:46:52 +02:00
genvalen
cfbaba1e61
DOC Ensures that KBinsDiscretizer passes numpydoc validation ( #21016 )
2021-09-13 10:55:21 +02:00
genvalen
304a5e8e16
DOC Ensures that LabelBinarizer passes numpydoc validation ( #20990 )
2021-09-09 11:09:37 +02:00
Thomas J. Fan
ba58f3a693
BUG Fixes FunctionTransformer validation in inverse_transform ( #20961 )
2021-09-08 11:01:24 +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
baam
81362c2676
DOC Ensures that FunctionTransformer passes numpydoc validation ( #20939 )
2021-09-06 14:46:13 +02:00
Thomas J. Fan
f500326a9a
CLN Removes unneeded test
2021-09-01 18:13:04 -07:00
Thomas J. Fan
701538a7c8
ENH Adds n_features_in_ and feature_names_in_ to encoders
2021-09-01 18:13:04 -07:00
Christian Lorentzen
c90fae02c2
CLN some code cleansing in preprocessing ( #18686 )
2021-08-31 18:58:56 +02:00
Thomas J. Fan
786c4e5e39
DOC Adds feature_names_in_ to docstrings ( #20787 )
2021-08-26 13:44:45 +02:00
Adrin Jalali
3e7c04fe2c
ENH check_is_fitted calls __is_fitted__ if available ( #20657 )
2021-08-20 12:37:22 +02:00
Guillaume Lemaitre
d6735f4851
FIX accept large Python numeric in OrdinalEncoder ( #20727 )
2021-08-16 23:12:35 +02:00
genvalen
84c30ce432
DOC Ensures that KernelCenterer passes numpydoc validation ( #20698 )
2021-08-07 19:35:01 +02:00
Maxwell
238451d55e
FIX StandardScaler.inverse_transform raise error when the input is a 1d array ( #19752 )
...
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2021-07-23 20:44:52 +02:00
Maxwell
9580530071
FIX OrdinalEncoder.fit should not raise an error `handle_unknown="use_encoded_value"` ( #19906 )
...
Co-authored-by: Adrin Jalali <adrin.jalali@gmail.com>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2021-07-23 18:55:24 +02:00
mlondschien
3a3f1bed10
ENH Allow `sample_weight` in `SplineTransformer.fit` method ( #20526 )
...
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2021-07-21 16:36:52 +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
Glòria Macià Muñoz
59658989d7
DOC Ensures MaxAbsScaler passes numpydoc validation ( #20455 )
2021-07-06 12:30:45 +02:00
genvalen
c79bed337c
DOC Ensures that Binarizer passes numpydoc validation ( #20422 )
...
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
Co-authored-by: Adrin Jalali <adrin.jalali@gmail.com>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2021-06-30 10:03:23 +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
383b53fa91
FIX Uses code literals in deprecated to prevent linking ( #20410 )
...
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2021-06-28 15:49:19 +02:00
Nicolas Miller
70056ef837
DOC Ensures that MinMaxScaler passes numpydoc validation ( #20391 )
2021-06-28 10:31:36 +02:00
Gabriel S Vicente
dbbb88d32a
DOC Ensures that OneHotEncoder passes numpydoc validation ( #20406 )
...
Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>
2021-06-27 08:54:19 +02:00
Nicolas Miller
6a562337f9
DOC Fixes numpydoc validation errors in StandardScalar ( #20368 )
2021-06-26 13:46:25 -04:00
Christian Lorentzen
bb2de70a17
ENH add minimal degree support to PolynomialFeatures ( #20250 )
2021-06-26 13:03:35 +02:00
Thomas J. Fan
81dde3a6e5
STY Ensures that "flake8 ." works ( #20298 )
2021-06-18 15:46:40 +02:00
Thomas J. Fan
351ace7935
STY Uses black's with target_version >= 3.7 ( #20294 )
2021-06-17 15:50:27 -04:00
Thomas J. Fan
82df48934e
MNT Applies black formatting to most of the code base ( #18948 )
2021-06-17 14:21:09 -04:00
Thomas J. Fan
8e26b0c2a2
STY Minor style changes to prepare for black ( #20265 )
2021-06-15 15:43:42 +02:00