Skip to content

03_preprocessing -- sparse is sparse_output for newer versions of sklearn's OneHotEncoder #69

Description

@jellomoat

ISSUE: sparse is sparse_output for newer versions of sklearn's OneHotEncoder

LOCATION:

PROPOSED SOLUTION:
Replace sparse with sparse_output on this line =>

dummy_e = OneHotEncoder(categories='auto', drop='first', sparse=False)

Or, add a comment noting this potential change for newer sklearn versions. This error came up during a consulting session debugging issues a consultee encountered running the preprocessing notebook (https://github.com/dlab-consulting/requests/issues/2876).

RELATED REFERENCE: https://scikit-learn.org/dev/modules/generated/sklearn.preprocessing.OneHotEncoder.html

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