Arguments
model
the model structure for which gradients are computed.
X
the input data locations for which gradients are computed.
M
the scaled and bias removed target data for which the gradients are computed.
X_u
the inducing variable locations for which gradients are computed.
gX_u
flag to return the gradient of the log likelihood with respect to the inducing variables. If inducing variables aren't being used this returns zero.
gX
flag to return the gradient of the log likelihood with respect to the input data locations.
g_beta
flag to return the gradient of the log likelihood with respect to beta.