Skip to content

Forecasting Mauna Loa CO2 dataset with SpectralMixtureKernel #1825

Answered by wjmaddox
patel-zeel asked this question in Q&A
Discussion options

You must be logged in to vote

Ugh, this is pretty annoying because the optimization is so unstable, see Appendix D of this work. I was ultimately able to reproduce the results (but inconsistently, not sure why this is the case) with the following changes:

  • switched everything to double
  • using 4 mixtures (which is what Andrew originally used, see the code here )
  • the empirical spectrum initialization in the SM kernel self.covar_module.initialize_from_data_empspect(train_x, train_y) in the initialization (also important)
  • using a second order optimizer with 10 random restarts (also used to some extent by Andrew)
from botorch import fit_gpytorch_model
fit_gpytorch_model(mll, max_retries=10);

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@patel-zeel
Comment options

@wjmaddox
Comment options

@wjmaddox
Comment options

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