Skip to content

Optimizaion of MLL by fit_gpytorch_mll with Adam algorithm #2844

Answered by Balandat
MJeong19 asked this question in Q&A
Discussion options

You must be logged in to vote

optimizer is supposed to be a botorch optimizer callable not a torch Optimizer object, so fit_gpytorch_mll_scipy or fit_gpytorch_mll_torch as defined in https://github.com/pytorch/botorch/blob/4632c36bf6f74387b9a7064c2ce491a5a3d22f95/botorch/optim/fit.py (or if you want to implement a custom one you'll need to define a function complying with their API).

fit_gpytorch_mll_torch will use Adam by default. If you want to choose custom options you can pass a custom make_torch_optimizer() factory function as the "optimizer_kwargs: {"optimizer": make_torch_optimizer}" to fit_gpytorch_mll that will be used here:

optimizer: A `t…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by MJeong19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants