run_mcmc

gammapy.modeling.run_mcmc(dataset, nwalkers=8, nrun=1000, threads=1)[source]

Run the MCMC sampler.

Parameters
datasetDataset

Dataset

nwalkersint

Number of walkers

nrunint

Number of steps each walker takes

threads(optional)

Number of threads or processes to use

Returns
sampleremcee.EnsembleSampler

sampler object containing the trace of all walkers.