rise.engine.estimation.rsamplers.apt is the constructor for the Adaptive Parallel tempering algorithm following [Miasojedow et al., 2013]

The syntax is

obj = rise.engine.estimation.rsamplers.apt(target,x0,lb,ub)
obj = rise.engine.estimation.rsamplers.apt(target,x0,lb,ub,opts)
obj = rise.engine.estimation.rsamplers.apt(target,x0,lb,ub,opts,constraints)

INPUTS :

  • *target* : objective to MAXIMIZE

  • *x0* : vector of initial conditions

  • *lb* : lower bound

  • *ub* : upper bound

  • *opts* : options for the class. These include the properties from the superclass rise.engine.estimation.rsamplers.rwmh as well as the specific properties of the apt algorithm that can be found in the properties list below.

  • *constraints* (optional): - Matrix (n_constraints x 2) where each row [a, b] enforces x(a) <= x(b)

OUTPUT :

  • obj : object of class rise.engine.estimation.rsamplers.apt

OWN PROPERTIES AND DEFAULT VALUES:

  • *H* = 12 : Number of tempering stages, an integer of at least 2 (the chain swaps neighboring stages)

  • *alpha* = .234 : target acceptance rate

  • *alpha_swap* = .234 : target acceptance rate for swaps

  • *rwm_fixed_p* = 0 : prob of drawing from a fixed initial proposal

  • *rwm_exp* = 0.6 : Exponent of random-walk adaptation step size

  • *cov_exp* = 1 : Exponent of the step size of the proposal mean and covariance adaptation. 1 makes them running averages of all the draws (Haario et al. 2001). Smaller values weight the recent draws more, which makes the proposals follow the chain and under-disperses the draws: 0.6, the exponent before 2026-10, gave standard deviations 23% too small on a 26-parameter Gaussian after 50,000 iterations.

  • *adapt_until* = 10000 : Iterations during which the proposal scales, means and covariances and the temperatures adapt, counted over every run of the chain: a run continued from a previous result counts on from it, so a run split in segments gives the same draws as one run. Afterwards they are frozen and the chain is an exact (non-adaptive) parallel-tempering MCMC: discard at least the adaptation period. inf adapts throughout; a value below 1 is a fraction of the iterations of the chain’s first run (burnin + N*thinning).

  • *sw_exp_rm* = 0.6 : Exp. of temperature adaptation step size

  • *ram_adapt* = false : Use the robust AM adaptation

  • *separate_shape_adaptation* = true :separate covariance for each temperature. When false, the stages share one covariance (and one mean); with ram_adapt = true, each stage in turn updates the shared factor with 1/H of the step of the separate case

  • *fixed_temperatures* = false : fixed temperatures

INHERITED PROPERTIES : properties from rise.engine.estimation.rsamplers.rwmh

See also

rise.engine.estimation.rsamplers.rwmh, rise.engine.estimation.rsamplers.imh, rise.engine.estimation.rsamplers.rsampler