Compute the Importance Sampling Estimator which the vaeac model uses to evaluate its performance on the validation data.
vaeac_get_val_iwae(
val_dataloader,
mask_generator,
batch_size,
vaeac_model,
val_iwae_n_samples
)
The average iwae over all instances in the validation dataset.
A torch dataloader which loads the validation data.
A mask generator object that generates the masks.
Integer. The number of samples to include in each batch.
The vaeac model.
Number of samples to generate for computing the IWAE for each validation sample.
Lars Henry Berge Olsen
Compute mean IWAE log likelihood estimation of the validation set. IWAE is an abbreviation for Importance Sampling Estimator $$\log p_{\theta, \psi}(x|y) \approx \log {\frac{1}{S}\sum_{i=1}^S p_\theta(x|z_i, y) p_\psi(z_i|y) \big/ q_\phi(z_i|x,y),}$$ where \(z_i \sim q_\phi(z|x,y)\). For more details, see Olsen et al. (2022).