py21cmmc.cosmoHammer.CosmoHammerSampler#
- class py21cmmc.cosmoHammer.CosmoHammerSampler(likelihoodComputationChain, continue_sampling=False, log_level_stream=40, max_init_attempts=100, *args, **kwargs)[source]#
Upgraded
cosmoHammer.CosmoHammerSampler
with the ability to continue sampling.Methods
__init__
(likelihoodComputationChain[, ...])CosmoHammer sampler implementation
createEmceeSampler
(lnpostfn, **kwargs)Create the emcee sampler.
Create initial positions.
Returns a new instance of a Init Position Generator
Returns a new instance of a File Util
Returns a new instance of a stop criteria stategy
getChain
()Returns the sample chain
isMaster
()Returns True.
Load the burn in from the file system.
Load the samples from the file system.
log
(message[, level])Logs a message to the logfile
Resets the emcee sampler in the master node
sample
(burninPos[, burninProb, ...])Run emcee sampling.
sampleBurnin
(p0[, prob, rstate, datas])Run burnin samples.
startSampleBurnin
([pos, prob, rstate, data])Run the sampler for the burn in.
Launch the sampling.
Attributes
The samples that have been generated.