- class sherpa.fit.FitResults(fit, results, init_stat, param_warnings)
The results of a fit.
This object contains the parameter values, information on the statistic and optimisation-method used, and other relevant information.
Changed in version 4.10.1: The
covarerrattribute has been renamed to
covarand now contains the covariance matrix estimated at the best-fit location, if provided by the optimiser.
A sequence of the data set ids included in the results.
the parameter names that were varied in the fit (the thawed parameters in the model expression).
The statistic value after the fit.
The statistic value at the start of the fit.
The change in the statistic value (
istatval - statval).
The number of degrees of freedom in the fit (the number of bins minus the number of free parameters).
The Q-value (probability) that one would observe the reduced statistic value, or a larger value, if the assumed model is true and the current model parameters are the true parameter values. This will be
Noneif the value can not be calculated with the current statistic (e.g. the Cash statistic).
number or None
number or None
A message about the results of the fit (e.g. if the fit was unable to converge). The format and contents depend on the optimisation method.
extra_outputfield from the fit.
The covariance matrix from the best-fit location, if provided by the optimiser.
tuple or None
Return a string representation of the fit results.