OptimizeResult

class pmrf.optimize.OptimizeResult(problem: AbstractProblem, success: bool, metrics: Any = None)

Bases: Module, Generic[PyTreeT]

The result of an optimization run.

metrics: Any = None

The underlying results object returned by the solver, if any. May be a stripped-down version of the original results object. Not saved to file.

property model: PyTreeT

The PyTree holding the final optimized parameters.

property objective: tuple[Callable[[PyTree], Array], ...]

The terms that were summed to form the objective. If a term’s evaluator was a module with hyper-parameters, then this contains the optimized evaluator.

problem: AbstractProblem

The solved problem, holding the final optimized parameters.

success: bool

Whether the optimizer converged.