Hi! I've been trying to use the scipy wrapper for the trust-ncg method. When I do this, I'm prompted to pass the hessian vector product as an argument. The source code for the _run method is as follows (from the documentation):
res = osp.optimize.minimize(scipy_fun, jnp_to_onp(init_params, self.dtype), jac=True, bounds=bounds, method=self.method, options=self.options)
Which doesn't allow the hess argument to be passed to scipy. indeed when I pass the hess argument inside options I get an exception telling me scipy has received hess twice and when I don't pass it the resulting exception tells me that I haven't specified the hessian.
Hi! I've been trying to use the scipy wrapper for the trust-ncg method. When I do this, I'm prompted to pass the hessian vector product as an argument. The source code for the _run method is as follows (from the documentation):
res = osp.optimize.minimize(scipy_fun, jnp_to_onp(init_params, self.dtype), jac=True, bounds=bounds, method=self.method, options=self.options)Which doesn't allow the hess argument to be passed to scipy. indeed when I pass the hess argument inside options I get an exception telling me scipy has received hess twice and when I don't pass it the resulting exception tells me that I haven't specified the hessian.