API: Turing.Inference
Turing.Inference.CSMC
— TypeCSMC(...)
Equivalent to PG
.
Turing.Inference.ESS
— TypeESS
Elliptical slice sampling algorithm.
Examples
julia> @model function gdemo(x)
m ~ Normal()
x ~ Normal(m, 0.5)
diff --git a/previews/PR2328/api/Optimisation/index.html b/previews/PR2328/api/Optimisation/index.html
index d2aa729fe..664a59fc9 100644
--- a/previews/PR2328/api/Optimisation/index.html
+++ b/previews/PR2328/api/Optimisation/index.html
@@ -457,6 +457,7 @@
});
+
API: Turing.Optimisation
SciMLBase.OptimizationProblem
— MethodOptimizationProblem(log_density::OptimLogDensity, adtype, constraints)
Create an OptimizationProblem
for the objective function defined by log_density
.
sourceTuring.Optimisation.MAP
— TypeMAP <: ModeEstimator
Concrete type for maximum a posteriori estimation. Only used for the Optim.jl interface.
sourceTuring.Optimisation.MLE
— TypeMLE <: ModeEstimator
Concrete type for maximum likelihood estimation. Only used for the Optim.jl interface.
sourceTuring.Optimisation.ModeEstimationConstraints
— TypeModeEstimationConstraints
A struct that holds constraints for mode estimation problems.
The fields are the same as possible constraints supported by the Optimization.jl: ub
and lb
specify lower and upper bounds of box constraints. cons
is a function that takes the parameters of the model and returns a list of derived quantities, which are then constrained by the lower and upper bounds set by lcons
and ucons
. We refer to these as generic constraints. Please see the documentation of Optimization.jl for more details.
Any of the fields can be nothing
, disabling the corresponding constraints.
sourceTuring.Optimisation.ModeEstimator
— TypeModeEstimator
An abstract type to mark whether mode estimation is to be done with maximum a posteriori (MAP) or maximum likelihood estimation (MLE). This is only needed for the Optim.jl interface.
sourceTuring.Optimisation.ModeResult
— TypeModeResult{
V<:NamedArrays.NamedArray,
M<:NamedArrays.NamedArray,
diff --git a/previews/PR2328/api/index.html b/previews/PR2328/api/index.html
index 3d2067023..c27ab67b4 100644
--- a/previews/PR2328/api/index.html
+++ b/previews/PR2328/api/index.html
@@ -457,6 +457,7 @@
});
+
API
Module-wide re-exports
Turing.jl directly re-exports the entire public API of the following packages:
Please see the individual packages for their documentation.
Individual exports and re-exports
All of the following symbols are exported unqualified by Turing, even though the documentation suggests that many of them are qualified. That means, for example, you can just write
using Turing
@model function my_model() end
diff --git a/previews/PR2328/index.html b/previews/PR2328/index.html
index b58c572c2..06df84c53 100644
--- a/previews/PR2328/index.html
+++ b/previews/PR2328/index.html
@@ -457,5 +457,6 @@
});
+
Turing.jl
This site contains the API documentation for the identifiers exported by Turing.jl.
If you are looking for usage examples and guides, please visit https://turinglang.org/docs.
Settings
This document was generated with Documenter.jl version 1.8.0 on Wednesday 18 December 2024. Using Julia version 1.11.2.