Skip to content

check_array() in PolynomialFeatures incompatible with sympy #6185

Closed
@dsspiegel

Description

@dsspiegel

It would be really nice to be able to use sympy with preprocessing.PolynomialFeatures, but I can't because this line:
https://github.com/scikit-learn/scikit-learn/blob/master/sklearn/preprocessing/data.py#L1189
calls check_array() with the default dtype="numeric". It would be great if I could pass in a kwarg dtype to PolynomialFeatures so that it wouldn't fail when using symbolic variables instead of floats.

Metadata

Metadata

Assignees

No one assigned

    Labels

    EasyWell-defined and straightforward way to resolve

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions