NobleBlocks
Preprint
Original Research Article
Public

Phantom types for robust hierarchical models with typegeist

G
Shared by Gary on Nov 1, 2025 • 12:55 AM UTC
NobleBlocks IDNB5481546A
Authors:
Daniel O’Hanlon

Abstract

In Bayesian hierarchical models, group-level parameter arrays must be mapped to the observationaxis, oftenusingexplicitindexing. Incomplexmodelswithnumerousincompatible data and parameter sets, this introduces the potential for bugs, as indexing with the incorrect indices typically fails silently. H...

Highlights

-Phantom types are introduced to enforce data-parameter-index correspondences in hierarchical models.
-Implemented in the typegeist Python package and compatible with Pyro, NumPyro, PyMC, TensorFlow Probability.
NobleBlocks' AI Take

Finding related papers...

Discussions

(0)

No comments yet

Be the first to share your thoughts!