1. |
Obtain posterior samples
; |
2. |
For each holdout set
k = 1, …, K: |
|
(a) Compute the (log)
weights, using the (Gaussian)
log-likelihood in (1), where denotes equality up to a
constant; |
|
(b) Estimate
and ; |
|
(c) Set
|
|
(d) Compute
by solving (22) for each
λ; |
|
(e) Sample
from using the SIR algorithm for
; |
3. |
Compute using and using and in (17). |