concept name in category probabilistic programming

appears as: name, The name, names, names, name
Practical Probabilistic Programming

This is an excerpt from Manning's book Practical Probabilistic Programming.

Finally, the learning component has a main method that’s called when learning is invoked from the command line. This method takes three arguments: the name of the directory containing all the emails in the training set, the name of the file containing labels for some of the training samples, and the name of the file in which to store learning results. First, it reads the information from its input files and extracts the dictionary. Next, it creates models for each of the emails. Finally, it runs the learning algorithm and exports the results. These results can then be used by the reasoning component as many times as it wants.

This section presents various kinds of dynamic models. You’ll start with the most basic kind of model, which is a Markov chain, and then consider a widely used extension, hidden Markov models. Then you’ll look at dynamic Bayesian networks, which, as the name implies, are an extension of Bayesian networks to dynamic models. All of these are standard frameworks that existed before probabilistic programming. They all assume that the structure of the model is the same at every time point. Probabilistic programming lets you go beyond these frameworks, however, and describe models whose structures vary over time, as you’ll see in section 8.2.4.

Any element in a time step that directly influences an element at the next time step must be given a name. This name enables the program to refer to the element in the previous universe. In the restaurant example, the number of guests waiting for a seat at the end of a time step influences the state at the next time step. You need to give the element representing this number the name waiting.

Any element that you want to query or observe also needs to be given a name. That way, you can refer to the element consistently at every time step. With that introduction, here’s a skeleton of the way to represent the ongoing restaurant model.

Listing 8.7. Implementation of the nextUniverse function

As you can see from this code, not much has changed from the previous time-limited version of this model. In particular, the transition function, which contains the essential logic, is almost unchanged. The most significant new aspect of the code is that you use names to identify the elements representing the state variables in each universe. You get these elements by name from the previous universe and give them a name when you put them in the new universe.