API reference¶
Everything in hyperiax lives behind a small public surface; the
sections below list it module by module. Each entry links to a per-symbol
page generated from its docstring.
hyperiax.core¶
Tree topology, immutable Tree pytree, schema, views, sweep decorators.
|
Immutable tree topology with precomputed dispatch layouts. |
|
A topology + a typed dict of |
|
Ordered, hashable collection of named FieldSpecs. |
|
Per-node trailing shape and dtype of a single Tree field. |
|
A direction-tagged, pure |
|
Sliced per-node fields for one level (or one selected subset). |
|
View of the children of all parents at the current up-sweep level. |
|
Virtual children-axis proxy for unequal-degree trees. |
|
Decorator: mark a function as an up-sweep. |
|
Decorator: mark a function as a down-sweep. |
|
A regular tree where every internal node has exactly |
|
Thin re-export of |
|
Read a Newick tree (literal or file path) into a hyperiax |
|
Serialize a Tree back to a Newick string. |
Base class for all hyperiax-raised exceptions. |
|
A sweep or tree access references a name not in the tree's schema. |
|
A value's shape or dtype does not match the field's spec. |
hyperiax.prebuilt¶
Ready-to-use sweeps and helpers for common message-passing tasks.
Phylogenetic weighted mean
Return a SweepFn that fills each non-leaf node's |
BFFG — discrete-edge (linear-Gaussian) sweeps
Field layout for a discrete-edge BFFG tree. |
|
Seed a discrete-edge BFFG tree with leaf observations and initial anchors. |
|
Build the discrete-edge backward-filtering up-sweep (Theorem 14 §6.1). |
|
Build the unconditional forward-sampling down-sweep. |
|
Build the discrete-edge forward-guided down-sweep (Theorem 14 §6.1). |
|
Build the discrete anchor-refinement down-sweep (Algorithm 3 §7.1). |
BFFG — continuous-edge (SDE) sweeps
Field layout for a continuous-edge (SDE) BFFG tree. |
|
Seed a continuous-edge BFFG tree with leaf observations and initial anchors. |
|
Build the continuous-edge backward-filtering up-sweep (Theorem 23 §7.1). |
|
Build the unconditional SDE forward-sampling down-sweep. |
|
Build the continuous-edge forward-guided down-sweep (Theorem 23 §7.1). |
|
Build the continuous anchor-refinement down-sweep (Algorithm 3 §7.1). |
|
Propagate continuous BFFG linearisation anchors top-down. |
For MCMC over BFFG-guided latents and hyperparameters, hyperiax composes with NumPyro — see Gaussian MCMC — BFFG with a hand-rolled kernel and Gaussian NUTS — and what its existence proves for worked examples.