-
|
Hello, I’m using BoTorch 0.16.1 (with Ax 1.2.1) to perform Bayesian Optimization. My goal is to extract the ARD lengthscales from the default GP kernel to analyze parameter importance (as 1/lengthscale). Questions: I’ve tried accessing the model via client.experiment, generator_run, and generation_strategy, but none have a _model or model attribute. Thank you for your help! Relevant Code: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
Hi @AM4691 , Two issues:
(1) We cleaned up the Ax sequence of attributes. Previously, a lot of things used to be called model. Now, the sequence is (2) Since we dropped the ScaleKernel, the SingleTaskGP no longer has a Unfortunately, your coding agent of choice still has a pretty difficult time understanding this, but we'll get there! |
Beta Was this translation helpful? Give feedback.
-
|
Thank you, @hvarfner! |
Beta Was this translation helpful? Give feedback.
Hi @AM4691 ,
Thanks for reaching out!
Two issues:
(1) We cleaned up the Ax sequence of attributes. Previously, a lot of things used to be called model. Now, the sequence is
Adapter --> Generator --> Surrogate --> Model
where the Model is the actual BoTorch object you are interested in. So, in your case you should go with
gp = client._generation_strategy.adapter.generator.surrogate.model(2) Since we dropped the ScaleKernel, the SingleTaskGP no longer has a
base_kernelby default. Thus, you should just subtract that attribute:ls = gp.covar_module.base_kernel.lengthscale-->ls = gp.covar_module.lengthscaleUnfortunatel…