Daniela Fernandes
671178e5d9
TST replace pytest.warns(None) in preprocessing/test_common.py ( #22936 )
...
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
2022-03-26 10:45:31 -04:00
Daniela Fernandes
f3f8967a3d
TST replace pytest.warns(None) in test_function_transformer.py ( #22937 )
2022-03-24 22:07:29 +01:00
Daniela Fernandes
14a4934eb5
TST removed pytest.warns(None) in test_data.py ( #22938 )
2022-03-24 22:05:10 +01:00
Thomas J. Fan
c3f81c1d48
FIX PowerTransformer Yeo-Johnson auto-tuning on significantly non-Gaussian data ( #20653 )
...
Co-authored-by: Olivier Grisel <olivier.grisel@gmail.com>
2022-03-24 17:42:02 +01:00
Thomas J. Fan
51fddb7fdc
ENH Adds encoded_missing_value to OrdinalEncoder ( #21988 )
2022-03-23 13:26:34 +01:00
Dimitri Papadopoulos Orfanos
3d4ee9e9dc
MNT Remove utf-8 encoding declarations ( #21260 )
...
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
2022-03-14 17:59:36 +01:00
Thomas J. Fan
7f0006c8aa
ENH Adds infrequent categories to OneHotEncoder ( #16018 )
...
* ENH Completely adds infrequent categories
* STY Linting
* STY Linting
* DOC Improves wording
* DOC Lint
* BUG Fixes
* CLN Address comments
* CLN Address comments
* DOC Uses math to description float min_frequency
* DOC Adds comment regarding drop
* BUG Fixes method name
* DOC Clearer docstring
* TST Adds more tests
* FIX Fixes mege
* CLN More pythonic
* CLN Address comments
* STY Flake8
* CLN Address comments
* DOC Fix
* MRG
* WIP
* ENH Address comments
* STY Fix
* ENH Use functiion call instead of property
* ENH Adds counts feature
* CLN Rename variables
* DOC More details
* CLN Remove unneeded line
* CLN Less lines is less complicated
* CLN Less diffs
* CLN Improves readiabilty
* BUG Fix
* CLN Address comments
* TST Fix
* CLN Address comments
* CLN Address comments
* CLN Move docstring to userguide
* DOC Better wrapping
* TST Adds test to handle_unknown='error'
* ENH Spelling error in docstring
* BUG Fixes counter with nan values
* BUG Removes unneeded test
* BUG Fixes issue
* ENH Sync with main
* DOC Correct settings
* DOC Adds docstring
* DOC Immprove user guide
* DOC Move to 1.0
* DOC Update docs
* TST Remove test
* DOC Update docstring
* STY Linting
* DOC Address comments
* ENH Neater code
* DOC Update explaination for auto
* Update sklearn/preprocessing/_encoders.py
Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>
* TST Uses docstring instead of comments
* TST Remove call to fit
* TST Spelling error
* ENH Adds support for drop + infrequent categories
* ENH Adds infrequent_if_exist option
* DOC Address comments for user guide
* DOC Address comments for whats_new
* DOC Update docstring based on comments
* CLN Update test with suggestions
* ENH Adds computed property infrequent_categories_
* DOC Adds where the infrequent column is located
* TST Adds more test for infrequent_categories_
* DOC Adds docstring for _compute_drop_idx
* CLN Moves _convert_to_infrequent_idx into its own method
* TST Increases test coverage
* TST Adds failing test
* CLN Careful consideration of dropped and inverse_transform
* STY Linting
* DOC Adds docstrinb about dropping infrequent
* DOC Uses only
* DOC Numpydoc
* TST Includes test for get_feature_names_out
* DOC Move whats new
* DOC Address docstring comments
* DOC Docstring changes
* TST Better comments
* TST Adds check for handle_unknown='ignore' for infrequent
* CLN Make _infrequent_indices private
* CLN Change min_frequency default to None
* DOC Adds comments
* ENH adds support for max_categories=1
* ENH Describe lexicon ordering for ties
* DOC Better docstring
* STY Fix
* CLN Error when explicity dropping an infrequent category
* STY Grammar
Co-authored-by: Joel Nothman <joel.nothman@gmail.com>
Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2022-03-14 15:48:18 +01:00
Thomas J. Fan
36c6c74e5f
FIX Fixes KBinsDiscretizer for encode=ordinal ( #22735 )
...
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2022-03-09 11:10:50 -08:00
Jérémie du Boisberranger
34f9dbf541
MNT Clean fixes and compat for old versions of our dependencies ( #22642 )
...
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2022-03-02 11:32:06 +01:00
Maxwell
dbcd4d5f39
FIX FunctionTransformer check_input fails for object type input ( #19916 )
...
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2022-02-17 10:16:56 -05:00
Thomas J. Fan
1fc86b6aac
MNT Update black to stable version ( #22474 )
2022-02-15 11:36:26 +01:00
Thomas J. Fan
4ff0767087
ENH Better error message for check_scalar ( #22218 )
...
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2022-02-11 16:15:30 +01:00
Guillaume Lemaitre
229bd226ab
MNT remove _pairwise attribute ( #21594 )
2022-02-09 16:58:01 +01:00
Thomas J. Fan
d7feac0ccf
ENH Adds feature_names_out to preprocessing module ( #21079 )
...
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: 赵丰 (Zhao Feng) <616545598@qq.com>
Co-authored-by: Niket Jain <51831161+nikJ13@users.noreply.github.com>
Co-authored-by: Loïc Estève <loic.esteve@ymail.com>
2022-02-07 12:09:57 +01:00
Thomas J. Fan
9f85c9d449
TST Better info when checking for no warnings in tests ( #22362 )
2022-02-03 11:42:48 +01:00
Aurélien Geron
d23d589587
ENH Add get_feature_names_out to FunctionTransformer ( #21569 )
2021-11-30 13:31:17 -05: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
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
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
Dimitri Papadopoulos Orfanos
f71c031314
DOC Typos found by codespell ( #21069 )
2021-09-17 19:04:54 +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
Thomas J. Fan
f500326a9a
CLN Removes unneeded test
2021-09-01 18:13:04 -07:00
Guillaume Lemaitre
d6735f4851
FIX accept large Python numeric in OrdinalEncoder ( #20727 )
2021-08-16 23:12:35 +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
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
Christian Lorentzen
bb2de70a17
ENH add minimal degree support to PolynomialFeatures ( #20250 )
2021-06-26 13:03:35 +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
Jérémie du Boisberranger
28bc843d88
MNT deprecate n_input_features_ in PolynomialFeatures ( #20240 )
2021-06-11 18:20:24 +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
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
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
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
Christian Lorentzen
27f1c737f2
FEA Add SplineTransformer ( #18368 )
2021-01-24 10:53:27 +01:00