Commit Graph

133 Commits

Author SHA1 Message Date
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
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 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
Jérémie du Boisberranger 7f35724cfb
TST Add TransformedTargetRegressor to test_meta_estimators_delegate_data_validation (#20175)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2021-06-03 13:29:01 +02: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
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
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
Thomas J. Fan f0576399d9
DOC Adds version added to output_indices_ in ColumnTransformer (#19815) 2021-04-02 18:00:45 -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
Thomas J. Fan 95fa18f278
TST Fixes docstring ordering and test_docstring_parameters (#19048) 2021-02-12 11:35:05 +01:00
Thomas J. Fan 8965abb264
CLN Removes duplicated or unneeded code in ColumnTransformer (#19261) 2021-01-26 14:42:44 +01: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 06d6f8a9f6
FIX Passes global configuration when spawning joblib jobs (#17634)
* WIP

* BUG Passes context to joblib jobs

* BUG Fix

* BUG Fix

* CLN Moves delayed into fixes

* CLN Adds linter

* REV Revert diff

* DOC Adds comment for removal

* Use a simple implementation
2020-09-21 16:59:42 +02:00
Albert Villanova del Moral 647fcb1ac1
DOC Fix A to uppercase in See Also docstring section (#18332) 2020-09-04 10:35:01 -04:00
Guillaume Lemaitre 9007dc237c
DOC improve documentation of get/set params (#18285)
Co-authored-by: Juan Carlos Alfaro Jiménez <JuanCarlos.Alfaro@uclm.es>
2020-08-31 12:05:53 -04:00
Ram Rachum 61ec6b9b79
MNT Use raise from in 19 modules (#17835) 2020-08-25 08:57:29 +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
Thomas J Fan ee2508ce45
ENH Adds HTML visualizations for estimators (#14180) 2020-04-30 08:31:58 +10:00
Ekaterina Borovikova 4755ae76d2
DOC Add versionchanged and versionadded for v0.20 (#16199)
Co-Authored-By: Adrin Jalali <adrin.jalali@gmail.com>
Co-Authored-By: Chiara Marmo <cmarmo@users.noreply.github.com>
Co-Authored-By: Nicolas Hug <contact@nicolas-hug.com>
2020-04-26 09:29:36 -04:00
lrjball 670b85c9e9
ENH ColumnTransformer.get_feature_names() handles passthrough (#14048) 2020-04-20 01:24:20 +10:00
Adrin Jalali 73813ea180
API make __init__ params in compose module kw-only (#16542)
* API make __init__ params in compose module kw-only

* pep8

* move * to after
2020-03-13 10:38:54 -04: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