gpGradient: Gradient wrapper for a GP model.

Description Usage Arguments Value See Also Examples

Description

wraps the log likelihood gradient function to return the gradient of the negative of the log likelihood. This can then be used in, for example, NETLAB, minimisation tools.

Usage

1
gpGradient(params, model)

Arguments

params

the parameters of the model.

model

the model for which gradients will be computed.

Value

g

the returned gradient of the negative log likelihood for the given parameters.

See Also

gpCreate, gpGradient, gpLogLikeGradients, gpOptimise.

Examples

1
## missing

Example output

Loading required package: Matrix
Loading required package: fields
Loading required package: spam
Loading required package: dotCall64
Loading required package: grid
Spam version 2.1-1 (2017-07-02) is loaded.
Type 'help( Spam)' or 'demo( spam)' for a short introduction 
and overview of this package.
Help for individual functions is also obtained by adding the
suffix '.spam' to the function name, e.g. 'help( chol.spam)'.

Attaching package: 'spam'

The following objects are masked from 'package:base':

    backsolve, forwardsolve

Loading required package: maps

gptk documentation built on May 2, 2019, 3:27 p.m.

Related to gpGradient in gptk...