Commit Graph

90 Commits

Author SHA1 Message Date
Thomas J. Fan d319344dff
ENH Adds polars output support to ColumnTransformer (#26683)
Co-authored-by: Christian Lorentzen <lorentzen.ch@gmail.com>
Co-authored-by: Adrin Jalali <adrin.jalali@gmail.com>
2023-12-04 13:25:35 +00:00
Adrin Jalali 24b782f8b3
API ColumnTransformer.transformers_: passthrough -> FunctionTransformer (#27204)
Co-authored-by: Christian Lorentzen <lorentzen.ch@gmail.com>
2023-10-05 10:50:18 +00:00
Milton Gomez 856fbd079b
TST Extend tests for `scipy.sparse.*array` in `sklearn/cluster/tests/test_dbscan.py` + `test_birch.py` + `test_column_transformer.py` (#27097) 2023-08-23 18:22:08 +02:00
Adrin Jalali 96b5814de7
ENH add metadata routing to ColumnTransformer (#27005)
Co-authored-by: Omar Salman <omar.salman@arbisoft.com>
2023-08-21 12:58:39 +00:00
Thomas J. Fan 8c054b67a8
TST Be more explicit in test_column_transformer_dataframe test (#26667) 2023-06-22 16:31:16 +02:00
Adrin Jalali 42173fdb34
MNT add isort to ruff's rules (#26649) 2023-06-21 17:50:07 +02:00
Thomas J. Fan 825e892e8c
FIX Sets remainder's output in ColumnTransformer (#26323) 2023-06-07 15:47:44 +00:00
Thomas J. Fan a8c37fefae
FIX Improve ColumnTransformer error when indexes are different (#26286) 2023-06-06 11:33:38 +02:00
Adrin Jalali 893d5accaf
MNT Update black to 23.3.0 (#26110) 2023-04-06 12:14:16 -04:00
Thomas J. Fan 9b2cce5729
FIX ColumnTransformer supports empty selection for pandas output (#25570)
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
2023-02-09 10:26:44 +00:00
Loïc Estève fba66ded6c
FIX Allow tuple for ColumnTransformer 'transformers' parameter (#25222) 2022-12-22 14:32:12 +01:00
Guillaume Lemaitre ce89a4ff15
MAINT use parameter validation framework for ColumnTransformer (#25137)
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
2022-12-19 11:45:29 -05:00
Thomas J. Fan 7dcb5efb47
ENH Improve set_output compatibility in ColumnTransformer (#24699)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2022-11-17 19:03:34 +01:00
Thomas J. Fan 2a6703d9e8
ENH Introduces set_output API for pandas output (#23734)
* Introduces set_output API for all transformers

* TransformerMixin inherits from _SetOutputMixin

* Adds tests

* Adds whatsnew

* Adds example on using set_output API

* Adds developer docs for set_output
2022-10-13 00:19:12 +02:00
Jérémie du Boisberranger 2708aac034
MAINT Clean deprecation for 1.2: get_feature_names (#24395)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2022-10-03 09:46:10 +02:00
Rushil Desai 7134e4183c
API Rename OneHotEncoder option sparse to sparse_output (#24412)
Co-authored-by: Christian Lorentzen <lorentzen.ch@gmail.com>
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
2022-09-16 13:46:53 +02:00
randomgeek78 7acb24752f
FIX ColumnTransformer.get_feature_names_out with string slices (#22913)
* FIX ColumnTransformer.get_feature_names_out with string slices

* Fixed black formatting

* Added tests

* Updated whats new 1.1 section

* Simplified logic and added slices containing two elements

* Fixed black linting

* Linting cleanup, revert API change

* Fixed linting
2022-03-31 15:04:20 +02:00
randomgeek78 fbfe98fd92
FIX Fix ColumnTransformer.get_feature_names_out with slices (#22775) 2022-03-15 15:06:03 -04: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
Thomas J. Fan 017eb3fcff
API Change ColumnTransformer parameter name to verbose_feature_names_out (#21080) 2021-09-21 17:16:51 +02:00
Dimitri Papadopoulos Orfanos f71c031314
DOC Typos found by codespell (#21069) 2021-09-17 19:04:54 +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 0417fa7455
TST Adds dtype check for feature_names_in_ (#20891) 2021-09-01 10:07:17 +02:00
Thomas J. Fan 7e7cdd6dac
ENH Adds feature_names_in_ to ColumnTransformer (#20839)
Co-authored-by: Christian Lorentzen <lorentzen.ch@gmail.com>
2021-08-26 17:50:08 +02:00
ricardojnf 3c732b9f6a
ENH Adds predict_params to TransformedTargetRegressor (#19244)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2021-08-09 14:11:24 +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
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