automl / ConfigSpace

Domain specific language for configuration spaces in Python. Useful for hyperparameter optimization and algorithm configuration.
https://automl.github.io/ConfigSpace/
Other
202 stars 93 forks source link

[Bug] Ordinal Hyperparameter got Key Error when run `self.get_order` in `get_neighbors` #344

Closed junhongmit closed 2 months ago

junhongmit commented 10 months ago

image In the get_neighbors function, the value passed into the self.get_order(value) is in the vector format (raw sequence order number). But the get_order() method returns self.value_dict[value], which is supposed to take the ordinal name.

One potential way to fix this is just to change line 270 to be if transform == False:, which reverse the transform logic.

eddiebergman commented 5 months ago

Hiyo, this has been fixed in #346 which has a different implementation for get_neighbors now! Hopefully released next week!