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

Replacement for Models.GPKG #2427

Closed
AngelFP opened this issue May 3, 2024 · 2 comments
Closed

Replacement for Models.GPKG #2427

AngelFP opened this issue May 3, 2024 · 2 comments
Assignees
Labels
question Further information is requested

Comments

@AngelFP
Copy link

AngelFP commented May 3, 2024

The latest release removes the GPKG model, and suggests using the newer BOTORCH_MODULAR instead (#2316). However, I am not sure how to build a replacement for GPKG using this approach.

Until now I've used GPKG with the Service API for multifidelity optimization, creating a GenerationStep as follows:

GenerationStep(
    model=Models.GPKG,
    num_trials=-1,
    model_kwargs={
        "cost_intercept": cost_intercept
    },
)

What would be the equivalent way of doing this with BOTORCH_MODULAR? I couldn't figure it out from the examples I saw in the documentation.

Best,
Ángel.

@mgarrard mgarrard added the question Further information is requested label May 6, 2024
@sdaulton
Copy link
Contributor

sdaulton commented May 6, 2024

You can specify the GenerationStep as

GenerationStep(
    model=Models.BOTORCH_MODULAR,
    num_trials=-1,
    model_kwargs={
        "botorch_acqf_class": qMultiFidelityKnowledgeGradient,
    },
    model_gen_kwargs={
        "model_gen_options": {Keys.ACQF_KWARGS: {Keys.COST_INTERCEPT: cost_intercept}}
    },
)

@AngelFP
Copy link
Author

AngelFP commented May 7, 2024

Works great, thanks!

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

No branches or pull requests

3 participants