This is a numerical approximation using finite differences. Note that
in general complex step methods cannot be used because it is not
guaranteed that the transform_params method is a real function (e.g.
if Cholesky decomposition is used).