Commit Graph

245 Commits

Author SHA1 Message Date
Thomas Unterthiner d86a629ac7 Added robust scaling example 2015-05-16 11:15:32 +02:00
Thomas Unterthiner 4c6ad90d2a Remove interquartile_scale parameter 2015-05-16 11:13:31 +02:00
Thomas Unterthiner dd2fdbb18c Removed superfluous testcase for robust scaler 2015-05-16 01:50:56 +02:00
Thomas Unterthiner c296e4961e Fixed removal of copy-parameter 2015-05-16 01:50:42 +02:00
Thomas Unterthiner e5fb9dd5a4 Changed outdated test 2015-05-16 00:50:25 +02:00
Thomas Unterthiner 9ffd954ea6 Fixed decprecation warning 2015-05-16 00:50:05 +02:00
Thomas Unterthiner 6aefa534e5 Improved documentation of robust scaler 2015-05-16 00:49:47 +02:00
Thomas Unterthiner 29e8377e19 Export robust_scale and RobustScaler 2015-05-16 00:08:37 +02:00
Thomas Unterthiner 4ff47d9efa Fix documentation in test case 2015-05-15 23:51:17 +02:00
Thomas Unterthiner e5957928d3 Remove 'copy' parameter form RobustScaler functions 2015-05-15 23:48:34 +02:00
Thomas Unterthiner f7ca553d00 Remove warn_if_not_float 2015-05-15 23:47:10 +02:00
Thomas Unterthiner 50c0a8d531 Fix documentation errors. 2015-05-15 23:46:38 +02:00
CJ Carey 5fcad7cc67 Fixing sparse max for older scipy 2015-05-08 15:13:27 -04:00
CJ Carey 84ee88db79 DOC: updating Normalizer docstring for norm='max' 2015-05-08 14:22:55 -04:00
CJ Carey 007ae76cb3 TST: covering norm='max' branches of normalize() 2015-05-08 14:20:54 -04:00
CJ Carey 9e710ed843 WIP: adding 'max' normalizer to normalize()
This still needs tests and doc updates.
2015-04-23 12:58:17 -04:00
Michael Heilman a94301cad2 added an additional test case in test_label.test_label_binarize_with_class_order() 2015-04-02 18:25:52 -05:00
Michael Heilman 03dbec87de fixed reverse sorting issue in label_binarize() 2015-04-02 18:21:21 -05:00
Andreas Mueller 574ebfda85 Merge pull request #4436 from ogrisel/rebased-pr-3747
[MRG+2] FIX make StandardScaler & scale more numerically stable
2015-03-23 11:12:32 -05:00
Olivier Grisel b596dfcfef FIX test for older versions of numpy 2015-03-23 16:41:18 +01:00
Nicolas 04078be7da FIX make StandardScaler & scale more numerically stable
Detect common numerical stability problems in the standardization
routines and try simple mitigation strategies while alos issuing
a warning.
2015-03-23 14:32:33 +01:00
Raghav R V cd2ee7e454 MAINT docstring --> comments to prevent nose from using doc in verbose mode 2015-03-21 11:16:49 +05:30
Andreas Mueller 6beacc3fb6 remove deprecated stuff from 0.17 2015-03-18 14:49:04 -04:00
Loïc Estève a13a5859e8 DOC remove sphinx warnings when generating the doc
and fixes a few other doc problems while I was at it.

The main take-home message is to remember that you need a backslash when
your parameter type description exceeds one line.
2015-03-18 15:49:30 +01:00
Eric Martin ed47b5b744 Directly compute polynomial features.
Polynomial features are computed by iterating over all combinations
of features. For each combination of features, the product of the
columns indexed by the combination is computed.

The fit method is now a no-op, and the transform method works with any
number of features (regardless of what fit was called with).
2015-03-18 13:07:15 +11:00
Andreas Mueller 555b859041 Fix #4351. Rendering of docs in MinMaxScaler. 2015-03-06 12:38:05 -05:00
Andreas Mueller e0f5049a3d minor fixes in docs. 2015-03-03 11:07:18 -05:00
Olivier Grisel feceab6f62 FIX test for consistent handling on empty input data 2015-02-26 10:45:06 +01:00
Andreas Mueller cd5166e82f make check_array convert object to float.
fix dtype check, add test. unfriend all multi-output estimators on facebook.

try to fix what is happening to y (by doing nothing to y)

make test work...

Make everything accept object y or say "invalid label"

fix multioutput linear models

add test for sensible error message.
2015-02-15 12:13:41 -05:00
Loïc Estève 67dcd99d82 TST fix tests with numpy 1.6.1
np.bincount raises an Exception with empty input arrays for numpy versions < 1.6.2
Add utils.fixes.bincount to tackle this issue and use it instead of np.bincount
2015-02-01 15:49:49 +01:00
Thomas Unterthiner bf8cfb6ff6 Check if parameters are fitted 2015-01-20 08:05:05 +01:00
Thomas Unterthiner 22f718dcce ENH Added RobustScaler 2015-01-19 21:13:31 +01:00
Raghav R V b3fbccca38 FIX various mismatch between docstring and signature params
DOC max_iterations -> max_iter. Make it consistent with kmeans

