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