Commit Graph

62 Commits

Author SHA1 Message Date
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
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
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
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
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 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 2bfca14c49 ENH sparse matrix support in label binarization 2014-06-25 16:15:19 -04:00
Lars Buitinck 60e8aeaf22 TST test interaction features outside doctest 2014-06-07 15:00:41 +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 5b4a3c8d41 TST Validate input MultiLabelBinarizer.inverse_transform 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 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 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
mjbommar 724b63a16c Replacing the test .todense() methods with .toarray() 2014-05-20 21:44:34 -04:00
Lars Buitinck 32c843b4b9 COSMIT: pep8, trailing spaces 2014-03-29 17:59:35 +01: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 43da4ad830 ENH/TST remove unnecessary sorts and complete testing for sparse median 2014-03-04 00:16:49 +11:00
kaushik94 276e260486 ENH add sparse parameter to OneHotEncoder 2014-03-01 17:21:24 +01:00
Lars Buitinck 0a488ff642 FIX OneHotEncoder: check value max when n_values is integral
Fixes #2839.
2014-02-27 22:10:55 +01:00
Joel Nothman dbc26ce996 COSMIT remove unused imports and variables 2014-02-03 19:43:56 +11:00
Gilles Louppe 9e432a88b7 COSMIT: PEP8 in test_imputation 2014-01-16 14:29:48 +01:00
Gilles Louppe c931854120 FIX: Don't copy X at imputation in the sparse case 2014-01-01 17:52:18 +01:00
Gilles Louppe 08debe2cca FIX: Ensure expected behaviour when copy=True|False in Imputer 2014-01-01 17:52:05 +01:00
Jake Vanderplas 67158600e5 TST: remove stray print statement 2013-11-16 07:28:47 -08:00
Jake Vanderplas f372e126c0 fix ordering & docs of PolynomialFeatures 2013-11-15 08:10:15 -08:00
Jake Vanderplas 4c00042f33 reorder polynomial features 2013-11-14 16:59:21 -08:00
Jake Vanderplas 2983ab900b TST: fix doctests & pep8 2013-11-13 04:44:19 -08:00
Jake Vanderplas 568c43d6f3 ENH: add PolynomialFeatures preprocessor 2013-11-11 17:18:16 -08:00
Ankit Agrawal 067ace1c5d Using assert_equal routine from nose 2013-11-06 13:37:07 +05:30
Ankit Agrawal 6f8186f78a Adding a test for verifying the shape of imputed matrices 2013-11-06 10:24:29 +05:30
Arnaud Joly 8c987efe0a FIX issue #1993: passing a multilabel indicator is no more noop 2013-09-16 13:40:26 +02:00
Gael Varoquaux 89011e369a MISC: deprecate balance_weights (it's internal) 2013-07-29 03:06:58 +02:00
Nelle Varoquaux e3a764db5e FIX backward compatibility was broken 2013-07-29 03:06:58 +02:00
Gael Varoquaux 8ec572dfa6 COMPAT: median and nans in old numpys 2013-07-27 16:46:44 +02:00
Andreas Mueller 47c9a07548 addressing @ogrisel's comments: catch warnings in test, no unneeded digits 2013-07-27 15:19:32 +02:00
Andreas Mueller 0c82974f7c FIX/ENH make StandardScaler convert int input to float and warn about it, instead of warning and rounding for dense and crashing for sparse. 2013-07-27 15:19:32 +02:00
Arnaud Joly 43bff76bbe FIX warning tests in preprocessing 2013-07-27 15:01:51 +02:00
Olivier Grisel 2c5ea34e20 More explicit tests in test_label_binarizer_column_y 2013-07-27 13:41:52 +02:00
Andreas Mueller fd8bef992b TST add regression test for label_binarizer 2013-07-27 13:30:00 +02:00
Nicolas Trésegnie f713996882 pyflakes and pep8 2013-07-26 17:08:59 +02:00
Nicolas Trésegnie 9cb320dd6d Imp move OneHotEncoder to preprocessing/data.py 2013-07-26 17:08:59 +02:00
Nicolas Trésegnie bc36ad0399 Fix imports 2013-07-26 17:08:58 +02:00
Nicolas Trésegnie 15984d9a55 Del unused imports in preprocessing + pep8 2013-07-26 17:08:58 +02:00
Nicolas Trésegnie b8201b452f Imp splitting of test_preprocessing.py 2013-07-26 17:08:58 +02:00
Mathieu Blondel c9d27f3dc0 Move preprocessing.py to sklearn/. 2012-01-21 05:39:34 +09:00