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.

createInitPos()

Create initial positions.

createInitPositionGenerator()

Returns a new instance of a Init Position Generator

createSampleFileUtil()

Returns a new instance of a File Util

createStopCriteriaStrategy()

Returns a new instance of a stop criteria stategy

getChain()

Returns the sample chain

isMaster()

Returns True.

loadBurnin()

Load the burn in from the file system.

loadSamples()

Load the samples from the file system.

log(message[, level])

Logs a message to the logfile

resetSampler()

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.

startSampling()

Launch the sampling.

Attributes

paramValues

paramWidths

samples

The samples that have been generated.