ncem.estimators.EstimatorCVAE.evaluate_any_posterior_sampling
- EstimatorCVAE.evaluate_any_posterior_sampling(img_keys, node_idx, batch_size: int = 1)[source]
Evaluate model based on resampled dataset for posterior resampling.
node_1 + domain_1 -> encoder -> z_1 + domain_2 -> decoder -> reconstruction_2.
- Parameters
img_keys – Image keys in partition.
node_idx – Dictionary of nodes per image in partition.
batch_size (int) – Batch size.
- Returns
- Return type
Tuple of dictionary of evaluated metrics and latent space arrays (z, z_mean, z_log_var)