Crate gen_rs

source ·
Expand description

gen_rs is a a library for general-purpose, low-level probabilistic modeling and inference. Modeling and inference are separated by a trait interface, called GenFn.

Any function that implements GenFn (representing a Bayesian model) can use and compose any inference procedure in the standard inference library.

Re-exports§

Modules§

  • Utilities for parsing addresses (special keys used in the Trie data structure).
  • Definition of the Generative Function Interface (GFI).
  • Standard inference library.
  • Distributions and a modeling DSL built on Tries.
  • Implementations of the Trie data structure, used extensively in modeling::triefn.

Constants§

  • Forked PRNG, accessible as a static crate-level thread-local constant. (Use like GLOBAL_RNG.with_borrow_mut(|rng| { ... })).

Functions§

  • For an input vector of [x1, ..., xn], return log(exp(x1) + ... + exp(xn)).