MAINT Replace the deprecated dx parameter with d in the docstrings

MAINT Deprecation warning for max_iterations parameter.
2015-01-16 11:54:57 -05:00
Raghav R V 48e72b5559 TST Add test to check if ValueError is raised if input contains NaN 2015-01-16 19:13:31 +05:30
Raghav R V 731b50bed6 TST Add test to check if warning is raised for integer dtype-ed inputs. 2015-01-16 19:12:13 +05:30
Raghav R V 78233b2d05 FIX scale - Raise ValueError when input contains non finite values. 2015-01-16 19:07:27 +05:30
Wu Jiang 87a823c7c7 Fix a typo in OneHotEncoder's docstring
were --> where.
2015-01-12 14:04:29 -05:00
Raghav R V abd31d2cad MAINT Make uniform the error raised for not fitted condition 2015-01-12 00:33:40 +05:30
Andreas van Cranenburgh 38920a3c6d add 'MultiLabelBinarizer' to __all__
Prevents spurious pylint error.
2015-01-02 22:44:21 +01:00
isms 1945aec44c DOC: Fix LabelBinarizer docstring to rst format bug
- Also add line to make multilabel classification example more instructive
- Use one line for 2D array so syntax highlighting is correct
2014-11-25 13:45:26 -05:00
MechCoder 72db6aeb62 DOC: Make the comment slightly clearer 2014-10-25 10:53:33 +02: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
MechCoder 9622e858b3 MAINT: Move _get_median into sparsefuncs to avoid circular imports 2014-10-21 09:21:30 +02:00
Christian Stade-Schuldt cd7b43ccf9 TST make catch_warnings blocks more robust 2014-10-12 18:20:18 +02:00
Thomas Unterthiner 52adb5cae7 ENH Add 'axis' argument to sparsefuncs.mean_variance_axis 2014-09-03 13:47:48 +02:00
Joel Nothman 5024503183 DOC document MultiLabelBinarizer.sparse_output param 2014-08-22 07:59:48 +10:00
jnothman e1891d801b Merge pull request #3489 from jnothman/attributes-doc
[MRG] DOC fix formatting of Attributes sections in documentation
2014-08-02 20:14:53 +10:00
Hamzeh Alsalhi cbcae0459c FIX Support unseen labels LabelBinarizer and test
This fix restores the default behavior of 0.14.1 for backward
compat.
2014-07-29 16:21:04 +02:00
Joel Nothman b3bdb08964 DOC fix formatting of attributes etc. in docstrings 2014-07-28 19:04:59 +10:00
Lars Buitinck c484a4a844 MAINT remove deprecated code from preprocessing 2014-07-22 15:57:18 +02:00
Joel Nothman be08122e04 DOC Fix example path 2014-07-21 18:42:23 +10:00
Andreas Mueller c235c3b566 ENH add allowed_sparse named argument for @ogrisel 2014-07-20 15:31:28 +02:00
Andreas Mueller 6e2a83b4e1 remove check_arrays stuff and old input validation 2014-07-20 13:31:45 +02:00
Hamzeh Alsalhi 9f45e3730f Modified sparse OvR to handle sparse target data
Defaulted label binarizer to set sparse_output=True when training ovr
classifiers, edited Label binarizer to allow for sparse binary column output
2014-07-18 12:10:50 +02:00
Andreas Mueller b080d93b5e ENH don't convert dataframes in grid search and cross-validation 2014-07-18 10:02:14 +02:00
Gael Varoquaux 7768a3059b ENH: enable y to only implement the array interface
For instance y could be a pandas' dataframe
2014-07-17 11:44:07 +02:00
Vlad Niculae 9c1217ce5b TYPO remove mutli (did you mean Muttley?) 2014-07-15 12:09:45 +02:00
Tomas Kazmar b65e4c8d9d FIX MinMaxScaler behavior on 1D inputs. 2014-07-13 18:35:21 +02:00
Lars Buitinck 9e56b2b469 DOC more explicit docstring for preprocessing.normalize 2014-07-08 17:31:39 +02:00
Lars Buitinck 5358be563a TST crank up preprocessing tests to 99% coverage
Fixes #3347. (nosetests reports no missing lines, so 99% seems to
be a roundoff error, or a hint that 100% coverage is impossible :p)
2014-07-06 14:43:26 +02:00
Hamzeh Alsalhi 7a70e0f8d3 FIX Forced dtype to int when densifying array in label_binarize 2014-06-25 18:04:15 -04:00
Hamzeh Alsalhi 2bfca14c49 ENH sparse matrix support in label binarization 2014-06-25 16:15:19 -04:00
Joel Nothman 68b0a285b4 DOC Note shape of binary binarized output 2014-06-20 14:14:57 -04:00
Joel Nothman 0309793c97 DOC give example of binarizing binary targets
H/T @ilam
2014-06-19 15:40:48 -07:00
Olivier Grisel 5b854514bb Merge branch 'pr/3263': minor fixes from the 0.15.X branch 2014-06-09 14:47:05 +02:00
Andreas Mueller d12d3132c4 Fix some fun column span alignment errors. 2014-06-07 16:48:48 +02:00
Andreas Mueller 67b8601314 Minor fixes in the docs 2014-06-07 16:38:53 +02:00
Lars Buitinck 60e8aeaf22 TST test interaction features outside doctest 2014-06-07 15:00:41 +02:00
Lars Buitinck 7accbfa5d4 Merge pull request #3239 from larsmans/faster-poly-features
compute poly features directly and allow interaction features only
2014-06-05 18:00:58 +02:00
Lars Buitinck de42d692d8 ENH interaction_only in PolynomialFeatures 2014-06-05 17:46:07 +02:00
Lars Buitinck f4251347af ENH/DOC fix poly features complexity
Fixes #3191, #3194.
2014-06-05 17:45:32 +02:00
Olivier Grisel c9048fbccb FIX workaround doctest failure with old numpy 2014-06-05 13:21:54 +02:00
Olivier Grisel c013e26a61 ENH use the np.int dtype to encode integer classes 2014-06-05 12:01:04 +02:00
Joel Nothman 28eb1ebe15 Assert or ignore all sequence of sequences deprecation warnings 2014-06-05 11:20:36 +02:00
Joel Nothman 9cfa1f38ad TST stronger test for non-integers in MultiLabelBinarizer 2014-06-05 11:20:36 +02:00
Joel Nothman fc0150d08d DOC/FIX Address @arjoly's comments 2014-06-05 11:20:36 +02:00
Joel Nothman dcb24172c4 No set construction shorthand in Py2.6 2014-06-05 11:20:36 +02:00
Joel Nothman 5b4a3c8d41 TST Validate input MultiLabelBinarizer.inverse_transform 2014-06-05 11:20:36 +02:00
Joel Nothman b2fe367562 DOC comment on _transform interface
Also avoid stride trick
2014-06-05 11:20:36 +02:00
Joel Nothman 4dfde8bd54 FIX No set construction shorthand in Py2.6 2014-06-05 11:20:36 +02:00
Joel Nothman f18a07ac9a FIX don't use dict comprehension for Py 2.6 2014-06-05 11:20:36 +02:00
Joel Nothman 255895d951 DOC remove mention of sequence of sequences in Parameters sections 2014-06-05 11:20:36 +02:00
Joel Nothman 8ce9077241 ENH do not allocate memory for temporary array of 1s 2014-06-05 11:20:36 +02:00
Joel Nothman bbc3e7e668 COSMIT use mlb for MultiLabelBinarizer instances
This class had been called LabelSetsBinarizer, for which lsb was appropriate
2014-06-05 11:20:36 +02:00
Joel Nothman 37730f4c46 COSMIT use MultiLabelBinarizer in LabelBinarizer during deprecation 2014-06-05 11:20:36 +02:00
Joel Nothman 742505d870 FIX remove duplicates in MultiLabelBinarizer 2014-06-05 11:20:35 +02: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
Olivier Grisel 40597f1df5 Merge pull request #3169 from mjbommar/issue-3167-eradicate-todense
PR re: issue 3167 to eradicate .todense()
2014-05-24 21:02:47 +02:00
mjbommar 724b63a16c Replacing the test .todense() methods with .toarray() 2014-05-20 21:44:34 -04:00
Thomas Unterthiner 325e998fcc Extend utils.sparsefuncs: inplace scale and axis min/max 2014-05-18 20:03:37 +10:00
Lars Buitinck 32c843b4b9 COSMIT: pep8, trailing spaces 2014-03-29 17:59:35 +01:00
Manoj-Kumar-S bbb8f1d1bf Moved sparsefuncs to sparsefuncs_fast 2014-03-27 13:20:45 +05:30
Lars Buitinck 9e2071bb99 DOC clarify Imputer constructor: arbitrary strings not accepted 2014-03-19 10:53:57 +01:00
Lars Buitinck 4c6e0263b4 MAINT final occurrence of "Scaler" 2014-03-12 14:11:32 +01:00
Lars Buitinck 0abe21eaac MAINT remove some deprecated stuff 2014-03-12 13:33:42 +01:00
Joel Nothman c530f5aed4 FIX for early numpy where astype(..., copy=...) unavailable 2014-03-12 14:24:26 +11:00
Gael Varoquaux 14b435c136 Merge pull request #2938 from jnothman/clean_impute
[MRG+1] some clean-up in Imputer, particularly in calculation of sparse median
2014-03-11 19:18:05 -07:00
Joel Nothman 79a8012ecd FIX for numpy compatibility, code clarity 2014-03-08 21:46:32 +11:00
Joel Nothman b4ca1d6f1f COSMIT Remove unnecessary assertion 2014-03-07 09:18:43 +11:00
Joel Nothman 43da4ad830 ENH/TST remove unnecessary sorts and complete testing for sparse median 2014-03-04 00:16:49 +11:00