Evaluation, diagnostics, benchmarks, and additional tests · Evaluation, diagnostics, benchmarks, and additional hypothesis tests · EVA023 · Metric
Inception Score
Rewards confident classifier predictions for individual generated images and diversity of predicted classes across images.
In CodeSplash
Running this needs images, audio, video, graphs or another data type CodeSplash doesn't load yet.
- Availability
- Needs a data type CodeSplash doesn't load yet
- Code example
- Complete calculation
- Who ran it
- CodeSplash's run and the reference's record
- CodeSplash's run
- 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
Rewards confident classifier predictions for individual generated images and diversity of predicted classes across images.
Question / hypotheses
Are generated samples classifiable and class-diverse under a fixed classifier? This score does not directly compare them with real data.
Architecture / computational structure
A fixed pretrained feature/evaluation model followed by the named aggregation rule. The feature extractor is part of the metric specification.
Assumptions
The classifier’s label space must be meaningful for the generated domain. All runs must use the same network, preprocessing, and split convention.
Formula / computational definition
Parameters and notation
The classifier probabilities are fixed evaluation features. Split count, sample count, and classifier checkpoint are hyperparameters; learned generator parameters are external to the metric.
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
Report the exact implementation and use only as one diagnostic alongside real-distribution comparisons and human review.
Example application
Track whether a class-conditional image generator collapses to a narrow subset of classifier labels.
Interpretation / pitfalls
Watch out
Memorized or adversarially classifiable images can score well. It is inappropriate for domains far from the classifier’s training labels. A score has no universal quality interpretation.
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
P=np.array([[.9,.1],[.1,.9],[.8,.2],[.2,.8]]); marginal=P.mean(axis=0)
print(np.exp(np.mean(np.sum(P*np.log(P/marginal),axis=1))))
Complete calculation — Mathematical calculation on synthetic inputs; not a complete benchmark pipeline.
P <- rbind(c(.9,.1),c(.1,.9),c(.8,.2),c(.2,.8)); q <- colMeans(P)
print(exp(mean(rowSums(P*log(sweep(P,2,q,"/"))))))
Sources
- Source 1arxiv.org
From the CodeSplash reference, entry EVA023.