Visualization, Publication Tables & FAIR Reproducibility¶
SAES generates publication-grade static figures (Matplotlib in SVG, PDF, or 300-DPI PNG), interactive browser figures (Plotly), camera-ready benchmark tables (LaTeX booktabs, PDF, DOCX, CSV, Markdown, HTML), and self-contained FAIR reproducibility packs.
1. Publication Plot Gallery (10 Registered Plotters)¶
All 10 plotters below are introspected live from saes.PlotterRegistry and share a unified API through saes.plot(...) and saes.export_plot(...) (requires saes[viz]):
| Plotter Key | Name | Description |
|---|---|---|
barplot |
Bar Plot (Mean ± Error) | Compares mean or median algorithm performance with customizable error bars (std dev, std err). |
bayesian-rank |
Bayesian Posterior Rank Plot | Displays the Benavoli et al. (2017) Bayesian Simplex (Ternary ROPE) posterior cloud comparing two algorithms across p(left), p(rope), and p(right) decision regions. |
boxplot |
Box Plot | Shows quartile distributions, median, spread, and outliers across algorithms. |
critical-distance |
Critical Distance (CD) Diagram | Plots Friedman average ranks across algorithms with Nemenyi post-hoc Critical Distance (CD) cliques connecting statistically indistinguishable methods. |
ecdf |
ECDF Plot | Empirical cumulative distribution function showing proportion of runs reaching performance levels. |
effect-size-forest |
Effect-Size Forest Plot (95% CI) | Displays pairwise standardized effect sizes with exact noncentral-t (Hedges' g / Cohen's d) or Brunner-Munzel logit (Vargha-Delaney A12 / Cliff's delta) 95% confidence intervals. |
lineplot |
Line Plot (Run Trails) | Plots metric trajectory across run IDs to evaluate stability and variability across seeds. |
plackett-luce |
Bayesian Plackett-Luce Ranking Plot | Displays posterior winning probabilities P(best) and 95% credible intervals for expected ranks under the Bayesian Plackett-Luce model (Calvo et al. 2018). |
scatter |
Scatter / Jitter Plot | Displays individual run observations as jittered scatter points for raw data inspection. |
violin |
Violin Plot | Combines boxplot and kernel density estimation to reveal distribution shape and multimodality. |
Effect-Size Forest Plot (Exact 95% Confidence Intervals)¶
import saes
ds = saes.load("datasets/swarmintelligence.csv")
svg_bytes, _, _ = saes.export_plot(
ds,
plot_type="effect-size-forest",
metric="HV",
instance="DTLZ2",
export_format="svg",
)
DTLZ2 (HV) with exact noncentral-t 95% confidence intervals and Holm-adjusted significance indicators.
Distribution Boxplot¶
DTLZ2 (HV) generated via saes.export_plot(ds, plot_type="boxplot", metric="HV", instance="DTLZ2", export_format="svg").
2. Publication-Ready Benchmark Tables¶
Generate IEEE / ACM / Springer booktabs LaTeX tables, styled vector PDFs, editable DOCX documents, CSVs, Markdown, or standalone HTML:
table = saes.generate_table(
ds,
metric="HV",
table_type="instance_algorithm", # or "pairwise_matrix", "omnibus_posthoc"
test_type="auto",
posthoc_correction="holm", # supports all 13 adjustments including bergmann_hommel & shaffer
paired=False,
)
latex_bytes = saes.export_table(table, export_format="latex", latex_notation="siunitx")
pdf_bytes = saes.export_table(table, export_format="pdf", pdf_theme="academic_bw")
docx_bytes = saes.export_table(table, export_format="docx")
3. Dolan–Moré Performance Profiles & Meta-Benchmarking¶
profiles = saes.profiles(
ds,
metric="HV",
alpha=0.05,
paired=False,
posthoc_correction="holm",
)
for item in profiles.meta_rankings:
print(f"#{item.rank} {item.algorithm}: Eff={item.efficiency:.1%}, "
f"Rob={item.robustness:.1%}, Copeland={item.copeland_score:+.3f}")
4. FAIR Reproducibility Packs¶
Generate a complete, standalone reproducibility pack containing a pure-Python reproduce.py script, an nbformat v4 Jupyter notebook, and a cryptographic SHA-256 + library version manifest (including Python, saes, numpy, scipy, pandas, and statsmodels):