@@ -85,8 +85,8 @@ Which returns an approximation to the log marginal likelihood $p(y \mid \phi)$.
8585
8686This function takes in the following argumeents.
8787
88- 1 . ` likelihood_function ` - user-specified likelihood whose first argument is the vector of latent Gaussian variables ` theta `
89- 2 . ` likelihood_arguments ` - A tuple of the likelihood arguments whose internal members will be passed to the covariance function
88+ 1 . ` likelihood_function ` - user-specified log likelihood whose first argument is the vector of latent Gaussian variables ` theta `
89+ 2 . ` likelihood_arguments ` - A tuple of the log likelihood arguments whose internal members will be passed to the covariance function
90903 . ` theta_init ` - an initial guess for the optimization problem that underlies the Laplace approximation,
91914 . ` covariance_function ` - Prior covariance function
92925 . ` covariance_arguments ` A tuple of the arguments whose internal members will be passed to the the covariance function
@@ -96,7 +96,7 @@ passed to `likelihood_function`.
9696
9797Below we go over each argument in more detail.
9898
99- ## Specifying the likelihood function {#laplace-likelihood_spec}
99+ ## Specifying the log likelihood function {#laplace-likelihood_spec}
100100
101101The first step to use the embedded Laplace approximation is to write down a
102102function in the ` functions ` block which returns the log joint likelihood
@@ -185,13 +185,13 @@ The tuple after `covariance_function` contains the arguments that get passed
185185to ` covariance_function ` . For instance, if a user defined covariance function
186186uses two vectors
187187``` stan
188- real cov_fun(vector theta, real b, matrix Z)
188+ matrix cov_fun(real b, matrix Z)
189189```
190190the call to the Laplace marginal would include the covariance function and
191191a tuple holding the covariance function arguments.
192192
193193``` stan
194- real val = laplace_marginal(likelihood_fun, (a, X), cov_fun, (b, Z), ...);
194+ real val = laplace_marginal(likelihood_fun, (a, X), theta_init, cov_fun, (b, Z), ...);
195195```
196196
197197## Control parameters
0 commit comments