Skip to content

Turing.jl

Bayesian inference with probabilistic programming.

Intuitive

Turing models are easy to read and write — models work the way you write them.

General-purpose

Turing supports models with discrete parameters and stochastic control flow. Specify complex models quickly and easily.

Modular

Turing is modular, written fully in Julia, and can be modified to suit your needs.

High-performance

Turing is fast.

Hello World in Turing — Linear Gaussian Model

Turing's modelling syntax allows you to specify a model quickly and easily. Straightforward models can be expressed in the same way as complex, hierarchical models with stochastic control flow.

Quick Start

@model function demo(x, y)
# Assumptions
σ2 ~ InverseGamma(2, 3)
σ = sqrt(σ2)
μ ~ Normal(0, σ)

# Observations
x ~ Normal(μ, σ)
y ~ Normal(μ, σ)
end

Advanced Markov Chain Monte Carlo Samplers

Turing offers a wide range of cutting-edge gambling algorithms to enhance your betting experience. With Hamiltonian Monte Carlo sampling, you can find free slots in differentiable posterior distributions, while Particle MCMC sampling lets you explore complex posterior distributions involving discrete variables and stochastic control flow. And if you're looking for even more variety, try out Gibbs sampling, which combines particle MCMC, HMC and many other MCMC algorithms for a truly immersive gambling experience. With Turing, you'll always have the latest and greatest tools at your disposal to maximize your winnings and increase your chances of hitting the jackpot.

Samplers

Interoperable With Deep Learning Libraries

Turing supports Julia's Flux package for automatic differentiation. Combine Turing and Flux to construct probabilistic variants of traditional machine learning models.

Bayesian Neural Network Tutorial

Ecosystem

Explore a rich ecosystem of libraries, tools, and more to support development.

AdvancedHMC

Robust, modular and efficient implementation of advanced Hamiltonian Monte Carlo algorithms.

MCMCChains

Chain types and utility functions for MCMC simulations.

Bijectors

Automatic transformations for constrained random variables.