Commit Graph

158 Commits

Author SHA1 Message Date
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
Thomas J. Fan 6195a16505
DOC Removes FunctionTransformer example (#17318)
* DOC Removes FunctionTransformer example

* DOC Updates description
2020-06-25 14:27:38 +02:00
Guillaume Lemaitre db85b1264c
DOC improve the documentation of OneHotEncoder for if_binary (#16428) 2020-02-11 18:31:42 +01:00
Johann Faouzi da31c8188d DOC Fix typo in Yeo-Johnson formula (#15280) 2019-10-17 09:01:00 -04:00
Kanika Sabharwal 40c7978a64 use return_X_y=True for load_iris dataset (#14777) 2019-08-24 17:54:16 -04:00
Johann Faouzi 3e22c22818 DOC Use LaTeX for phi in KernelCenterer user manual (#14245) 2019-08-01 11:11:53 +02:00
Rajat Garg 3963d948d1 DOC Normalization is aka spatial sign preprocessing (#12511) 2019-07-03 10:52:55 +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 9ee164baa3 [MRG] DEP remove legacy mode from OneHotEncoder (#13855) 2019-05-29 21:03:29 +10:00
Albert Thomas 2ad8735c50 FIX set n_quantiles to min(n_samples, n_quantiles) in QuantileTransformer (#13333) 2019-03-01 11:23:56 +01:00
Albert Thomas 0f09297cde ENH: simplify transform for uniform output in QuantileTransformer (#12827) 2019-02-26 17:53:38 +01:00
drewmjohnston 350cd4aefa ENH: Add Drop Option to OneHotEncoder. (#12908) 2019-02-26 13:50:21 +01:00
Christos Aridas eb800524dd DOC Correct word in preprocessing [ci skip] (#13216) 2019-02-21 13:53:43 -08:00
Hanmin Qin 09bc27630f DOC Formatting issue in preprocessing.rst 2019-02-21 21:56:21 +08:00
Hanmin Qin ff28c42b19 DOC Wrong statement about KBinsDiscretizer 2019-02-14 22:58:52 +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
Joel Nothman 8e0802813f DOC Move 'for instance' to front 2018-10-04 20:36:34 +10:00
Joel Nothman 5e24762322 DOC add note on discretization creating non-linearity (#12269) 2018-10-04 15:50:09 +08:00
Nicolas Hug 2d232acdeb [MRG] Add Yeo-Johnson transform to PowerTransformer (#11520) 2018-07-20 22:32:12 +02:00
Andreas Mueller 6ecb98eea3 doctest errors "fixed" by skipping 2018-07-17 18:08:42 -05:00
Andreas Mueller b25e222328 MNT misc sphinx website build fixes and dead links (#11532) 2018-07-16 09:13:20 +08:00
Joel Nothman 40d1f00c82 Merge branch 'master' into discrete 2018-07-10 09:46:03 +10:00
Tom Dupré la Tour 5a61af94e2 [MRG+2] Implement two non-uniform strategies for KBinsDiscretizer (discrete branch) (#11272) 2018-07-10 09:29:56 +10:00
Andreas Mueller eec7649236 MAINT Complete 0.20 deprecations (#9570) 2018-06-24 23:06:26 +10:00
Joris Van den Bossche 007aa710bd FEA Refactor CategoricalEncoder into OneHotEncoder and OrdinalEncoder (#10523)
Deprecated some OneHotEncoder behaviour
2018-06-21 19:27:41 +10:00
Hanmin Qin 9603c3fb30 doc test 2018-06-04 23:45:30 +08:00
Hanmin Qin 0be6e848da doc test 2018-06-04 22:33:55 +08:00
Joel Nothman f737fe6af3
Merge branch 'master' into discrete 2018-05-30 12:56:45 +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
Kumar Ashutosh 94ed5a88bd DOC Removes Imputer References from docs (#10750) 2018-03-13 23:48:26 +08:00
Hanmin Qin 98eb09e920
Revert #10558 Deprecate axis parameter in imputer (#10635) 2018-02-14 18:55:03 +08:00
Hanmin Qin 52aaf82692 [MRG+1] Deprecate axis parameter in imputer (#10558) 2018-02-08 17:45:32 +11:00
Eric Chang d8483dfee0 [MRG+1] ENH Add standardize flag to PowerTransformer (#10316) 2017-12-14 11:22:27 +01:00
Hanmin Qin ef57c34919
Merge branch 'master' into discrete 2017-12-06 14:21:49 +08:00
Eric Chang 62e9bb8def Feature: Implement PowerTransformer (#10210) 2017-12-06 08:29:10 +11:00
Hanmin Qin 070c9695fd Merge branch 'master' into discrete 2017-11-30 14:38:28 +08:00
Joel Nothman 6f077a6c57 DOC clearer wording in QuantileTransformer user guide 2017-11-28 09:36:42 +11:00
Hanmin Qin 4e60a3d33f drop duplicate section 2017-11-24 09:15:17 +08:00
Tom Dupré la Tour 0a91bce8ee Merge branch 'master' into discrete
Conflicts:
	doc/modules/preprocessing.rst
2017-11-23 13:53:24 +01:00
Joris Van den Bossche a2ebb8cfd2 ENH: new CategoricalEncoder class (#9151) 2017-11-21 20:03:41 +11:00
Guillaume Lemaitre 8472350e5c [MRG + 1] ENH add check_inverse in FunctionTransformer (#9399)
* EHN add check_inverse in FunctionTransformer

* Add whats new entry and short narrative doc

* Sparse support

* better handle sparse data

* Address andreas comments

* PEP8

* Absolute tolerance default

* DOC fix docstring

* Remove random state and make check_inverse deterministic

* FIX remove random_state from init

* PEP8

* DOC motivation for the inverse

* make check_inverse=True default with a warning

* PEP8

* FIX get back X from check_array

* Andread comments

* Update whats new

* remove blank line

* joel s comments

* no check if one of forward or inverse not provided

* DOC fixes and example of filterwarnings

* DOC fix warningfiltering

* DOC fix merge error git
2017-10-25 16:49:28 -04:00
brett koonce f2186aa19d various minor spelling tweaks (#9783) 2017-09-17 17:04:23 +02:00
Guillaume Lemaitre a099c265ff [MRG] DOC fix link to user guide (#9705) 2017-09-08 13:39:26 +10:00
Hanmin Qin eef7bdb901 add encoding option to KBinsDiscretizer (#9647) 2017-09-07 23:48:30 +10:00
Joel Nothman 56902d3dc9 Merge branch 'master' into discrete 2017-08-31 19:03:29 +10:00
Guillaume Lemaitre 89b02af431 [MRG+1] EHN Accept 1D array for preprocessing functions and update doc (#9596)
* EHN/TST robust_scale accepts 1D array

* DOC update doc for preprocessing functions
2017-08-22 19:08:47 +03:00
Naoya Kanai f6c7080ee5 DOC Clarify RobustScaler behavior with sparse input (#8858) 2017-07-29 22:23:46 +10:00
hlin117 7ef342ee89 ENH add fixed-width discretizer 2017-07-12 18:20:14 +10:00
Joris Van den Bossche 2537c313a5 DOC: fix links to examples (#9102) 2017-06-12 10:54:30 +02:00
Guillaume Lemaitre 26a1027a83 [MRG+1] QuantileTransformer (#8363)
* resurrect quantile scaler

* move the code in the pre-processing module

* first draft

* Add tests.

* Fix bug in QuantileNormalizer.

* Add quantile_normalizer.

* Implement pickling

* create a specific function for dense transform

* Create a fit function for the dense case

* Create a toy examples

* First draft with sparse matrices

* remove useless functions and non-negative sparse compatibility

* fix slice call

* Fix tests of QuantileNormalizer.

* Fix estimator compatibility

* List of functions became tuple of functions
* Check X consistency at transform and inverse transform time

* fix doc

* Add negative ValueError tests for QuantileNormalizer.

* Fix cosmetics

* Fix compatibility numpy <= 1.8

* Add n_features tests and correct ValueError.

* PEP8

* fix fill_value for early scipy compatibility

* simplify sampling

* Fix tests.

* removing last pring

* Change choice for permutation

* cosmetics

* fix remove remaining choice

* DOC

* Fix inconsistencies

* pep8

* Add checker for init parameters.

* hack bounds and make a test

* FIX/TST bounds are provided by the fitting and not X at transform

* PEP8

* FIX/TST axis should be <= 1

* PEP8

* ENH Add parameter ignore_implicit_zeros

* ENH match output distribution

* ENH clip the data to avoid infinity due to output PDF

* FIX ENH restraint to uniform and norm

* [MRG] ENH Add example comparing the distribution of all scaling preprocessor (#2)

* ENH Add example comparing the distribution of all scaling preprocessor

* Remove Jupyter notebook convert

* FIX/ENH Select feat before not after; Plot interquantile data range for all

* Add heatmap legend

* Remove comment maybe?

* Move doc from robust_scaling to plot_all_scaling; Need to update doc

* Update the doc

* Better aesthetics; Better spacing and plot colormap only at end

* Shameless author re-ordering ;P

* Use env python for she-bang

* TST Validity of output_pdf

* EXA Use OrderedDict; Make it easier to add more transformations

* FIX PEP8 and replace scipy.stats by str in example

* FIX remove useless import

* COSMET change variable names

* FIX change output_pdf occurence to output_distribution

* FIX partial fixies from comments

* COMIT change class name and code structure

* COSMIT change direction to inverse

* FIX factorize transform in _transform_col

* PEP8

* FIX change the magic 10

* FIX add interp1d to fixes

* FIX/TST allow negative entries when ignore_implicit_zeros is True

* FIX use np.interp instead of sp.interpolate.interp1d

* FIX/TST fix tests

* DOC start checking doc

* TST add test to check the behaviour of interp numpy

* TST/EHN Add the possibility to add noise to compute quantile

* FIX factorize quantile computation

* FIX fixes issues

* PEP8

* FIX/DOC correct doc

* TST/DOC improve doc and add random state

* EXA add examples to illustrate the use of smoothing_noise

* FIX/DOC fix some grammar

* DOC fix example

* DOC/EXA make plot titles more succint

* EXA improve explanation

* EXA improve the docstring

* DOC add a bit more documentation

* FIX advance review

* TST add subsampling test

* DOC/TST better example for the docstring

* DOC add ellipsis to docstring

* FIX address olivier comments

* FIX remove random_state in sparse.rand

* FIX spelling doc

* FIX cite example in user guide and docstring

* FIX olivier comments

* EHN improve the example comparing all the pre-processing methods

* FIX/DOC remove title

* FIX change the scaling of the figure

* FIX plotting layout

* FIX ratio w/h

* Reorder and reword the plot_all_scaling example

* Fix aspect ratio and better explanations in the plot_all_scaling.py example

* Fix broken link and remove useless sentence

* FIX fix couples of spelling

* FIX comments joel

* FIX/DOC address documentation comments

* FIX address comments joel

* FIX inline sparse and dense transform

* PEP8

* TST/DOC temporary skipping test

* FIX raise an error if n_quantiles > subsample

* FIX wording in smoothing_noise example

* EXA Denis comments

* FIX rephrasing

* FIX make smoothing_noise to be a boolearn and change doc

* FIX address comments

* FIX verbose the doc slightly more

* PEP8/DOC

* ENH: 2-ways interpolation to avoid smoothing_noise

Simplifies also the code, examples, and documentation
2017-06-10 01:15:46 +02:00