To construct a loss function for training data using the maximum likelihood approach, we:
- Choose a suitable probability distribution defined over the domain of the set of predictions with parameters .
- Set the model to predict one or more of these parameters, so that and .
- To train the model, find the network parameters that minimize the negative log-likelihood loss function over the training dataset pairs :
- To perform inference for a new test example , return either the full distribution or the value where this distribution is maximized.
What does a model predict in the maximum likelihood framework?
One or more parameters of the chosen probability function, such that .
How do we choose a probability distribution for maximum likelihood training?
Choose a distribution whose support (possible set of values) matches the domain of the target variable .
Examples of this:
Depending on the type of prediction, we can choose an appropriate distribution and apply the recipe.
