-
Notifications
You must be signed in to change notification settings - Fork 94
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
np.array
on Configuration
returns names of HPs instead of values
#363
Comments
Short answer, yes, intended to give you the keys, use Sorry for typos, phone typing...
However things like a python def array(x: Any) -> np.ndarray:
if hasattr(x, "__array__"):
# follow protocol
elif isinstance(x, (list, tuple, builtin-python-thing)):
# do some low level Cpython manipulation
elif isinstance(x, Sequence):
# user implement list like, can't really do better than this
x_data = x[:len(x)]
return array(x_data)
elif isinstance(x, Iterable):
x_data = [e for e in x]
return array(x_data)
else:
# .... Now the main point, I would argue the main use case of a Had some time and did this on my phone but could you check some stuff for me?
If it gives you an array of |
Thank you for the explanation, makes sense! Feel free to close the issue. Running |
We've decided this will do as you expected at the top of this issue! Will get to it when we have time :) |
Awesome! |
When calling
np.array
onConfiguration
it returns names of HPs instead of values. Is that intended?ConfigSpace 0.7.1
MWE:
Output:
The text was updated successfully, but these errors were encountered: