Laplace Approximation
ApproximateGPs.LaplaceApproximationModule.build_laplace_objective
— Methodbuild_laplace_objective(build_latent_gp, xs, ys; kwargs...)
Construct a closure that computes the minimisation objective for optimising hyperparameters of the latent GP in the Laplace approximation. The returned closure passes its arguments to build_latent_gp
, which must return the LatentGP
prior.
Keyword arguments
newton_warmstart=true
: (default) begin Newton optimisation at the mode of the previous call to the objectivenewton_callback
: called asnewton_callback(fnew, cache)
after each Newton stepnewton_maxiter=100
: maximum number of Newton steps.