CosmoFit.BaseSampler

class CosmoFit.BaseSampler[source]

Bases: ABC

Interface a sampling backend must implement to be usable by Fitter.

__init__()

Methods

__init__()

run(logpost, prior, theta0, **kwargs)

Run the sampler and return the backend-native result object (e.g. an emcee.EnsembleSampler for EnsembleSampler).