Pangolin API docs#
Pangolin’s goal is to be the world’s friendliest probabilistic programming language.
Quickstart:
Use
pangolin.interfaceto define probabilistic models in a cheerful interface.Use
pangolin.functionalto transform IR graphs with functional combinators.Use
pangolin.jax_backendto compile probabilistic models into plain JAX functions (to be used independently of the rest of Pangolin).Use
pangolin.torch_backendto compile probabilistic models into plain pytorch functions (to be used independently of the rest of Pangolin).Use
pangolin.blackjaxto easily call Blackjax to do inference on probabilistic models.
Pangolin also exposes lower-level graph APIs:
pangolin.irdefines the graph representation for probabilistic models.pangolin.dagprovides generic directed-acyclic-graph operations.pangolin.utilprovides shared calculation and PyTree helpers.