concept object in category probabilistic programming

appears as: n object, object, objects, objects, An object, object
Practical Probabilistic Programming

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

To start, let’s define the dependency model for the isSpam element and all of the word elements. When defining the dependencies of a probabilistic model, a common rule of thumb is that the class of an object determines the properties of the object, meaning that the properties depend on the class in the dependency model. In our example, whether an email is spam determines the presence or absence of all the words.

You’ll start out by looking at using ordinary Scala collections. Then you’ll look at Figaro collections, what you can do with them, and how and when to use Scala collections and/or Figaro collections in a program. In the last two sections of the chapter, you’ll look at two powerful uses of Figaro collections: using variable-size arrays to model situations with an unknown number of objects, and defining probabilistic models over a continuous region of time or space.

Both tasks require reasoning about an unknown number of objects. When you’re inferring the vehicles currently on the highway, you don’t know the number of vehicles, and your video images don’t give you a perfect indication of that number. Sometimes, multiple vehicles might be merged in the image, and some vehicles might not be detected at all. And when you’re predicting future traffic jams, you certainly don’t know exactly how many vehicles there will be.

A situation in which you don’t know the number of objects is known as an open-universe situation (see the accompanying sidebar for an explanation of the name). An open-universe situation is characterized by two properties:

  • You don’t know the exact number of objects, such as the number of vehicles. This is called number uncertainty.
  • You’re uncertain about the identity of the objects. For example, you might be uncertain whether two vehicle images at different sites belong to the same vehicle. This is called identity uncertainty.