OptimizeResult

class pmrf.optimize.OptimizeResult(model: ModelT, objective: Callable[[ModelT, Frequency], Array], success: bool, metrics: Any = None)

Bases: Module, Generic[ModelT]

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.

model: ModelT

The RF model holding the final optimized parameters.

objective: Callable[[ModelT, Frequency], Array]

The objective function (e.g., pmrf.evaluators.TargetLoss) used to calculate the objective during optimization. If the objective was a module with hyper-parameters, then this contains the optimized objective model.

success: bool

Whether the optimizer converged.