I would like to calculate the held-out likelihood value or log-likelihood value of a fitted model against a hold out dataset. Below is a simplified example: