统计学 > 计算
[提交于 2025年10月30日]
标题:Phantom types for robust hierarchical models with typegeist
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:In Bayesian hierarchical models, group-level parameter arrays must be mapped to the observation axis, often using explicit indexing. In complex models with numerous incompatible data and parameter sets, this introduces the potential for bugs, as indexing with the incorrect indices typically fails silently. Here we present typegeist, a type system for Python that uses static type analysis to enable specification and enforcement of data-parameter-index correspondences. We show how this can be used with common probabilistic programming frameworks to help guarantee model correctness with minimal run-time overhead.
提交历史
来自:Daniel O'Hanlon[v1] 2025年10月30日 星期四 17:26:03 UTC