gp_init | R Documentation |
Initializes a GP model with given covariance function(s) and likelihood.
The model can then be fitted using gp_fit
. For hyperparameter
optimization, see gp_optim
gp_init( cfs = cf_sexp(), lik = lik_gaussian(), method = method_full(), approx = approx_laplace() )
cfs |
The covariance function(s). Either a single covariance function
or a list of them. See |
lik |
Likelihood (observation model). See |
method |
Method for approximating the covariance function.
See |
approx |
Approximate inference method for Gaussian approximation
for the posterior of the latent values. See |
A GP model object that can be passed to other functions, for example when optimizing the hyperparameters or making predictions.
Rasmussen, C. E. and Williams, C. K. I. (2006). Gaussian processes for machine learning. MIT Press.
# Full exact GP with Gaussian likelihood gp <- gp_init( cfs = cf_sexp(), lik = lik_gaussian(), method = method_full() ) # Binary classification model with EP approximation for the latent values # and FITC sparse approximation to facilitate large datasets gp <- gp_init( cfs = cf_sexp(), lik = lik_bernoulli(), approx = approx_ep(), method = method_fitc(num_inducing = 100) )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.