Commit Graph

245 Commits

Author SHA1 Message Date
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
Lars Buitinck b97fb3c5fc MAINT drop support for NumPy < 1.6.1 2014-03-02 20:13:57 +01:00
Joel Nothman b80b0ea2d3 STY Simplify and avoided numpy warnings in imputation 2014-03-02 22:07:02 +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
Lars Buitinck aa53f80f61 DOC what we call poly features are called interaction features in stats 2014-02-27 21:36:30 +01:00
Jake Vanderplas 5319994adc Merge pull request #2765 from AlexanderFabisch/validation_curves
[MRG] Validation curves
2014-02-05 14:31:10 -08:00
Alexander Fabisch 6610b3da5d Fix documentation 2014-02-04 23:12:10 +01:00
Alexander Fabisch 17d77ee04f Fix typo 2014-02-04 21:44:33 +01:00
Joel Nothman dbc26ce996 COSMIT remove unused imports and variables 2014-02-03 19:43:56 +11:00
Alexander Fabisch 0852a54f7f Add example with polynomial regression 2014-02-02 18:50:48 +01:00
Gilles Louppe 9e432a88b7 COSMIT: PEP8 in test_imputation 2014-01-16 14:29:48 +01:00
Olivier Grisel e4c27d5167 FIX: np.searchsorted numpy bug on unicode objects also impacts 1.6.1 2014-01-08 11:36:11 +01:00
Gilles Louppe 60a0c2f46c FIX: don't force finite in imputation 2014-01-03 09:49:14 +01:00
Gilles Louppe cd4f5afef6 Update docstring + Use np.diff 2014-01-02 08:47:45 +01:00
Gilles Louppe 42ea5ecde7 COSMIT: remove useless import 2014-01-01 18:10:16 +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
Lars Buitinck c94ea6a570 ENH use fast row_norms helper in preprocessing.normalize
Also makes memory usage independent of n_features.
2013-12-05 15:11:59 +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 ecdedd5a4f DOC: adjust notes in PolynomialFeatures 2013-11-13 13:40:04 -08:00
Jake Vanderplas 2983ab900b TST: fix doctests & pep8 2013-11-13 04:44:19 -08:00
Jake Vanderplas 217834b9cb TST: fix PolynomialFeatures test error 2013-11-13 04:26:14 -08:00
Jake Vanderplas d071ef17e8 address PR2585 comments 2013-11-12 11:47:44 -08:00
Jake Vanderplas 568c43d6f3 ENH: add PolynomialFeatures preprocessor 2013-11-11 17:18:16 -08:00
Alexandre Gramfort f719d09c5c Merge pull request #2576 from ankit-maverick/issue2560
Fixing issue 2560 : Imputer bug with median and dense input
2013-11-06 01:24:57 -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
Ankit Agrawal 28997f63e5 Returning an array mask using np.ma.getmaskarray 2013-11-05 20:37:37 +05:30
Olivier Grisel a207c7007f Use a RuntimeError instead of a warning to avoid raising a ValueError randomly later 2013-10-16 14:15:21 +02:00
Olivier Grisel 913e471b34 FIX #2481: add warning for bug in old numpy with unicode 2013-10-15 16:30:01 +02:00
Arnaud Joly 8c987efe0a FIX issue #1993: passing a multilabel indicator is no more noop 2013-09-16 13:40:26 +02:00
Lars Buitinck 9a9b9e85ed DOC+COSMIT: typos, lots of them
Fixes #2102. There's one typo left in joblib which is better fixed
upstream.
2013-09-13 16:29:42 +02:00
Joel Nothman 79dc28853c DOC add missing Returns description 2013-09-10 07:46:25 +10:00
Brooke Osborn 2eddb1a29f BUG fix whitespace in error messages
Partial fix for #2380.

