Skip to content

Best practice for using singleTaskGP to model deterministic problems #935

Answered by saitcakmak
kentwar asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @kentwar. You're using a very old version of botorch (and dependencies). I'd highly recommend that you upgrade to the current version.

Since you're trying to model a noise-free function, you may want to use FixedNoiseGP with a small noise value (to avoid numerical issues). You can do this with model = FixedNoiseGP(train_X, train_Y, train_Yvar = torch.full_like(train_Y, 1e-4).
In addition, since you're running into numerical issues with Cholesky, you're likely using a large number of training points, or have training points clustered closely in the input space (leading to numerically singular covariance matrices). In this case, I'd recommend using dtype=torch.double. You need to be cons…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@kentwar
Comment options

Answer selected by Balandat
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