pith. sign in

arxiv: 1812.04125 · v1 · pith:5J7HDEOXnew · submitted 2018-12-06 · 💻 cs.PL

Yaps: Python Frontend to Stan

classification 💻 cs.PL
keywords stanpythonsyntaxyapsfrontendlanguagemodelsself-contained
0
0 comments X
read the original abstract

Stan is a popular probabilistic programming language with a self-contained syntax and semantics that is close to graphical models. Unfortunately, existing embeddings of Stan in Python use multi-line strings. That approach forces users to switch between two different language styles, with no support for syntax highlighting or simple error reporting within the Stan code. This paper tackles the question of whether Stan could use Python syntax while retaining its self-contained semantics. The answer is yes, that can be accomplished by reinterpreting the Python syntax. This paper introduces Yaps, a new frontend to Stan based on reinterpreted Python. We tested Yaps on over a thousand Stan models and made it available open-source.

This paper has not been read by Pith yet.

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.