Estimate the model's log-likelihood on data held out of sample. Rather than storing a huge number of sample predictions in memory, we can do this in #' batches of a specified size and just work with the scalar likelihood.
1 | importanceSamplingEvaluation(object, newdata, y, loss, batches, batch.size)
|
object |
a |
newdata |
a matrix of predictor variables. |
y |
a matrix of response variables |
loss |
a |
batches |
the number of importance sampling batches to perform |
batch.size |
the number of importance samples per batch |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.