-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: Expected float, got numpy.float64 when using Float #336
Comments
Downgrade configspace to version 0.7.1. It has helped me |
Hiyo, thanks for the note on downgrading. Turns out it seems to be an issue with a newer version of Cython and simply downgrading Cython seems to cause other issues. We've removed 0.7.2 from PyPI for now. |
I downgraded configspace to version 0.7.1 (pip install configspace==0.7.1) to solve this problem. |
This bug also appears when I use |
The bug appeared for me in |
I think I found my mistake. One of the afore mentioned shenanigans was using |
Hi, This will be closed by #346 which removes Cython. Hopefully we can release next week. |
Hello,
It seems like that is an error when trying to use the Float function, more specifically due to the function:
inside
class UniformFloatHyperparameter(FloatHyperparameter)
.When calling np.round, a numpy.float64 is returned and the function is expecting a 'float'.
I am using configspace 0.7.2 and numpy 1.25
The text was updated successfully, but these errors were encountered: