Compute the Importance Sampling Estimator (Validation Error)
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 )
val_dataloader
: A torch dataloader which loads the validation data.mask_generator
: A mask generator object that generates the masks.batch_size
: Integer. The number of samples to include in each batch.vaeac_model
: The vaeac model.val_iwae_n_samples
: Number of samples to generate for computing the IWAE for each validation sample.The average iwae over all instances in the validation dataset.
Compute mean IWAE log likelihood estimation of the validation set. IWAE is an abbreviation for Importance Sampling Estimator
where . For more details, see Olsen et al. (2022).
Lars Henry Berge Olsen
Useful links