Skip to content

sklearn dev tests failing (deprecated argument to OneHotEncoder and QuantileTransformer) #517

@stsievert

Description

@stsievert

OneHotEncoder's n_values argument is deprecated pulled out in scikit-learn/scikit-learn#13855 (and specifically _encoders.py#L281).

Here's some of the output from the Azure tests in #221:

tests/compose/test_column_transformer.py:38:

>  #   def test_column_transformer():
>               (dask_ml.preprocessing.OneHotEncoder(sparse=False), ["A"]),
>         signature = {
            "n_values": n_values,
            "categorical_features": categorical_features,
            "categories": categories,
            "drop": drop,
            "sparse": sparse,
            "dtype": dtype,
            "handle_unknown": handle_unknown,
        }
>       super(OneHotEncoder, self).__init__(**signature)
E       TypeError: __init__() got an unexpected keyword argument 'n_values'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions