-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
check_array() in PolynomialFeatures incompatible with sympy #6185
Copy link
Copy link
Closed
Labels
EasyWell-defined and straightforward way to resolveWell-defined and straightforward way to resolve
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
EasyWell-defined and straightforward way to resolveWell-defined and straightforward way to resolve