Commit Graph

63 Commits

Author SHA1 Message Date
dsquareindia e9492b7ec2 LabelBinarizer single label case now works for sparse and dense case 2016-03-21 10:43:56 +05:30
Loïc Estève 6c627633bc Fix test_label_binarizer on Windows
Looks like .fill is not very friendly with unicode numpy scalar
2016-02-11 13:24:16 +01:00
dsquareindia 74475bc929 LabelEncoder now raises error for 0-D arrays 2016-01-26 01:34:26 +05:30
seales 0485ada58b General spelling fixes 2015-12-16 09:46:42 -08:00
Ganiev Ibraim 1606c9074e check_is_fitted validation for transform() and inverse_transform() 2015-11-30 01:53:38 +03:00
Arnaud Rachez 5db2adf93c MAINT Removed deprecated stuff. 2015-10-21 10:24:23 +02:00
Raghav 734bead8c4 MAINT Use check_is_fitted 2015-08-11 22:27:16 +05:30
Raghav R V 9d9675345b FIX bailout w/ValueError if multilabel-seq or other unsupported types 2015-08-11 22:27:14 +05:30
Raghav R V 664d78eb7c MAINT Remove support for the deprecated sequence of sequences
MAINT Remove sequence of sequence support from datasets
MAINT Remove return_indicator param
MAINT Remove multilabel-seq test in OVR
MAINT Remove multilable-seq test in check_cv
MAINT Remove multilabel seq test in label_binarizer
TST type_of_target returns "unknown" for multilabel-sequence types
TST _check_targets should raise a ValueError
DOC show multilabel indicator as an example; remove return_indicator param
DOC use consistent lower case y for target
2015-08-11 22:26:44 +05:30
Matt Krump 8d4c9c37a3 Don't allow negative values for inverse transform, and raise error similar to transform for new labels 2015-07-11 16:17:46 -05:00
Andreas Mueller 0650d5502e DOC adding backlinks to docstrings 2015-06-03 00:24:04 -04:00
Michael Heilman 03dbec87de fixed reverse sorting issue in label_binarize() 2015-04-02 18:21:21 -05: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
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
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
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
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
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
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
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 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 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
Lars Buitinck b97fb3c5fc MAINT drop support for NumPy < 1.6.1 2014-03-02 20:13:57 +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
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