prtools.jax.JaxOptimizeResult#

class JaxOptimizeResult(x: Any, n: Any, value: Any, grad: Any, state: Any)[source]#

Represents the optimization result.

Attributes

grad

Value of objective function gradient at x

n

Number of iterations performed by the optimizer

state

Optimizer state

value

Value of objective function at x

x

The solution of the optimization

Methods

count(value, /)

Return number of occurrences of value.

index(value[, start, stop])

Return first index of value.