Signed-off-by: Lars Buitinck <L.J.Buitinck@uva.nl>
2013-08-26 17:02:52 +02:00
Mathieu Blondel 07c15de882 Typo. 2013-08-06 11:37:44 +09: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
Andreas Mueller 716fbb062c much better input validation, test that warning is raised on (n_samples, 1) y 2013-07-28 16:08:16 +02:00
Andreas Mueller be62aa9d0c more fixes for docs, deprecated interfaces 2013-07-28 13:34:40 +02:00
Olivier Grisel dd23eea7e1 Py3: fix version comparison in imputation module 2013-07-27 18:13:23 +02:00
Olivier Grisel ef2a17b73b FIX PY3: list and tuples cannot be compared in Python 3 2013-07-27 17:11:49 +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
Andreas Mueller 57963598ac fixing ridge and label binarizer... I'm pretty sure that worked before? 2013-07-27 13:30:00 +02:00
Nicolas Trésegnie 8d5e142326 Fix use of self 2013-07-26 19:03:28 +02:00
Nicolas Trésegnie 32c1fc90f1 Fix self.statistics_ souldn't be set if axis==1 2013-07-26 17:37:38 +02:00
Andreas Mueller d8f90d137d use column_or_1d, move it to utils 2013-07-26 17:16:27 +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
Nicolas Trésegnie ec6057a384 Imp splitting of 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
Mathieu Blondel ebb42e78e6 preprocessing/__init__.py -> preprocessing/preprocessing.py
It's hard to find the right file when you have several __init__.py
files opened.
2012-01-21 05:29:42 +09:00
Olivier Grisel f09db8ddff more pep8 2012-01-04 00:47:30 +01:00
Andy ed7de9f80f FIX: Notes instead of Note in preprocessing init 2011-12-29 17:02:42 +01:00
Olivier Grisel 8a8c6ebed3 optim: avoid useless memory copy when input is non CSR 2011-12-28 10:43:16 +01:00
Olivier Grisel 671f304ac6 More checks when transforming sparse matrices with centering scalers + typo 2011-12-27 10:05:33 +01:00
Olivier Grisel 2e0857aeac wording 2011-12-25 00:28:53 +01:00
Olivier Grisel f85e7be8c5 fix scaling, more tests and docstrings 2011-12-24 23:36:38 +01:00
Olivier Grisel 1fdbbfb44b WIP: feature scaling for CSR input (lacks some tests) 2011-12-24 12:37:09 +01:00
Olivier Grisel 57a90f8dcf Merge branch 'master' into sparse-scaler 2011-12-23 22:53:31 +01:00
Andreas Mueller 3a6e490e05 COSMIT pep8 2011-12-23 19:12:52 +01:00
Olivier Grisel 0cf16dc7be merge master 2011-12-23 14:28:50 +01:00
Andreas Mueller 6c17d0d8af COSMIT make 'References' bold and minor other fixes. 2011-12-22 20:57:54 +01:00
Andreas Mueller 1a78610a56 FIX getting rid of some more sphinx problems 2011-12-21 20:03:02 +01:00
Lars Buitinck e3163ed18d COSMIT set union in LabelBinarizer 2011-12-21 16:13:36 +01:00
Lars Buitinck c90571b0a8 TST extra test for LabelBinarizer's multilabel behavior 2011-12-21 16:13:10 +01:00
Olivier Grisel e51ceb17bb WIP: scaling CSRs 2011-12-20 15:59:28 +01:00
Olivier Grisel 494fb029cb consolidating all cython utils for sparse CSR in the same file under utils 2011-12-20 13:18:03 +01:00
Mathieu Blondel 1425e29510 Check that LabelBinarizer was fitted. 2011-12-20 12:49:01 +01:00
Mathieu Blondel c3aa2d7e8d Merge multilabel branch with master.
Conflicts:
	sklearn/datasets/_svmlight_format.c
	sklearn/datasets/_svmlight_format.pyx
	sklearn/datasets/tests/test_svmlight_format.py
	sklearn/preprocessing/__init__.py
2011-12-20 12:41:42 +01:00
Andreas Mueller d0854d5a07 COSMIT pep8 2011-12-15 17:08:30 +01:00
Gilles Louppe b25c574b76 DOC: Standardized the module documentation format (2) 2011-11-30 11:05:10 +01:00
Andreas Mueller ff3f814a1b COSMIT pep8 whitespace 2011-11-20 21:16:52 +01:00
Andy f36ec61c45 ENH in preprocessing.Scaler, raise warning also if given unsigned int 2011-11-10 11:31:01 +01:00
Andreas Mueller 10a21f7359 ENH: in Scaler, warn if fit or transform called with integer data. 2011-11-05 13:48:05 +01:00
Gael varoquaux 1a1b9f44b2 MISC: better warning message 2011-11-02 08:37:04 +01:00
Gael varoquaux a75373302f MISC: Warn for integers in scaling/normalize 2011-11-02 08:34:56 +01:00
Mathieu Blondel 8a487b61ab ENH Label indicator matrix support in LabelBinarizer and OVRClassifier 2011-10-27 19:12:01 +02:00
Mathieu Blondel 82696d5437 BUG: Use threshold in LabelBinarizer in multi-label case. 2011-10-27 20:32:22 +09:00
Lars Buitinck 736715598e TEST better test for binary multilabel case in LabelBinarizer 2011-10-26 17:00:13 +02:00
Lars Buitinck f161fabd66 BUG handle two-class multilabel case in LabelBinarizer
Would throw an exception due to special handling of binary case.
2011-10-26 16:56:28 +02:00
Lars Buitinck 3bde2bf97b ENH accept matrix input throughout
Simple solution: replace np.asanyarray with np.asarray throughout.
Also, use utils.as_float_array where appropriate.
2011-10-21 13:51:12 +02:00
Olivier Grisel 091d92ac1b batch re-cythonization with version 0.15 and new package names 2011-09-03 13:28:32 +02:00
Fabian Pedregosa ddf4b72109 Move project directory from scikits.learn to sklearn 2011-09-02 12:06:57 +02:00
Fabian Pedregosa 68f27e3790 Revert "Move project directory from scikits.learn to sklearn"
This reverts commit fd0d3b879d.
2011-09-02 12:03:18 +02:00
Fabian Pedregosa fd0d3b879d Move project directory from scikits.learn to sklearn 2011-09-02 11:38:24 +02:00