Skip to content
This repository has been archived by the owner on Feb 23, 2023. It is now read-only.

How to check lengthscales when ARD=True. #360

Closed
ktakihara2000 opened this issue Oct 11, 2022 · 4 comments
Closed

How to check lengthscales when ARD=True. #360

ktakihara2000 opened this issue Oct 11, 2022 · 4 comments

Comments

@ktakihara2000
Copy link

ktakihara2000 commented Oct 11, 2022

I do Bayesian optimisation in two dimensions.
When 'ARD' is set to 'True', printing kernel outputs '(2, )'.
I would like to check the respective lengthscale in 2D, is there a way to do this?

@ktakihara2000 ktakihara2000 changed the title How to check lengthscales after optimize when ARD=True. How to check lengthscales when ARD=True. Oct 11, 2022
@ekalosak
Copy link
Contributor

Can you post your code example? I think I understand what you're trying to accomplish, it will be easier to help when you post real code.

@ktakihara2000
Copy link
Author

@ekalosak
Does this make sense to you?
I am new to github so I am not used to it. Apologies.

kern = GPy.kern.RBF(input_dim=2, variance=0.3, lengthscale=1, ARD=True)
print(kern)
params = {param1, param2, ----}
myBopt = GPyOpt.methods.BayesianOptimization(**params)
print(kern)

rbf. | value | constraints | priors
variance | 0.3 | +ve |
lengthscale | (2,) | +ve |

rbf. | value | constraints | priors
variance | 23.72151391342812 | +ve |
lengthscale | (2,) | +ve |

@ekalosak
Copy link
Contributor

ekalosak commented Feb 4, 2023

I'd recommend two sources to help in learning Bayesian Optimization implementations on Python:

  1. The GPyOpt tutorials
  2. Emukit and its tutorials
    I have a hunch that, if you can replicate the results in the relevant tutorials, your problem above might resolve.

@lawrennd please close the issue, this is not a problem with the code.

@apaleyes
Copy link
Collaborator

apaleyes commented Feb 4, 2023

thanks @ekalosak !

@apaleyes apaleyes closed this as completed Feb 4, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants