Evaluation, diagnostics, benchmarks, and additional tests · Evaluation, diagnostics, benchmarks, and additional hypothesis tests · EVA015 · Diagnostic
Held-out reconstruction and predictive log score
Checks whether a representation reconstructs withheld information and whether a probabilistic model predicts genuinely unseen observations.
In CodeSplash
A CodeSplash method covers part of this entry; some options or variants aren't built yet.
- Autoencoder (neural map and reconstruction anomalies) Verified in Python and R
- Gaussian mixture model Verified in Python and R
- Principal component analysis Verified in Python and R
- Variational autoencoder (latent map, anomalies and generated rows) Experimental
- Multiple imputation by chained equations (MICE) with pooled analysis Verified in Python and R
Do it in CodeSplash Run it on your own data, in Python or R.
- Availability
- Partly runs in CodeSplash
- Code example
- Complete calculation
- Who ran it
- CodeSplash's run and the reference's record
- CodeSplash's run
- Verified in Python and R through discover.autoencoder, discover.gmm, discover.pca, discover.vae, missing.mice. The reference's example ran in Python and R here, and they agree.
- The reference's record
- Python: Ran in the reference's review. The report doesn't record which version of the code ran. R: Reviewed but not run: R wasn't available to the reference's authors.
Purpose
Checks whether a representation reconstructs withheld information and whether a probabilistic model predicts genuinely unseen observations.
Question / hypotheses
Does the learned structure generalize beyond optimization data? Reconstruction error and log likelihood answer different questions.
Architecture / computational structure
A fixed scoring/calibration pipeline applied to model outputs or supplied observations; the formula and usage sections identify its operations.
Assumptions
Preprocessing and model selection must be fitted without test leakage. The reconstruction mask and likelihood observation model must reflect the intended use. Units and probability densities must be comparable.
Formula / computational definition
Parameters and notation
Omega is a withheld set of entries or observations; theta is fitted on training data. Latent dimension, noise scale, mask rate, and model complexity are chosen on validation data.
Fitting, fine-tuning, and adaptation
There is no model fine-tuning step for this evaluation procedure. Freeze the evaluated systems and evaluator before the final test. Select evaluation settings on development data; if a learned evaluator or calibration model is adapted, use separate fitting data, version it, and reassess its validity.
How to use and calibrate
Keep an untouched test set; for imputation, hide known values and score only those. For density models use tractable likelihood or clearly named approximations such as an ELBO or importance estimate.
Example application
Choose an autoencoder bottleneck by masked reconstruction and assess a flow using held-out log likelihood.
Interpretation / pitfalls
Watch out
An identity map can reconstruct well without useful latent structure. A lower VAE bound is not exact likelihood. High density need not imply in-distribution semantic content.
Python and R code examples
Scope: Mathematical calculation on synthetic inputs; not a complete benchmark pipeline.
Validation: Python — Executed successfully on synthetic inputs. R — reviewed but not executed in this environment. Python dependencies are explicit imports; R uses base R unless a package/bridge is explicitly named.
Python and R
The reference's own programs, shown as written. A component demo shows one central piece of the method; it doesn't train a full model.
Complete calculation — Mathematical calculation on synthetic inputs; not a complete benchmark pipeline. · needs numpy
import numpy as np
x=np.array([1.,2.,3.]); reconstructed=np.array([1.1,1.8,3.2]); logp=np.array([-1.2,-.8,-1.5])
print("MSE",np.mean((x-reconstructed)**2),"NLL",-logp.mean())
Complete calculation — Mathematical calculation on synthetic inputs; not a complete benchmark pipeline.
x <- c(1,2,3); reconstructed <- c(1.1,1.8,3.2); logp <- c(-1.2,-.8,-1.5)
print(c(MSE=mean((x-reconstructed)^2),NLL=-mean(logp)))
Sources
- Source 1scikit-learn.org
- Source 2arxiv.org
From the CodeSplash reference, entry EVA015.