Commit Graph

640 Commits

Author SHA1 Message Date
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
Thomas J. Fan 9a13bdfaf1
MNT Adds black config and fixes formatting before black (#19031)
Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>
Co-authored-by: Christian Lorentzen <lorentzen.ch@gmail.com>
2021-06-12 17:14:09 +02:00
Jérémie du Boisberranger 28bc843d88
MNT deprecate n_input_features_ in PolynomialFeatures (#20240) 2021-06-11 18:20:24 +02:00
Guillaume Lemaitre 1cd282d600
DOC add n_features_in_ in the documentation (#20236) 2021-06-09 16:58:03 +02:00
mlondschien 778125645f
Allow `n_knots=None` if knots are explicitly specified in `SplineTransformer` (#20191)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2021-06-07 16:45:22 +02:00
naozin555 67f6a5c6d9
Add missing link to user guide in PolynomialFeatures API documentation (#20146) 2021-05-27 13:44:21 +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
Guillaume Lemaitre 6a562d31e4
ENH improve KernelCenterer documentation and tests (#19901)
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
Co-authored-by: Sylvain Marié <sylvain.marie@schneider-electric.com>
2021-04-27 17:45:20 +02:00
Andrew Delong a67b284f90
FIX Encoder should accept categories having dtype='S' (#19727)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2021-04-21 17:34:28 -04:00
Thomas J. Fan 004b44d007
FIX OneHotEncoder.fit no longer alters the drop parameter (#19924) 2021-04-20 23:29:02 +02: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
Thomas J. Fan 5efcb10c3e
MAINT Vendors packaging/version.py for pep440 versioning (#19826)
* MAINT Vendors packaging/version for pep440 versioning

* ENH Uses folder structure of packaging

* ENH Uses fixes parse_version

* ENH Uses packaging name

* MAINT Adds packaging

* BLD Use vendored version [cd build]
2021-04-19 17:06:38 +02:00
Thomas J. Fan 5d8796b91d
FIX Fixes unknown handling for str dtypes in OrdinalEncoder.transform (#19888)
* FIX Fixes unknown handling for str X in OrdinalEncoder.transform

* DOC Adds whats new

* DOC Move to 0.24.2

* DOC Adds reasoning in comment
2021-04-18 17:31:50 +02:00
Jérémie du Boisberranger 684b7d1955
FIX detect near constant feature in StandardScaler and linear models (#19788)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2021-04-14 13:34:22 +02:00
Guillaume Lemaitre 8a3939aa69
FIX Error for sparse matrix in OrdinalEncoder.inverse_transform (#19879) 2021-04-13 07:59:30 -04:00
Guillaume Lemaitre 767fd63c9d
DOC make documentation consistent regarding types in _encoders.py (#19876) 2021-04-13 12:27:14 +02:00
Roman Yurchak a80b99ca04
DOC Fix versionchanged/versionadded in OneHotEncoder (#16562)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2021-04-09 10:31:53 +02:00
Frederick Robinson bc7cd3189b
ENH more efficient _num_combinations calculation in PolynomialFeatures (#19734) 2021-04-02 10:30:03 +02:00
Thomas J. Fan c9c89cfc85
ENH Adds support for drop + handle_unknown=ignore in the OneHotEncoder (#19041)
Co-authored-by: Olivier Grisel <olivier.grisel@gmail.com>
2021-03-31 16:45:38 +02:00
makoeppel df3f1bda42
FIX Adds check_array to inverse_transform of StandardScaler (#19356)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2021-03-23 09:14:41 -04:00
LSturtew 3e45aeef90
TST Remove assert warn from preprocessing tests (#19691) 2021-03-20 10:07:09 -04:00