bayespy.utils.optimize.check_gradient

bayespy.utils.optimize.check_gradient(f, x0, verbose=True, epsilon=1.4901161193847656e-08, return_abserr=False)[source]

Simple wrapper for SciPy’s gradient checker.

The given function must return a tuple: (value, gradient).

Returns absolute and relative errors