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
Thomas J. Fan
831c49aca3
ENH Adds polars output support to `set_output` API ( #27315 )
2023-11-19 22:46:56 +01: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
Adrin Jalali
59d5236724
MNT SLEP6: raise NotImplementedError for meta-estimators not supporting metadata routing ( #27389 )
2023-09-25 13:50:18 +00:00
Guillaume Lemaitre
d8e131c164
DOC add feature_names_in_ in the docsring of ColumnTransformer ( #27130 )
2023-09-12 13:04:31 +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
Stefanie Senger
401c9177f8
DOC Add links to `pipelines` examples in docstrings ( #26904 )
...
Co-authored-by: Adrin Jalali <adrin.jalali@gmail.com>
2023-08-21 13:46:58 +02:00
Guillaume Lemaitre
5d145bf760
DOC fixes intersphinx warnings ( #26779 )
...
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2023-07-10 20:25:35 +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
Jérémie du Boisberranger
9c266cf5d6
MAINT Param validation: decorate all estimators with _fit_context ( #26473 )
2023-06-14 16:52:35 +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
genvalen
3d26e28506
MAINT Parameters validation for compose.make_column_transformer ( #25897 )
...
Co-authored-by: jeremiedbb <jeremiedbb@yahoo.fr>
2023-04-04 19:28:53 +02: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
Guillaume Lemaitre
a7cd0ca44d
FIX propagate configuration to workers in parallel ( #25363 )
...
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2023-01-20 12:44:35 -05:00
Scott Gustafson
0260283326
DOC Add detail about dataframe passthrough columns ( #25423 )
2023-01-18 13:43:38 -05: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
e947074f63
FIX Make sure that set_output is keyword only everywhere ( #24890 )
2022-11-11 11:10:31 +01:00
Alessandro Miola
9c57e77eb3
DOC fix typos in set_output docstrings ( #24804 )
2022-11-01 13:08:23 +01:00
Thomas J. Fan
d4306ba9aa
DOC Improve docstring around set_output ( #24672 )
...
* DOC Improve docstring around set_output
* DOC Improve docs around set_output
* DOC Address comments
* DOC Better grammar
* DOC Improve wording
* DOC Improves docstring in set_config
2022-10-18 16:38:50 -04: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
Thomas J. Fan
02ebf9e68f
MNT Adds dict typing hint to _parameter_constraints for mypy ( #24301 )
2022-08-30 11:01:10 +02:00
Stefanie Molin
30b1f35a71
MAINT Parameter validation for `TransformedTargetRegressor` ( #24219 )
...
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2022-08-29 09:18:15 -04:00
Thomas J. Fan
871892cef9
DOC Adds example on how to use column transformer with vectorizer ( #24018 )
...
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2022-07-28 11:26:29 +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
iofall
ff1c6f3a92
FIX Remove validation from __init__ and set_params for ColumnTransformer ( #22537 )
...
Co-authored-by: iofall <50991099+iofall@users.noreply.github.com>
Co-authored-by: arisayosh <15692997+arisayosh@users.noreply.github.com>
2022-03-09 11:56:06 +01:00
Olivier Grisel
279388d9ed
DOC Improve get_feature_names_out docstrings ( #22718 )
...
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2022-03-07 13:02:12 -05:00
Jérémie du Boisberranger
33e4843e88
MNT remaining clean up for 1.1 ( #22643 )
2022-03-02 14:01:51 +01: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
Atharva Patil
7f61186cbc
DOC Ensures that make_column_transformer passes numpydoc ( #22183 )
...
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2022-01-12 12:41:55 -05:00
Olivier Grisel
2571cb2989
Improve validation messages with infinite data ( #21219 )
...
* Improve validation messages with infinite data
* Extend and fix validation tests
* Test and fix extended error message
* data_name => input_name
* Mention estimators that natively support missing values
* More informative error message
* cosmetic
* typo
* Fix broken tests
* Fix test_knn
* Add changelog entry
* Fix broken test for param search models
* Missing input names
* Allow Y and y in estimator checks
* Add missing input names
* Fix input_name for FunctionTransformer
* More missing input names
* Update test
* More test fixes on scores
* Simplify message to avoid to make generic fallback meaningful
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
* More informative estimator checks failure messages
* Make sure the estimator name is passed correctly in _validate_data
* Simplify calls to _validate_data
* Handle estimator name in private _check_y helper
* More specific error message
* Add estimator to check_X_params and check_y_params
* Add .. versionadded flags in public docstrings
* Update changelog
* Improve _validate_data's docstring
* Typo in doc/whats_new/v1.1.rst
* Make _check_estimator_name return None if estimator == None
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
* check_params dict updates with style
* Increase test coverage
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2021-10-29 15:59:57 +02:00
Juan Martin Loyola
f1b010e796
DOC Ensures that TransformedTargetRegressor passes numpydoc validation ( #21261 )
...
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2021-10-18 14:03:30 +02:00
Thomas J. Fan
d1285a9232
DOC Adds missing imports into examples and test them ( #21186 )
2021-09-29 13:51:33 +02: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
genvalen
642127806a
DOC use backticks for n_samples and n_features in X docstring ( #20914 )
2021-09-02 13:35:03 +02:00
Thomas J. Fan
0417fa7455
TST Adds dtype check for feature_names_in_ ( #20891 )
2021-09-01 10:07:17 +02:00
Igor Ilic
782edfda7c
DOC Fixes numpydoc validation errors in ColumnTransformer ( #20823 )
2021-08-31 15:30:28 +02:00
Thomas J. Fan
c5d9939203
ENH Adds feature_names_in_ to TransformedTargetRegressor ( #20868 )
2021-08-30 09:44:46 +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