package prbnmcn-dagger
Probabilistic programming library
Install
Dune Dependency
Authors
Maintainers
Sources
0.0.5.tar.gz
md5=d3d86327b3092678c431b5bc887d9dd6
sha512=4a5c781c7e20b10f7f74fa6138901acc3d9c9017a0ff1f003c913d1acbfdcae84156c004283ed656c01f7c2ca23b8cbef3a853cdfb265b64838b89fd9d5024ba
doc/prbnmcn-dagger/Dagger/Resampling/module-type-Particles/index.html
Module type Resampling.Particles
Source
A Particles
module exposes primitives available to resampling algorithms.
fold
allows to fold on the current population of particles.
get_output p
is the output of the particle at the last yield
point. Returns None
if the particle has terminated. See the documentation for yield
in Smc_inference
.
val total : unit -> r
total ()
is the total mass of the current population.
val ess : unit -> r
ess ()
is the estimated sample size. Varies between 0
and the cardinality of the current population. Computed as \left(\sum_{i=1}^N w_i^2\right)^{-1}
, where N
is equal to size ()
and the w_i
are the normalized scores of each particle.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>