<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/probability/blob/v0.25.0/tensorflow_probability/python/mcmc/__init__.py) |

TensorFlow Probability MCMC python package.

## Classes

[`class CheckpointableStatesAndTrace`](https://www.tensorflow.org/probability/api_docs/python/tfp/mcmc/CheckpointableStatesAndTrace): States and auxiliary trace of an MCMC chain.

[`class DualAveragingStepSizeAdaptation`](https://www.tensorflow.org/probability/api_docs/python/tfp/mcmc/DualAveragingStepSizeAdaptation): Adapts the inner kernel's `step_size` based on `log_accept_prob`.

[`class HamiltonianMonteCarlo`](https://www.tensorflow.org/probability/api_docs/python/tfp/mcmc/HamiltonianMonteCarlo): Runs one step of Hamiltonian Monte Carlo.

[`class MetropolisAdjustedLangevinAlgorithm`](https://www.tensorflow.org/probability/api_docs/python/tfp/mcmc/MetropolisAdjustedLangevinAlgorithm): Runs one step of Metropolis-adjusted Langevin algorithm.

[`class MetropolisHastings`](https://www.tensorflow.org/probability/api_docs/python/tfp/mcmc/MetropolisHastings): Runs one step of the Metropolis-Hastings algorithm.

[`class NoUTurnSampler`](https://www.tensorflow.org/probability/api_docs/python/tfp/mcmc/NoUTurnSampler): Runs one step of the No U-Turn Sampler.

[`class RandomWalkMetropolis`](https://www.tensorflow.org/probability/api_docs/python/tfp/mcmc/RandomWalkMetropolis): Runs one step of the RWM algorithm with symmetric proposal.

[`class ReplicaExchangeMC`](https://www.tensorflow.org/probability/api_docs/python/tfp/mcmc/ReplicaExchangeMC): Runs one step of the Replica Exchange Monte Carlo.

[`class SimpleStepSizeAdaptation`](https://www.tensorflow.org/probability/api_docs/python/tfp/mcmc/SimpleStepSizeAdaptation): Adapts the inner kernel's `step_size` based on `log_accept_prob`.

[`class SliceSampler`](https://www.tensorflow.org/probability/api_docs/python/tfp/mcmc/SliceSampler): Runs one step of the slice sampler using a hit and run approach.

[`class StatesAndTrace`](https://www.tensorflow.org/probability/api_docs/python/tfp/mcmc/StatesAndTrace): States and auxiliary trace of an MCMC chain.

[`class TransformedTransitionKernel`](https://www.tensorflow.org/probability/api_docs/python/tfp/mcmc/TransformedTransitionKernel): TransformedTransitionKernel applies a bijector to the MCMC's state space.

[`class TransitionKernel`](https://www.tensorflow.org/probability/api_docs/python/tfp/mcmc/TransitionKernel): Base class for all MCMC `TransitionKernel`s.

[`class UncalibratedHamiltonianMonteCarlo`](https://www.tensorflow.org/probability/api_docs/python/tfp/mcmc/UncalibratedHamiltonianMonteCarlo): Runs one step of Uncalibrated Hamiltonian Monte Carlo.

[`class UncalibratedLangevin`](https://www.tensorflow.org/probability/api_docs/python/tfp/mcmc/UncalibratedLangevin): Runs one step of Uncalibrated Langevin discretized diffusion.

[`class UncalibratedRandomWalk`](https://www.tensorflow.org/probability/api_docs/python/tfp/mcmc/UncalibratedRandomWalk): Generate proposal for the Random Walk Metropolis algorithm.

## Functions

[`default_swap_proposal_fn(...)`](https://www.tensorflow.org/probability/api_docs/python/tfp/mcmc/default_swap_proposal_fn): Make the default swap proposal func, with `P[swap]`, for replica swap MC.

[`effective_sample_size(...)`](https://www.tensorflow.org/probability/api_docs/python/tfp/mcmc/effective_sample_size): Estimate a lower bound on effective sample size for each independent chain.

[`even_odd_swap_proposal_fn(...)`](https://www.tensorflow.org/probability/api_docs/python/tfp/mcmc/even_odd_swap_proposal_fn): Make a deterministic swap proposal function, alternating even/odd swaps.

[`make_simple_step_size_update_policy(...)`](https://www.tensorflow.org/probability/api_docs/python/tfp/mcmc/make_simple_step_size_update_policy): Create a function implementing a step-size update policy. (deprecated)

[`potential_scale_reduction(...)`](https://www.tensorflow.org/probability/api_docs/python/tfp/mcmc/potential_scale_reduction): Gelman and Rubin (1992)'s potential scale reduction for chain convergence.

[`random_walk_normal_fn(...)`](https://www.tensorflow.org/probability/api_docs/python/tfp/mcmc/random_walk_normal_fn): Returns a callable that adds a random normal perturbation to the input.

[`random_walk_uniform_fn(...)`](https://www.tensorflow.org/probability/api_docs/python/tfp/mcmc/random_walk_uniform_fn): Returns a callable that adds a random uniform perturbation to the input.

[`sample_annealed_importance_chain(...)`](https://www.tensorflow.org/probability/api_docs/python/tfp/mcmc/sample_annealed_importance_chain): Runs annealed importance sampling (AIS) to estimate normalizing constants.

[`sample_chain(...)`](https://www.tensorflow.org/probability/api_docs/python/tfp/mcmc/sample_chain): Implements Markov chain Monte Carlo via repeated `TransitionKernel` steps.

[`sample_halton_sequence(...)`](https://www.tensorflow.org/probability/api_docs/python/tfp/mcmc/sample_halton_sequence): Returns a sample from the `dim` dimensional Halton sequence.