Chapter 6. Using Scala and Figaro collections to build up models

This chapter covers

  • How to use collections to organize probabilistic models
  • The difference between Scala collections and Figaro collections, the roles of each, and how to use them together
  • Common modeling patterns that can be expressed using collections, including hierarchical Bayesian modeling, modeling situations with an unknown number of objects, and models defined over a continuous region

In the preceding two chapters, you’ve gained a solid foundation in probabilistic modeling. This chapter focuses on the programming aspect of probabilistic programming and shows you ways that the features of a programming language can help you build probabilistic models. In particular, ...

Get Practical Probabilistic Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.