krumetoft
c241fe7e5e
FIX validate in `fit` for `LabelBinarizer` estimator ( #21434 )
...
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2021-11-02 11:26:02 +01:00
Thomas J. Fan
82df48934e
MNT Applies black formatting to most of the code base ( #18948 )
2021-06-17 14:21:09 -04:00
LSturtew
3e45aeef90
TST Remove assert warn from preprocessing tests ( #19691 )
2021-03-20 10:07:09 -04:00
Oleh Kozynets
f9e0b7d55f
FIX VisibleDeprecationWarning in unit tests and docstrings ( #18414 )
2020-10-28 14:47:57 +01:00
Thomas J Fan
d40d993199
CLN Refactors _encode into two functions ( #17101 )
2020-05-12 14:23:00 -04:00
Thomas J Fan
e54cd3c061
API Deprecate positional arguments in preprocessing ( #16996 )
...
* API Deprecate positional arguments in preprocessing
* CLN Address comments
* CLN Uses classes as a keyword only argument
* BUG Fix
2020-04-23 19:10:49 +02:00
alexshacked
c4ea377198
FIX ensure object array are properly casted when dtype=object ( #16076 )
2020-01-14 18:06:50 -08:00
Loïc Estève
9626583e8f
ENH Improve column_or_1d error message ( #15926 )
2019-12-20 11:14:07 -05:00
Nicolas Hug
b92455a6b2
MAINT Deprecate all of utils.testing except all_estimators ( #15367 )
2019-10-28 17:28:56 +01:00
Léonard Binet
846e6a38b0
ENH Support for list of lists or list of arrays multilabel indicator (continuation) ( #14865 )
2019-10-25 11:37:18 +11:00
Thomas J Fan
15d5ef04df
MNT Make modules private in preprocessing ( #15323 )
2019-10-22 11:37:05 +08:00
Samesh Lakhotia
1c116807ce
MAINT:Fix assert raises in `sklearn/preprocessing/tests/` ( #14717 )
2019-08-29 12:38:54 +03:00
Adrin Jalali
19c068a2ec
MNT towards removing assert_equal, etc ( #14222 )
2019-07-01 09:13:32 -04:00
Nicolas Hug
911792b008
ENH Avoid calling _encode_check_unknown() twice in BaseEncoder.transform ( #13810 )
2019-05-22 09:43:40 +10:00
Roman Yurchak
684d8a221d
MAINT Use set litterals when possible ( #12667 )
2019-01-06 19:21:45 +08:00
Hanmin Qin
43e3a02085
MNT Remove unused assert_true imports ( #12560 )
2018-11-11 11:08:37 +08:00
Yaroslav Halchenko
362cb3bcab
TST autoreplace assert_true(...==...) with plain assert ( #12547 )
2018-11-11 09:05:34 +08:00
Ekaterina Krivich
4e2e1fac0d
ENH Cache class mapping in MultiLabelBinarizer() ( #12116 )
...
Fixes #11680
2018-10-09 00:24:24 +11:00
Sam Waterbury
11612fc867
MNT Raise error for duplicate classes when constructing a MultiLabelBinarizer ( #12195 )
2018-10-02 08:06:58 +08:00
Joris Van den Bossche
0b0bd9b369
[MRG] Use hashtable (python sets/dicts) for object dtype data in Encoders ( #10209 )
2018-07-03 09:51:07 +02:00
Roman Yurchak
e8d8b8eeb0
TST: parametrize unit tests ( #11074 )
...
yield tests are deprecated in pytest and will be removed in pytest 4.0.
They all have been replaced by parametrize.
2018-06-08 14:59:33 +02:00
rragundez
13c235359a
ENH MultiLabelBinarizer ignore unkown class in transform ( #10913 )
2018-05-06 21:06:09 +08:00
Mayur Kulkarni
87d96a2c2a
[MRG+1] Fixes #10458 : Make LabelEncoder work with empty list/array ( #10508 )
2018-01-23 13:53:49 +11:00
Charlie Newey
c554aad456
[MRG + 1] Fix ValueError in LabelEncoder when using inverse_transform on unseen labels ( #9816 )
2017-09-21 19:21:55 +02:00
Taehoon Lee
ebf2bf8107
Fix typos ( #9205 )
2017-06-23 11:43:46 +02:00
CJ Carey
94c2094f3e
[MRG+1] BUG: MultiLabelBinarizer.fit_transform sometimes returns an invalid CSR matrix ( #7750 )
...
* BUG: MultiLabelBinarizer makes invalid CSR matrix
See https://github.com/scipy/scipy/issues/6719 for context.
The gist is that the `inverse` array may have a different dtype than `yt.indices`, which causes trouble down the line because, in those cases, `yt.indices` and `yt.indptr` have different dtypes.
Alternately, we could insert `yt.check_format(full_check=False)` after modifying the sparse matrix members.
* Fixing for old numpy
Older versions don't support kwargs for `astype`
* Adding tests
* line-wrapping
* adding comment to tests
[ci skip]
* added rationale comment
[ci skip]
2016-10-26 17:43:35 -04:00
dsquareindia
e9492b7ec2
LabelBinarizer single label case now works for sparse and dense case
2016-03-21 10:43:56 +05:30
dsquareindia
74475bc929
LabelEncoder now raises error for 0-D arrays
2016-01-26 01:34:26 +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
06f16e2634
Added test
2015-07-11 17:15:33 -05: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
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
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
Hamzeh Alsalhi
2bfca14c49
ENH sparse matrix support in label binarization
2014-06-25 16:15:19 -04: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
Arnaud Joly
8c987efe0a
FIX issue #1993: passing a multilabel indicator is no more noop
2013-09-16 13:40:26 +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