You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
sklearn dev tests failing (deprecated argument to OneHotEncoder and QuantileTransformer) #517
changed the title [-]sklearn dev tests failing (deprecated argument to OneHotEncoder)[/-][+]sklearn dev tests failing (deprecated argument to OneHotEncoder and QuantileTransformer)[/+]on Jun 8, 2019
The QuantileTransformer test is also failing because Scikit-Learn now uses self._check_array(..., copy=True) in QuantileTransformer.fit. This is implemented in scikit-learn/scikit-learn#13987, and specifically in data.py#L2232.
Here's some of the traceback:
self = <tests.preprocessing.test_data.TestQuantileTransformer object at 0x7ff5a0115860>
output_distribution = 'uniform'
@pytest.mark.parametrize("output_distribution", ["uniform", "normal"])
deftest_basic(self, output_distribution):
rs = da.random.RandomState(0)
a = dpp.QuantileTransformer(output_distribution=output_distribution)
b = spp.QuantileTransformer(output_distribution=output_distribution)
X = rs.uniform(size=(1000, 3), chunks=50)
> a.fit(X)
tests/preprocessing/test_data.py:216:
deffit(self, X, y=None):
...
> X = self._check_inputs(X, copy=False)
E TypeError: _check_inputs() got an unexpected keyword argument 'copy'
Dask-ML overwrites _check_inputs, so this version will need to have that keyword.
Activity
[-]sklearn dev tests failing[/-][+]sklearn dev tests failing (deprecated argument to OneHotEncoder)[/+][-]sklearn dev tests failing (deprecated argument to OneHotEncoder)[/-][+]sklearn dev tests failing (deprecated argument to OneHotEncoder and QuantileTransformer)[/+]stsievert commentedon Jun 8, 2019
The
QuantileTransformertest is also failing because Scikit-Learn now usesself._check_array(..., copy=True)inQuantileTransformer.fit. This is implemented in scikit-learn/scikit-learn#13987, and specifically in data.py#L2232.Here's some of the traceback:
self = <tests.preprocessing.test_data.TestQuantileTransformer object at 0x7ff5a0115860> output_distribution = 'uniform' @pytest.mark.parametrize("output_distribution", ["uniform", "normal"]) def test_basic(self, output_distribution): rs = da.random.RandomState(0) a = dpp.QuantileTransformer(output_distribution=output_distribution) b = spp.QuantileTransformer(output_distribution=output_distribution) X = rs.uniform(size=(1000, 3), chunks=50) > a.fit(X) tests/preprocessing/test_data.py:216: def fit(self, X, y=None): ... > X = self._check_inputs(X, copy=False) E TypeError: _check_inputs() got an unexpected keyword argument 'copy'Dask-ML overwrites
_check_inputs, so this version will need to have that keyword.stsievert commentedon Jun 10, 2019
Closed by #518