Skip to content
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

InactiveHyperparameterSetError encountered when solving the HierarchicalGoldstein problem. #522

Closed
reppy4620 opened this issue Feb 28, 2024 · 3 comments

Comments

@reppy4620
Copy link

Hi

I am currently attempting to compare different methods using the HierarchicalGoldstein problem.
However, I have encountered an error as detailed below.
Could you please advise on how to resolve this issue?

problem = HierarchicalGoldstein()
ds = problem.design_space

ego = EGO(
    n_iter=30,
    criterion="EI",
    random_state=42,
    n_doe=3,
    surrogate=KRG(
        design_space=ds,
        categorical_kernel=MixIntKernelType.HOMO_HSPHERE,
        hierarchical_kernel=MixHrcKernelType.ALG_KERNEL,
    ),
)

best_x, best_y, _, history_x, history_y = ego.optimize(fun=problem)

Error

InactiveHyperparameterSetError: Hyperparameter is inactive but has a value set as 0.5.
x8, Type: UniformInteger, Range: [0, 2], Default: 1

Thank you.

@Paul-Saves
Copy link
Contributor

Hello,
ConfigSpace has a lot of bugs, mostly related to Exception like this one: #522
The latter appeared in versions 0.7 and higher so we sticked to ConfigSpace 0.6.1

The error you are mentioning should dissapear if you install ConfigSpace 0.6.1. I guess you installed 0.7.1 or 0.7.2...

@Paul-Saves
Copy link
Contributor

Also, ForbiddenValueConstraints are not compatible with OrdinalVariable (another bug in ConfigSpace....). For now, I'll add a warning!

@reppy4620
Copy link
Author

Thank you for your quick response.
By reinstalling configspace==0.6.1 instead of 0.7.1, which was installed previously, the error has been resolved.
It was of great help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants