Skip to content

trust-ncg in ScipyMinimize argument issue  #240

Description

@hanzy1110

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions