Closed EdvardHolden closed 2 weeks ago
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Hi,
could you please check if the error still happens with the new development
branch? This issue should be solved by: https://github.com/automl/SMAC3/pull/1065
^ I had the same issue as OP, but I can confirm that #1065 fixes it, thanks!
Closing this issue as it should be fixed with the new version (#1108 ) which includes this fix #1065 .
Hi,
SMAC: 2.0.2 (installed via pip) Python: 3.11
Description
I am working on updating a tool from using SMACv2 (Java) to SMACv3, and support for conditions on ordinal parameters seems to have been removed. If the condition for the ordinal parameter is removed or it is made categorical, everything seems to work as expected.
I have not found any documentation indicating that conditions on ordinals are deprecated/removed in the new version.
Code to Reproduce
Expected Results
Expect the random forest model to train successfully and generate configurations, as in the Java version.
Actual Results
Result:
ValueError
. Imputing the ordinal value fails as there is no type check forOrdinalHyperparameter
in the if statement, and the else block raises aValueError
.