Code You Are Happy to Paste: An Algorithmic Dictionary of Exponential Families
Abstract
We describe a library and a companion website designed to ease the usage of exponential families in various programming languages. Implementation of mathematical formulas in computer programs is often error-prone, difficult to debug and difficult to read afterwards. Moreover, this implementation is heavily dependent of the programming language used and often needs an important knowledge of the idioms of the language. In our system, formulas are described in a high-level language and mechanically exported to the chosen target language and a export allows to quickly review correctness of formulas. Although our system is not limited by design to exponential families, we focus on this kind of formulas since they are of great interest for machine learning and statistical modeling applications. Besides, exponential families are a good usecase of our dictionary: among other usages, they may be used with generic algorithms for mixture models such as Bregman Soft Clustering, in which case lots of formulas from the canonical decomposition of the family need to be implemented. We thus illustrate our library by generating code which can be plugged into generic Expectation-Maximization schemes written in multiple languages.
Cite
Text
Schwander. "Code You Are Happy to Paste: An Algorithmic Dictionary of Exponential Families." European Conference on Machine Learning and Principles and Practice of Knowledge Discovery in Databases, 2014. doi:10.1007/978-3-662-44845-8_4Markdown
[Schwander. "Code You Are Happy to Paste: An Algorithmic Dictionary of Exponential Families." European Conference on Machine Learning and Principles and Practice of Knowledge Discovery in Databases, 2014.](https://mlanthology.org/ecmlpkdd/2014/schwander2014ecmlpkdd-code/) doi:10.1007/978-3-662-44845-8_4BibTeX
@inproceedings{schwander2014ecmlpkdd-code,
title = {{Code You Are Happy to Paste: An Algorithmic Dictionary of Exponential Families}},
author = {Schwander, Olivier},
booktitle = {European Conference on Machine Learning and Principles and Practice of Knowledge Discovery in Databases},
year = {2014},
pages = {51-65},
doi = {10.1007/978-3-662-44845-8_4},
url = {https://mlanthology.org/ecmlpkdd/2014/schwander2014ecmlpkdd-code/}
}