Commit Graph

45 Commits

Author SHA1 Message Date
Jérémie du Boisberranger bb5ab53f94
API Config: change default display to "diagram" (#22856) 2022-03-21 15:43:07 +01:00
Reshama Shaikh 7601f87b7a
DOC Display diagram to pipeline example (#18758)
Co-authored-by: Nicolas Hug <contact@nicolas-hug.com>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2021-10-13 16:31:09 +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
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
Albert Villanova del Moral 647fcb1ac1
DOC Fix A to uppercase in See Also docstring section (#18332) 2020-09-04 10:35:01 -04:00
Maren Westermann 70e1558607
DOC shorten links in doc/* modules (#17820)
* shorten links in doc modules

* fix links

* implement suggested changes

* try to fix links with tilde sign

* change back broken links in computing.rst and try make link in faq.rst work

* implement reviewer's suggested changes
2020-08-21 14:31:41 +02:00
Louis Guitton 31c4d8d679
DOC Fix typo in the Pipelines and composite estimators section (#17547) 2020-06-09 11:43:57 -04:00
Lucy Liu 30788de8be
DOC Use california data in compose.rst (#16871) 2020-05-18 16:32:52 +02:00
Thomas J Fan ee2508ce45
ENH Adds HTML visualizations for estimators (#14180) 2020-04-30 08:31:58 +10:00
Thomas J Fan 91e942759f
DOC Make release highlights the first gallery section (#16952) 2020-04-27 11:23:15 -04:00
Kevin Markham ff678129fb
DOC Remove warning from ColumnTransformer in User Guide (#16830) 2020-04-04 20:18:46 -04:00
Chiara Marmo 2de018bf6e DOC Fix some new sphinx warnings. (#15560) 2019-11-07 16:35:31 -05:00
Thomas J Fan 37ac3fd125 FEA Add make_column_selector for ColumnTransformer (#12371) 2019-11-05 09:22:26 -05:00
Adrin Jalali d4803c1eb4 MNT fix some links in compose.rst (#15062) 2019-09-28 11:41:42 -04:00
Allen Akinkunle 01d8e70af0 MNT Use return_X_y=True with load_boston where appropriate (#14678) 2019-08-20 10:08:23 +08:00
Andreas Mueller ec2ea1b5ae DOC add a more complex example to gridsearch for nested parameters (#14548)
* add a more complex example to gridsearch for nested parameters

* slight formatting fixes

* normalize whitespace doesn't do what I thought it does

* more whitespace yay

* Update doc/modules/compose.rst

Co-Authored-By: Thomas J Fan <thomasjpfan@gmail.com>

* Update doc/modules/grid_search.rst

Co-Authored-By: Joel Nothman <joel.nothman@gmail.com>

* reformulate according to Joel's suggestions

* typo

* ellipsis

* Update doc/modules/grid_search.rst

Co-Authored-By: Nicolas Hug <contact@nicolas-hug.com>

* Update doc/modules/grid_search.rst

Co-Authored-By: Nicolas Hug <contact@nicolas-hug.com>

* change the link to point to api docs for pipeline

* one more explicit use of pipeline module for linking to the API docs

* Update doc/modules/grid_search.rst

Co-Authored-By: Joel Nothman <joel.nothman@gmail.com>
2019-08-12 17:43:32 +02:00
Tilen Kusterle a8efe00876 EXA Use return_X_y=True with load_digits where appropriate (#14359) 2019-07-14 17:10:54 +02:00
getgaurav2 b27a37ac31 DOC Add link to ColumnTransformer and user guide to make_column_transformer doc (#14279) 2019-07-12 17:50:59 +02:00
Thomas J Fan 2e7e06b78f [MRG] Doctest with print change only adjusts default options for doctest (#13991) 2019-06-01 10:53:45 +02:00
Guillaume Lemaitre 28480f4cb2 DEP change the default of gamma in SVM (#13801) 2019-05-07 16:12:49 +02:00
Adrin Jalali 384c8ad3d3 ENH add a break_ties parameter to SVC and NuSVC (#12557) 2019-05-03 16:15:49 -04:00
Thomas J Fan 8edd9f9f15 ENH Add verbose option to Pipeline, FeatureUnion, and ColumnTransformer (#11364) 2019-04-22 00:51:21 +10:00
Joel Nothman 22071218b2 ENH Pipeline can now be sliced or indexed (#2568)
* ENH Pipeline can now be sliced or indexed

* Additional assertion imports for testing

* DOC Documentation and example for Pipeline slicing

* FIX put doctest lines in correct order

* DOC improve compose Pipeline docs

* Fix doctest

* Fix merge error

* DOCs improved after Alex's comments

* This is not the right place to change to LinearSVC

* missed one

* DOC add what's new

* Fix doctest

* doctest tweaks

Co-Authored-By: jnothman <joel.nothman@gmail.com>

* doctest tweaks

Co-Authored-By: jnothman <joel.nothman@gmail.com>

* doctest tweaks

Co-Authored-By: jnothman <joel.nothman@gmail.com>

* fix doctests

* Correct step name

* Update doc/whats_new/v0.21.rst

Co-Authored-By: jnothman <joel.nothman@gmail.com>
2019-03-07 11:22:49 +01:00
maikia 2480368856 DOC Change CountVectorizer(...lambda..) to OneHotEncoder() in ColumnTransformer examples (#13212) 2019-02-22 23:17:20 +08:00
surgan12 62d2059804 MNT remove __future__ imports (#12791) 2019-02-02 22:05:06 +08:00
Nicolas Hug a50c03f975 [MRG] Add pprint for estimators - continued (#11705)
* add pprint for estimators

* strip color from length, add color option

* Minor cleaning, fixes, factoring and docs

* Added some basic tests

* Fixed line length issue

* fixed flake8 and added visual test for review

* Fixed test

* Fixed Python 2 issues (inspect.signature import)

* Trying to fix flake8 again

* Added special repr for functions

* Added some other visual tests

* Changed _format_function in to _format_callable

because callable() returns True also for class objects (which we want to
reprensent with their name as well anyway)

* Consistent output in Python 2 and 3

* WIP

* Now using the builtin pprint module

* pep8

* Added changed_only param

* Fixed printing when string would fit in less than line width

* Fixed printing of steps parameter

* Fixed changed_only param for short estimators

* fixed pep8

* Added some more description in docstring

* changed_only is now an option from set_config()

* Put _pprint.py into sklearn/utils, added tests

* Added doctest NORMALIZE_WHITESPACE where needed

* Fixed tests

* fix test-doc

* fixing test that passed before....

* Fixed tests

* Added test for changed_only and long lines

* typo

* Added authors names

* Added license file

* Added ellipsis based on number of elements in sequence + added increasinly aggressive repr strategies

* Updated whatsnew

* dont use increaingly aggressive strategy

* Fixed tests

* Removed LICENSE file and put license text in _pprint.py

* fixed test_base

* Sorted parameters dictionary for consistent output in 3.5

* Actually using OrderedDict...

* Addressed comments

* Added test for NaN changed parameter

* Update whatsnew

* Added example to set_config()

* Removed example

* Added example in gallery

* Spelling
2018-12-19 23:48:21 -05:00
Adrin Jalali a816af7d1d API Change the tuple order in make_column_transformer (#12626) 2018-11-21 11:07:12 +08:00
Thomas Fan 9f842e3496 API Adds passthrough option to Pipeline (#11674) 2018-11-05 13:21:57 +11:00
Thomas Fan 478267ed13 DOC Small fix in compose.rst (#12487) 2018-10-31 13:37:18 +11:00
TakingItCasual f4e7d2b19a Converting http to https (3)... (#12302) 2018-10-05 18:50:31 +02:00
Denis Kataev b020f62250 MNT Apply pep8 to docs code (#12275) 2018-10-05 22:51:42 +08:00
Thomas Fan 5be05c64d9 ENH Adds drop in FeatureUnion (#11640) 2018-09-13 23:20:43 +08:00
Olivier Grisel 40e6c43cb4
Joblib 0.12.2 (#11741)
* joblib 0.12.2

* Export _joblib's register_parallel_backend

* Use latest version of coverage
2018-08-03 12:34:25 +02:00
Joris Van den Bossche cf897de0ab ENH Add sparse_threshold keyword to ColumnTransformer (#11614)
Reasoning: when eg OneHotEncoder is used as part of ColumnTransformer it would cause the final result to be a sparse matrix. As this is a typical case when we have mixed dtype data, it means that many pipeline will have to deal with sparse data implicitly, even if you have only some categorical features with low cardinality. 
Idea was first to change default of `OneHotEncoder` sparse to False, but based on gitter discussion (https://gitter.im/scikit-learn/dev?at=5b4e5a69a94c5255523bc9fc) we decided to let ColumnTransformer switch between both based on a threshold. The user still has full control if he/she wants always or never sparse.
2018-07-25 22:03:04 +10:00
Joris Van den Bossche 277e1250c2 Change default of ColumnTransformer remainder from passthrough to drop (#11603) 2018-07-18 09:57:15 +02:00
Andreas Mueller b25e222328 MNT misc sphinx website build fixes and dead links (#11532) 2018-07-16 09:13:20 +08:00
Thomas Fan 895dfd3f5c ENH Adds transformer support in ColumnTransformer.remainder (#11315) 2018-06-26 23:27:47 +10:00
Joel Nothman 14764061f8
[MRG] DOC fix some sphinx warnings (#11241) 2018-06-21 20:43:21 +10:00
Pedro Morales bd19a84857 DOC add mixed categorical / continuous example with ColumnTransformer (#11197) 2018-06-13 17:18:49 +10:00
Joel Nothman 90a2c57951 EXA Move examples to examples/compose (#11216) 2018-06-11 15:06:21 +08:00
Joris Van den Bossche 0b6308c270 FEA Add ColumnTransformer for heterogeneous data (#9012) 2018-05-30 07:49:21 +10:00
Loïc Estève 20661b5018
TST: only run doctests on numpy 1.14. (#10835)
Fix doctests due to numpy 1.14 formatting changes.
2018-03-27 07:44:40 +02:00
Joel Nothman b43fce5a49 MNT Add sklearn.compose and move TransformedTargetRegressor to it (#10719) 2018-03-16 21:27:03 +08:00