Yaps: Python Frontend to Stan

Guillaume Baudart, Martin Hirzel, Kiran Kate, Louis Mandel, Avraham Shinnar
12/6/2018
cs.PL

Official code: IBM/yaps (46 stars, Python, Apache-2.0, last commit 2019-01-11).

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

IBM/yapsOfficial100%
Apache-2.0

A surface language for programming Stan models using python syntax

468Python, Jupyter NotebookJul 13, 20187 years agoApache-2.0
cmdstanpycmdstanpystanpythonstan+2 more

Similar Papers

Cite this paper

@article{baudart2018yaps,
  title  = {Yaps: Python Frontend to Stan},
  author = {Guillaume Baudart and Martin Hirzel and Kiran Kate and Louis Mandel and Avraham Shinnar},
  year   = {2018},
  eprint = {1812.04125},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1812.04125}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1812.04125.svg)](https://codeofpaper.com/paper/1812.04125)

Discussion