Commit Graph

621 Commits

Author SHA1 Message Date
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
Avi Gupta ca9618c0e2
MNT move PolynomialFeatures from _data.py to _polynomial.py (#19611)
Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>
2021-03-18 14:58:51 +01:00
mlondschien 95b7c680ab
ENH Add periodic extrapolation to SplineTransformer (#19483)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Christian Lorentzen <lorentzen.ch@gmail.com>
2021-03-17 13:46:45 +01:00
mlondschien f0a6f054e0
FIX bug in SplineTransformer.n_features_out_ (#19577) 2021-02-27 13:09:43 +01:00
Olivier Grisel c748e465c7
FIX Don't scale near-constant features to large values (#19527) 2021-02-25 10:21:52 +01:00
Thomas J. Fan 638b7689bb
ENH Adds nan passthrough in OrdinalEncoder (#19069) 2021-02-24 17:23:44 +11:00
Thomas J. Fan 95fa18f278
TST Fixes docstring ordering and test_docstring_parameters (#19048) 2021-02-12 11:35:05 +01:00
Norbert Preining 8066086a85
MNT Consolidate _incremental_weighted_mean_and_var into _incremental_mean_and_var (#19422) 2021-02-10 16:37:14 +01:00
Christian Lorentzen 27f1c737f2
FEA Add SplineTransformer (#18368) 2021-01-24 10:53:27 +01:00
Guillaume Lemaitre 8ea176ae0c
FIX validate handle_unkown strategies in OrdinalEncoder (#19234) 2021-01-22 10:58:41 +01:00
Kunj 1e46db6693
DOC Update docs for StandardScaler.scale_ to include 0 variance (#19124)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2021-01-09 12:47:13 -05: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
Guillaume Lemaitre 2218ec4622
MNT change 0.25 to 1.0 and 0.26 to 1.1 in deprecation messages (#19005)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2020-12-18 16:09:19 +00:00
Oleh Kozynets f9e0b7d55f
FIX VisibleDeprecationWarning in unit tests and docstrings (#18414) 2020-10-28 14:47:57 +01:00
Alexandre Gramfort 5263eea04d
ENH add support for sample_weights in StandardScaler when X is sparse (#18682) 2020-10-28 09:34:17 +01:00
Thomas J. Fan 53add71a54
FIX Fixes encoders for string dtypes (#15763)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2020-10-27 12:08:56 +01: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
Kevin Winata 5d5329c473
FIX raise error in OneHotEncoder.inverse_transform (#14982) 2020-10-19 21:21:47 +02:00
Thomas J. Fan eeddc17a85
ENH Adds missing value support to OneHotEncoder (#17317)
OneHotEncoder supports categorical features with missing values by
considering the missing values as an additional category.
2020-10-09 08:38:33 +02:00
Thomas J. Fan 02fa8f1adb
ENH Deprecates _pairwise attribute and adds pairwise to estimator tags (#18143) 2020-10-07 21:53:36 +11:00