We need to find the appropriate values for complexity parameters within a given model, we may wish to find the best model for your particular application in a range of different types of model.
To solve the problem of over-fitting from the maximum likelihood approach, if data is plentiful, then one approach is to use some of the available data to train a range of models, or a given model with a range of values for its complexity parameters, and then to compare them on independent data (validation set), and select the one having the best predictive performance.
It may be necessary to keep aside a third test set on which the performance of the selected model is finally evaluated.
The supply of data for training and testing will be limited.
One solution to the problem from the small size validation set is to use cross-validation. This allows a proportion $(S-1)/S$ of the available data to be used for training while making use of all of the data to assess performance.
By computational complexity problem, we need to find a measure of performance which depends only on the training data and which dose not suffer from bias due to over-fitting.
'Information criteria' is a solution of this problem.
Akaike information criterion (AIC)
$$ \log p(\mathcal D|\bold w_{\text{ML}})-M $$
Bayseian information criterion (BIC)