CosmoFit.EnsembleSampler¶
- class CosmoFit.EnsembleSampler(moves=None)[source]¶
Bases:
BaseSampleremcee.EnsembleSamplerbackend: affine-invariant ensemble MCMC, the default (and currently only) wayFitter.run_mcmcexplores a posterior.- Parameters:
moves (emcee move or list of (move, weight), optional) – Passed straight through to
emcee.EnsembleSampler. Lets the proposal strategy be swapped out (e.g.emcee.moves.DEMove()for strongly correlated posteriors) without changing anything else about the fit. Defaults to emcee’s own default (StretchMove).
Methods
__init__([moves])run(logpost, prior, theta0[, nwalkers, ...])Initialize walkers around
theta0and run the sampler.