Package gmisclib :: Module mcmc_mpi
[frames] | no frames]

Module mcmc_mpi

source code

This is a helper module to make use of mcmc.py and mcmc_big.py. It allows you to conveniently run a Monte-Carlo simulation of any kind until it converges (stepper.run_to_bottom) or until it has explored a large chunk of parameter space (stepper.run_to_ergodic).

It also helps you with logging the process.

When run in parallel, each processor does its thing more-or-less independently. However, every few steps, they exchange notes on their current progress. If one finds an improved vertex, it will be passed on to other processors via MPI.

Classes
  stepper
Functions
 
precompute_logp(lop)
Does a parallel evaluation of logp for all items in lop.
source code
 
test_() source code
Variables
  Debug = 0

Imports: sys, mpi, random, numpy, die, mcmc, MCH, TooManyLoops, warnevery, logger_template, test, step_acceptor, make_stepper_from_lov