计算机科学 > 程序设计语言
[提交于 2018年12月12日]
标题:Yaps: Python Frontend to Stan
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要: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.
提交历史
来自:Martin Hirzel[v1] 2018年12月12日 星期三 00:00:00 UTC