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
Alihan Zihna
1b6a651296
TST Changes assert to pytest style in decomposition, datasets, covariance, compose ( #20104 )
...
Co-authored-by: Alihan Zihna <a.zihna@ckhgbdp.onmicrosoft.com>
2021-05-19 20:12:57 -04:00
Thomas J. Fan
9c3b402f00
ENH Makes ColumnTransformer more flexible by only checking for non-dropped columns ( #19263 )
2021-04-29 21:46:56 +02:00
Oras Phongpanangam
3ff1267a7b
FIX allows TransformedTargetRegressor to take nD target ( #18898 )
...
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2021-04-09 14:19:04 -04:00
Albert Villanova del Moral
132627e28b
FIX Let ColumnTransformer.get_feature_names handle transformers with non-string feature names ( #18459 )
...
Co-authored-by: Alonso Silva Allende <alonsosilva@gmaiil.com>
Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>
2021-04-08 17:21:20 -04:00
Luca Bittarello
26e688d31e
ENH Record output of transformers in ColumnTransformer ( #18393 )
...
Co-authored-by: Nicolas Hug <NicolasHug@users.noreply.github.com>
Co-authored-by: Joel Nothman <78827+jnothman@users.noreply.github.com>
2021-04-02 16:08:16 -04:00
Thomas J. Fan
15c2c72e27
FIX Do not call get_feature_names for empty column selections ( #19579 )
2021-02-27 18:35:40 +01:00
Steven Kolawole
0df7abfc87
TST replace asert_warns by pytest.warns in compose/tests ( #19492 )
...
Co-authored-by: Olivier Grisel <olivier.grisel@gmail.com>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2021-02-27 10:01:46 -05:00
Madhura Jayaratne
313568be79
FIX Enforce strict column name order/count in ColumnTransformer ( #18256 )
...
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2020-11-26 13:22:02 -05:00
Thomas J. Fan
21121f5099
TST Fixes column transformer tests ( #18452 )
2020-09-30 12:39:05 +02:00
Thomas J. Fan
2b655efaf2
FIX Adds remainder in column transformer repr_html ( #18167 )
2020-08-19 18:40:34 +10:00
Thomas J. Fan
3a796a5873
ENH Adds support for list of bools in column transformer ( #17616 )
2020-08-07 14:11:05 +02:00
Juan Carlos Alfaro Jiménez
547ead6c0c
MNT More replacements of numpy aliases with built-in types ( #17707 )
...
* MNT More replacements of numpy aliases with built-in types [scipy-dev]
* MNT More (manual) replacements of numpy aliases
* MNT More (manual) replacements of numpy aliases
* FIX Minor change
* MNT Trigger build [scipy-dev]
* FIX Minor change
* MNT Trigger build [scipy-dev]
* FIX More deprecations of numpy aliases [scipy-dev]
* MNT Silent numpy aliases warnings [scipy-dev]
* FIX Fix silent deprecations
* Trigger build [scipy-dev]
* FIX Add scape characters [scipy-dev]
* FIX Remove package specification from silent
* Trigger build [scipy-dev]
* Revert
2020-06-26 12:45:03 +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
Jake Tae
493f167c76
Replace *kwargs with named arguments in make_column_transformer ( #17623 )
2020-06-17 21:09:13 +02:00
lrjball
670b85c9e9
ENH ColumnTransformer.get_feature_names() handles passthrough ( #14048 )
2020-04-20 01:24:20 +10:00
lrjball
91d5ac882c
TST Fixes test so that whole test isn't skipped if pandas not… ( #16627 )
2020-03-03 20:03:57 -05:00
Nicolas Hug
d205638475
MNT Introduction of n_features_in_ attr with _validate_data mtd ( #16112 )
2020-02-29 09:05:11 -05:00
Christian Lorentzen
21686b7147
ENH Sample weights for ElasticNet ( #15436 )
2020-02-16 14:48:01 +01:00
Roman Feldbauer
9b39c4c4d2
TST Fix unreachable code in tests ( #16110 )
2020-02-16 14:41:26 +01:00
Roman Yurchak
528b044a22
FIX ColumnTransformer.get_feature_names with for empty list of ( #15963 )
...
columns
2020-01-31 14:05:07 +01:00
Thomas J Fan
37ac3fd125
FEA Add make_column_selector for ColumnTransformer ( #12371 )
2019-11-05 09:22:26 -05:00
Nicolas Hug
19ad136223
MNT Replace DeprecationWarning with FutureWarning ( #15080 )
...
* bruteforce renaming
* WIP
* WIP
* some more
* removed weird line
* update -Werror
* testiforest
* again
* Fixed some tests
* fixed some tests
* removed -Werror
* fixed test_docstring_param issue
* fixed some tests
* some more
* renamed to SklearnDeprecationWarning
* pep8
* updated docs
* pep8
* merge
* changed to FutureWarning
* fixes
* Update doc/developers/tips.rst
Co-Authored-By: Adrin Jalali <adrin.jalali@gmail.com>
* avoid duplicates
* fixed warning for deprecations
* Still make CI break if DeprecationWarning isn't caught
* updated one warning
* fixed test
* fixed some renamings
* updated new dep warnings
* fixed bad import
* ignore warnings
* update again
* ignore futurewarning when walking packages
* Fixed test
* pep8
* Added whatsnew
2019-10-29 15:39:26 +01:00
Nicolas Hug
b92455a6b2
MAINT Deprecate all of utils.testing except all_estimators ( #15367 )
2019-10-28 17:28:56 +01:00
Miguel Cabrera
a1f514f2e1
[MGR] TransformedTargetRegressor passes fit_params to regressor ( #14890 )
2019-09-06 12:26:04 +02:00
Andreas Mueller
03ea20db0f
Fix mixin inheritance order, allow overwriting tags ( #14884 )
2019-09-05 10:13:30 +02:00
Samesh Lakhotia
db23c4ece0
MAINT Fix assert raises in sklearn/compose/tests/ ( #14670 )
2019-08-17 01:24:08 -04:00
Adrin Jalali
da6614fe42
ColumnTransformer input feature name and count validation ( #14544 )
2019-08-07 12:19:13 -04:00
Guillaume Lemaitre
992ed41ecc
FIX change boolean array-likes indexing in old NumPy ver… ( #14510 )
2019-08-02 10:46:16 -04:00
Andreas Schuderer
9115ab0ed3
FIX ColumnTransformer: raise error on reordered columns with remainder ( #14237 )
...
* FIX Raise error on reordered columns in ColumnTransformer with remainder
* FIX Check for different length of X.columns to avoid exception
* FIX linter, line too long
* FIX import _check_key_type from its new location utils
* ENH Adjust doc, allow added columns
* Fix comment typo as suggested, remove non-essential exposition in doc
* Add PR 14237 to what's new
* Avoid AttributeError in favor of ValueError "column names only for DF"
* ENH Add check for n_features_ for array-likes and DataFrames
* Rename self.n_features to self._n_features
* Replaced backslash line continuation with parenthesis
* Style changes
2019-07-22 15:36:46 +02:00
Adrin Jalali
19c068a2ec
MNT towards removing assert_equal, etc ( #14222 )
2019-07-01 09:13:32 -04:00
lrjball
0c110701f9
TST Fixed typo in test_column_transformer ( #14128 )
...
In test_column_transformer_dataframe(), X_df2 was created but never used. X_df was mistakely being used in its place. The PR fixes that typo.
2019-06-20 10:43:19 +10:00
Guillaume Lemaitre
76ce7c5b63
DEP change default validate in FunctionTransformer to False( #13817 )
2019-06-13 12:06:01 -04:00
Guillaume Lemaitre
9ee164baa3
[MRG] DEP remove legacy mode from OneHotEncoder ( #13855 )
2019-05-29 21:03:29 +10:00
Guillaume Lemaitre
7fdac52c19
MNT Remove backward compatibility of param order in make_column_transformer ( #13831 )
2019-05-09 20:54:30 +08:00
Thomas J Fan
8edd9f9f15
ENH Add verbose option to Pipeline, FeatureUnion, and ColumnTransformer ( #11364 )
2019-04-22 00:51:21 +10:00
Andreas Mueller
8d815af732
MRG don't warn on changing dtypes in scalers ( #13306 )
...
* don't warn on changing dtypes in scalers
* remove tests for dtype warnings
* len(False) > len(True)
pep8
2019-02-28 09:42:50 +01:00
Guillaume Lemaitre
c5075f5e46
MNT do not call fit twice in TransformedTargetetRegressor ( #11641 )
2019-02-03 10:07:44 +08:00
pierretallotte
ce9dedb1a3
FIX Convert the negative indices to positive ones in ColumnTransformer._get_column_indices ( #13017 )
2019-01-22 22:22:40 +08:00
Rüdiger Busche
d300f406ae
MAINT Simplify super() calls ( #12812 )
2019-01-10 22:27:06 +01:00
Andreas Mueller
952ef6637a
MRG Drop legacy python / remove six dependencies ( #12639 )
2019-01-03 15:50:05 +02:00
Hanmin Qin
aae4e337d2
FIX Fix error in make_column_transformer when columns is pandas.Index ( #12704 )
...
Fixes #12703
2018-12-03 21:22:32 +11:00
Bartosz Michałowski
fa98a72dcc
MNT Replaced all occurrences of assert_true and assert_false with assert ( #12588 )
2018-11-28 09:16:26 +08:00
Adrin Jalali
a816af7d1d
API Change the tuple order in make_column_transformer ( #12626 )
2018-11-21 11:07:12 +08:00
Hanmin Qin
43e3a02085
MNT Remove unused assert_true imports ( #12560 )
2018-11-11 11:08:37 +08:00
Yaroslav Halchenko
362cb3bcab
TST autoreplace assert_true(...==...) with plain assert ( #12547 )
2018-11-11 09:05:34 +08:00
Andreas Mueller
0ad873646b
[MRG] ENH apply sparse_threshold even if all columns are sparse ( #12304 )
2018-10-14 17:18:23 +11:00
Adrin Jalali
58228cb6d3
[MRG+1] ColumnTransformer fix having mixed types in a single passthrough ( #12200 )
...
* fix having mixed types in a single passthrough
* use check_array
* add comment
* Reference the relevant issue in the test
* don't force finite on check_array
* add the whats_new entry
* modify whats_new entry for a [probably] better description.
* raise a value error if columns can't be stacked.
* test the custom ValueError
* take sparse.hstack out of try/catch
* improve whats_new entry
* add comment for the dtype conversion
* change the tests to use an np of dtype 'O' instead
2018-10-04 09:37:39 -04:00
Joris Van den Bossche
09851aca9e
TST update make_column_transformer test + add comment ( #12156 )
...
Follow-up on https://github.com/scikit-learn/scikit-learn/pull/12152
And added comment why transformer_weights is not passed through, see
https://github.com/scikit-learn/scikit-learn/pull/11183#pullrequestreview-125539051
for more discussion
2018-09-25 23:08:21 +08:00