Commit Graph

113 Commits

Author SHA1 Message Date
brett koonce f2186aa19d various minor spelling tweaks (#9783) 2017-09-17 17:04:23 +02: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
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
Vincent Pham 31d3c3e7c5 fixed error in documentation (#8014) 2016-12-08 11:59:58 -05:00
Patrick Carlson b86e6f3c31 extra word in code comment (#7561) 2016-10-03 18:42:51 +02:00
Shashank Shekhar 474483efa4 Added user guide link in function_tranformer docstring (#5785)
* Added user guide link in function_tranformer docstring

* Added function_transformer tag to preprocessing user guide
2016-09-12 18:33:22 -04:00
Olivier Grisel c931bf0603 FIX #7293: StandardScaler.with_mean in preprocessing doc 2016-08-31 14:08:56 +02:00
Joel Nothman 0a0bf2478e Revert "ENH: Add indicator features to imputer output (#6607)" (#7292)
This reverts commit 18396be8cb as it was
merged when incomplete.
2016-08-30 21:28:01 +10:00
Preston Parry 454b0f239a minor wording fix
Changes "the scikit" to "scikit-learn". While both might be technically accurate, explicitly calling the package "scikit-learn" helps with naming consistency.
2016-08-20 00:29:20 -07:00
JulianKahnert 0493d714a0 fix of typo (#7137) 2016-08-04 13:52:04 +02:00
Óscar Nájera bd5cecce44 update references link namespace 2016-08-03 20:23:50 +02:00
Maniteja Nandana 18396be8cb ENH: Add indicator features to imputer output 2016-04-14 12:21:16 +05:30
Rémy Léone 9b7176dd9d [DOC] Fix broken links 2016-03-23 12:45:34 -07:00
MechCoder 1e23805861 DOC: Correct confusing docs of n_values in OneHotEncoder 2015-11-02 15:19:33 -05:00
Raghav R V a87011262a FIX precision to float64 across the codebase 2015-10-16 11:20:29 +02:00
Raghav R V 4f4c3598e6 FIX dtypes to conform to the stricter type cast rules of numpy 1.10
FIX set copy to (copy & whiten).

FIX/DOC Use float outputs for doctest
2015-10-15 18:21:51 +02:00
giorgiop 6a5a2f7960 partial_fit for scalers 2015-10-13 11:37:00 +02:00
Lars Buitinck b09afb08be DOC/MAINT final touches to FunctionTransformer
* copyedit doc
* give the module an underscore (we should do this to all private modules...)
* use public import path in test
* change all logs to log1p to prevent warning in test and because it's
  genuinely useful for frequency data
* what's new
2015-08-03 22:12:19 +02:00
Andreas Mueller 9d14f7352e ENH: Renames CallableTransformer -> FunctionTransformer.
Makes `pass_y` an argument to FunctionTransformer to indicate that the
labels should be passed to the wrapped function.
2015-08-03 11:45:16 -04:00
Joe Jevnik cb0916c440 ENH: Adds CallableTransformer
CallableTransformer allows a user to convert a standard python callable
into a transformer for use in a Pipeline.
2015-08-03 11:45:16 -04:00
Thomas Unterthiner e7e22d1e55 DOC Improve wording in minmax_scale documentation 2015-07-05 18:51:55 +02:00
Thomas Unterthiner 26fbfe6f2e ENH add minmax_scale 2015-07-01 23:27:35 +02:00
jnothman dc8578ae41 Merge pull request #4828 from untom/maxabs_scaler
[MRG] add MaxAbsScaler
2015-06-12 05:17:07 +10:00
Thomas Unterthiner ab734b7a39 ENH add MaxAbsScaler 2015-06-11 16:08:17 +02:00
= 0233cce559 add connection to kernel method 2015-06-08 15:40:07 -04:00
= 1676a31e4f add polynomial features to user guide 2015-06-08 13:33:25 -04:00
Andreas Mueller 0650d5502e DOC adding backlinks to docstrings 2015-06-03 00:24:04 -04:00
Andreas Mueller 0b07536990 Merge pull request #4125 from untom/RobustScaler
[MRG + 2] ENH RobustScaler
2015-05-26 18:02:41 -04:00
Thomas Unterthiner c12ae6047b Fix documentation errors 2015-05-21 15:36:42 +02:00
Preston Parry 1b69807f44 DOC Grammar fix in preprocessing 2015-04-04 20:55:06 -07:00
Thomas Unterthiner 22f718dcce ENH Added RobustScaler 2015-01-19 21:13:31 +01:00
MechCoder d71c52929a Handle_unknown option to OneHotEncoder
OneHotEncoder fails with a error that is not helpful if a missing
categorical feature is present during transformation.
Add handle_unknown with an "error" and an "ignore" option.
2014-10-24 13:23:53 +02:00
Joel Nothman 9af14b3587 DOC restructure data transformation user guide 2014-09-11 16:54:03 +10:00
Lars Buitinck dd78f1094a DOC rename "imputation.py" to "missing_values.py"
Should make it easier to find.
2014-08-29 23:28:11 +02:00
Lars Buitinck c176ced74d DOC double backticks for fixed-width (code) font
Fixes #3337. Also other minor fixes while I was at it.
2014-07-06 14:18:33 +02:00
Hamzeh Alsalhi 2bfca14c49 ENH sparse matrix support in label binarization 2014-06-25 16:15:19 -04:00
Joel Nothman 18c399e20a MAINT deprecate sequences of sequences support
* add warnings
 * provide alternative binarizer, sklearn.preprocessing.MultiLabelBinarizer
 * fix documentation
2014-06-05 11:20:35 +02:00
Gael Varoquaux 39f3a76dd6 Merge pull request #2199 from GaelVaroquaux/hc_linkage
[MRG+1] Hierarchical Agglomerative Clustering
2014-03-05 07:00:27 +01:00
Gael Varoquaux 2a4402b504 DOC: rmk different feature scaling in agglomeration 2014-03-04 20:13:54 +01:00
Lars Buitinck caf0035de2 TST fix failing doctest for OneHotEncoder 2014-03-01 17:58:32 +01:00
Gael Varoquaux 3ac34554e4 MISC: documentation and cosmits
Address comments by @jnothman
2014-02-17 11:20:42 +01:00
Gael Varoquaux 445eee2471 DOC: link FeatureAgglomeration better to dim red 2014-02-17 10:07:22 +01:00
Gael Varoquaux 64efbd66c7 MISC+DOC: documentation for FeatureAgglomeration
and many cosmetic comments points out in review.
2014-02-13 00:55:46 +01:00
Gilles Louppe 60a0c2f46c FIX: don't force finite in imputation 2014-01-03 09:49:14 +01:00
Lars Buitinck 40683d5167 DOC while we're at it, link to our own RBM docs 2013-08-13 17:31:40 +02:00
Roland Szabo 90988fdc0c [DOC] Remove that RBM's are not implemented yet 2013-08-13 16:17:03 +03:00
Lars Buitinck 9d893548aa DOC minimal kernel centering narrative docs 2013-07-25 17:58:26 +02:00
Lars Buitinck 96a24e5953 DOC copyedit preprocessing docs 2013-07-25 17:28:13 +02:00