-
-
Notifications
You must be signed in to change notification settings - Fork 229
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
Ordinal parameters with conditions fails to impute in the random forest model #1079
Labels
Comments
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, |
^ I had the same issue as OP, but I can confirm that #1065 fixes it, thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 for
OrdinalHyperparameter
in the if statement, and the else block raises aValueError
.The text was updated successfully, but these errors were encountered: