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

[Optimizers] "kde" doesn't exists for surrogate model #121

Open
eddiebergman opened this issue Jul 31, 2024 · 0 comments
Open

[Optimizers] "kde" doesn't exists for surrogate model #121

eddiebergman opened this issue Jul 31, 2024 · 0 comments

Comments

@eddiebergman
Copy link
Contributor

First, typo in the error exists -> exist
Second, when trying to instantiate "multifidelity_type", I get the following error from instance_from_map()

        if isinstance(request, str):
            if request not in mapping:
>               raise ValueError(f"{request} doesn't exists for {name}")
E               ValueError: kde doesn't exists for surrogate model

This is triggered from here:

neps/optimizers/bayesian_optimization/mf_tpe.py:184: in __init__
    "good": instance_from_map(

Which has the following code:

        self.surrogate_models = {
            "good": instance_from_map(
                SurrogateModelMapping,
                surrogate_model,
                name="surrogate model",
                kwargs=good_model_args,
            ),
            "bad": instance_from_map(
                SurrogateModelMapping,
                surrogate_model,
                name="surrogate model",
                kwargs=surrogate_model_args,
            ),
            "all": instance_from_map(
                SurrogateModelMapping,
                surrogate_model,
                name="surrogate model",
                kwargs=surrogate_model_args,
            ),
        }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant