Pangolin API docs

Contents

Pangolin API docs#

Pangolin’s goal is to be the world’s friendliest probabilistic programming language.

Quickstart:

  • Use pangolin.interface to define probabilistic models in a cheerful interface.

  • Use pangolin.jax_backend to compile probabilistic models into plain JAX functions (to be used independently of the rest of Pangolin).

  • Use pangolin.torch_backend to compile probabilistic models into plain pytorch functions (to be used independently of the rest of Pangolin).

  • Use pangolin.blackjax to easily call Blackjax to do inference on probabilistic models.

In addition, there are three “private” submodules that end-users would not typically interact with:

  • pangolin.util - Various internal utility functions.

  • pangolin.dag - Utilities for interacting with directed acyclic graphs (DAGs).

  • pangolin.ir - The internal representation (IR) for probabilistic models in Pangolin.

Subpackages#