run_mcmc¶
-
gammapy.modeling.
run_mcmc
(dataset, nwalkers=8, nrun=1000, threads=1)[source]¶ Run the MCMC sampler.
- Parameters
- dataset
Dataset
Dataset
- nwalkersint
Number of walkers
- nrunint
Number of steps each walker takes
- threads(optional)
Number of threads or processes to use
- dataset
- Returns
- sampler
emcee.EnsembleSampler
sampler object containing the trace of all walkers.
- sampler