SamplerResult#

class gammapy.modeling.SamplerResult(nfev=0, success=False, models=None, samples=None, sampler_results=None)[source]#

Bases: object

SamplerResult class.

Parameters:
nfevint

Number of likelihood calls/evaluations.

successbool

Did the sampler succeed in finding a good fit? Definition of convergence depends on the sampler backend.

modelsmodels

The models updated after the sampler run.

samplesndarray

Array of (weighted) samples that can be used for histograms or corner plots.

sampler_resultsdict

Output of sampler. See the Bayesian analysis with nested sampling tutorial for a complete description.

Methods Summary

from_ultranest(ultranest_result)

Methods Documentation

classmethod from_ultranest(ultranest_result)[source]#