Module Ppl.Inference
Implementation of inference algorithms
Inference algorithms to be called on probabilistic models defined using Dist. The infer method can be used to call all the inference algorithms listed, but the underlying method is also exposed for convenience. The
type 'a samples= ('a * Dist.prob) list
Helpers
Exact Inference
Importance Sampling
Rejetion Sampling
val pp_rejection_type : Stdlib.Format.formatter -> rejection_type -> unitval show_rejection_type : rejection_type -> stringval rejection : ?n:int -> rejection_type -> 'a Dist.dist -> 'a Dist.dist
Sequential Monte Carlo
Metropolis Hastings
Particle Independent Metropolis Hastings
Particle Cascade
Common
type infer_strat=|MH of int|SMC of int|PC of int|PIMH of int|Importance of int|Rejection of int * rejection_type|Prior|Enum|Forward
val pp_infer_strat : Stdlib.Format.formatter -> infer_strat -> unit
val infer : 'a Dist.dist -> infer_strat -> 'a Dist.distval infer_sampler : 'a Dist.dist -> infer_strat -> unit -> 'a