-
Notifications
You must be signed in to change notification settings - Fork 93
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 #362
Comments
Crylab
added a commit
to Crylab/ConfigSpace
that referenced
this issue
Jul 3, 2024
…or the default value, fixes automl#362
Sorry, this was fixed in #346 long before you raised the PR, the problem was getting a review and merging it. This should be fixed in |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There is an issue with this file:
ConfigSpace/hyperparameters/uniform_float.pyx:124
: TypeError: Expected float, got numpy.float64It occurs when attempting to create a
UniformFloatHyperparameter
with or without passing a default value.I think the issue is casting to float before rounding instead of doing the opposite.
Original code:
default_value = np.round(float(default_value), 10)
Suggested fix:
default_value = float(np.round(default_value, 10))
Python version: 3.11.9
configspace: 0.7.2
Note: the error does not exist when using Python v3.9.19 with configspace v0.6.1
The text was updated successfully, but these errors were encountered: