diff --git a/dev/api/index.html b/dev/api/index.html index 5d32851..34c10f1 100644 --- a/dev/api/index.html +++ b/dev/api/index.html @@ -454,6 +454,7 @@ }); +

API

Temper samplers

MCMCTempering.temperedFunction
tempered(sampler, inverse_temperatures; kwargs...)
 OR
 tempered(sampler, num_temps; swap_strategy=ReversibleSwap(), kwargs...)

Return a tempered version of sampler using the provided inverse_temperatures or inverse temperatures generated from num_temps and the swap_strategy.

Arguments

  • sampler is an algorithm or sampler object to be used for underlying sampling and to apply tempering to
  • The temperature schedule can be defined either explicitly or just as an integer number of temperatures, i.e. as:
    • inverse_temperatures containing a sequence of 'inverse temperatures' {β₀, ..., βₙ} where 0 ≤ βₙ < ... < β₁ < β₀ = 1 OR
    • num_temps, specifying the integer number of inverse temperatures to include in a generated inverse_temperatures

Keyword arguments

  • swap_strategy::AbstractSwapStrategy specifies the method for swapping inverse temperatures between chains
  • steps_per_swap::Integer steps are carried out between each attempt at a swap

See also

source
MCMCTempering.TemperedSamplerType
TemperedSampler <: AbstractMCMC.AbstractSampler

A TemperedSampler struct wraps a sampler upon which to apply the Parallel Tempering algorithm.

Fields

  • sampler: sampler(s) used to target the tempered distributions

  • chain_to_beta: collection of inverse temperatures β; β[i] correponds i-th tempered model

  • swapstrategy: strategy to use for swapping

  • adapt: boolean flag specifying whether or not to adapt

  • adaptation_states: adaptation parameters

source

Under the hood, MCMCTempering.TemperedSampler is actually just a "fancy" representation of a composition (represented using a MCMCTempering.CompositionSampler) of a MCMCTempering.MultiSampler and a MCMCTempering.SwapSampler.

Roughly speaking, the implementation of AbstractMCMC.step for MCMCTempering.TemperedSampler is basically

# 1. Construct the tempered models.
diff --git a/dev/getting-started/index.html b/dev/getting-started/index.html
index 99a6055..8e08218 100644
--- a/dev/getting-started/index.html
+++ b/dev/getting-started/index.html
@@ -454,6 +454,7 @@
     });
 
 
+
 

Getting started: a simple Mixture of Gaussians example

Suppose we have a mixture of Gaussians, e.g. something like

using Distributions
 target_distribution = MixtureModel(
     Normal,
diff --git a/dev/index.html b/dev/index.html
index bffb4e9..b1e1186 100644
--- a/dev/index.html
+++ b/dev/index.html
@@ -454,5 +454,6 @@
     });
 
 
+
 

MCMCTempering.jl

Tempering methods and more for Markov chain Monte Carlo methods.

MCMCTempering provides implementations of different ways to define tempered samplers and models, in addition to other ways of composing and mixing samplers.

diff --git a/dev/search/index.html b/dev/search/index.html index c6d253b..11dde45 100644 --- a/dev/search/index.html +++ b/dev/search/index.html @@ -454,5 +454,6 @@ }); +

Loading search...