Fast Bayesian Gaussian Process Regression Fitting

Bayesian inferences on nonparametric regression via Gaussian Processes with a modified exponential square kernel using a basis expansion approach.


BayesGPfit

An R package for Bayesian Gaussian process regression on regular grid points based on modified exponential sqaured kernel

  • Install and load the package
devtools::install_github("kangjian2016/BayesGPfit")
library(BayesGPfit)
  • Simulate curve on d-dimensional Euclidean space
library(lattice)
set.seed(1224)
dat = list()
dat$x = GP.generate.grids(d=2,num_grids = 100)
curve = GP.simulate.curve.fast(dat$x,a=0.01,b=0.5,poly_degree=20L)
GP.plot.curve(curve,main="Simulated Curve")
  • Bayesian model fitting based on two methods
dat$f = curve$f + rnorm(length(curve$f),sd=1)
fast_fit = GP.fast.Bayes.fit(dat$f,dat$x,a=0.01,b=0.5,poly_degree=20L,progress_bar = TRUE)
reg_fit = GP.Bayes.fit(dat$f,dat$x,a=0.01,b=0.5,poly_degree=20L,progress_bar = TRUE)
mse = c(reg = mean((reg_fit$f - curve$f)^2),
       fast = mean((fast_fit$f - curve$f)^2))
print(mse)

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("BayesGPfit")

1.1.0 by Jian Kang, 4 years ago


Browse source code at https://github.com/cran/BayesGPfit


Authors: Jian Kang [aut, cre] , John Burkardt [ctb]


Documentation:   PDF Manual  


GPL-2 license


Imports stats

Depends on lattice


Imported by BSPBSS.


See at CRAN