Skip to content

OrdinalEncoder accept and failed with sparse matrix in inverse_transform #19878

@glemaitre

Description

@glemaitre

OrdinalEncoder was documented to accept sparse matrix in inverse_transform.
A check is internally done to accept sparse matrix. However, the inverse_transform will fail with this type of data.
We should remove the support in the check and make sure that we issue the right error.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions