When chatting with Dan the other day about design matrices, learning and inference, I thought I saw a potentially interesting analogy to PL.

Let be the number of samples we collect and be the number of features in our system. Let’s take a simple problem that can be solved using linear regression. Then the model we use is

and we try to find some vector that minimizes the cost of the difference between the true and an estimate . Applied statisticians and machine learning practitioners may spend considerable time selecting appropriate features. Ideally, given a large pool of possible features, we can learn which are important and select those to make predictions for test inputs.

What struck me was that when we start out trying to address a problem, our features are unknown and our features to classify are potentially infinte. During learning, we fix . During prediction (for a single instance of prediction), we fix . This is like saying that learning is parameterized by its features, while inference is parameterized by its samples. We could then treat learning and inference as parameterized modules. I’m not sure I’ve really seen the probabilistic programming languages community treat problem this way.