modelGradientCheck: Check gradients of given model.
Description
checks the supplied gradient function and the supplied objective function to ensure that the numerical gradients (as computed with the objective function) match the analytically computed gradients.
Usage
modelGradientCheck(model, ...)
Arguments
model
the model for which gradients are to be checked.
...
additional arguments that are passed to the objective and gradient functions (after the parameter vector which is always assumed to be the first argument passed).