FitResult

class pmrf.fitting.FitResult(data: Any = None, frequency: Frequency | None = None, solution: OptimizeResult | InferResult | None = None, *, name: str | None = None)

Bases: Module

Standardized return object for a fitting routines.

Wraps an pmrf.optimize.OptimizeResult or pmrf.infer.InferResult with added information for easy plotting.

plot(features: str | list[str] | Evaluator = 's', ax=None, **kwargs)

Plots the best fit.

Parameters:

feature (str | Evaluator) – The specific feature to extract and plot (e.g., ‘s_real’, ‘s_mag_db’, or a custom Evaluator instance).

data: Any = None

The data used for the fit.

frequency: Frequency | None = None

The frequeny used for the fit.

property model
solution: OptimizeResult | InferResult | None = None

The underlying pmrf.optimize.OptimizeResult or pmrf.infer.InferResult solution.