altar.bayesian.Profiler

Module Contents

Classes

class altar.bayesian.Profiler.Profiler(**kwds)

Bases: altar.component

Profiler times the various simulation phases

seed
doc = a template for the filename with the timing results
default = prof-{{wid:05}}-{{beta:03}}x{{parameters:03}}x{{chains:06}}x{{steps:03}}.csv
pfs
initialize(self, application)

Initialize me given an {application} context

simulationStart(self, controller, **kwds)

Handler invoked when the simulation is about to start

samplePosteriorStart(self, controller, **kwds)

Handler invoked at the beginning of sampling the posterior

prepareSamplingPDFStart(self, controller, **kwds)

Handler invoked at the beginning of the preparation of the sampling PDF

prepareSamplingPDFFinish(self, controller, **kwds)

Handler invoked at the end of the preparation of the sampling PDF

betaStart(self, controller, **kwds)

Handler invoked at the beginning of the beta step

walkChainsStart(self, controller, **kwds)

Handler invoked at the beginning of the chain walk

chainAdvanceStart(self, controller, **kwds)

Handler invoked at the beginning of a single step of chain walking

chainAdvanceFinish(self, controller, **kwds)

Handler invoked at the end of a single step of chain walking

verifyStart(self, controller, **kwds)

Handler invoked before we start verifying the generated sample

verifyFinish(self, controller, **kwds)

Handler invoked after we are done verifying the generated sample

priorStart(self, controller, **kwds)

Handler invoked before we compute the prior

priorFinish(self, controller, **kwds)

Handler invoked after we compute the prior

dataStart(self, controller, **kwds)

Handler invoked before we compute the data likelihood

dataFinish(self, controller, **kwds)

Handler invoked after we compute the data likelihood

posteriorStart(self, controller, **kwds)

Handler invoked before we assemble the posterior

posteriorFinish(self, controller, **kwds)

Handler invoked after we assemble the posterior

acceptStart(self, controller, **kwds)

Handler invoked at the beginning of sample accept/reject

acceptFinish(self, controller, **kwds)

Handler invoked at the end of sample accept/reject

resampleStart(self, controller, **kwds)

Handler invoked at the beginning of resampling

resampleFinish(self, controller, **kwds)

Handler invoked at the end of resampling

walkChainsFinish(self, controller, **kwds)

Handler invoked at the end of the chain walk

betaFinish(self, controller, **kwds)

Handler invoked at the end of the beta step

samplePosteriorFinish(self, controller, **kwds)

Handler invoked at the end of sampling the posterior

simulationFinish(self, controller, **kwds)

Handler invoked when the simulation is about to finish

save(self, controller)

Save the times collected by my timers