8000 Use `np.uint8` as default dtype for `OneHotEncoder` instead of `np.float64` · Issue #26063 · scikit-learn/scikit-learn · GitHub
[go: up one dir, main page]

Skip to content
Use np.uint8 as default dtype for OneHotEncoder instead of np.float64 #26063
Open
@smith558

Description

@smith558

Describe the workflow you want to enable

sklearn.preprocessing.OneHotEncoder should use as dtype the np.uint8 by default instead of np.float64 as it is currently. I don't see the reasoning behind using np.float64, this if anything only causes memory explosions and potentially (?) even slows down the computation.

Describe your proposed solution

Make np.uint8 as the default dtype parameter of sklearn.preprocessing.OneHotEncoder

Describe alternatives you've considered, if relevant

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0