SAES — Stochastic Algorithm Evaluation Suite¶
An open-source scientific Python library for rigorous frequentist, exact Bayesian, equivalence (TOST), power/sensitivity (MDES), and Dolan–Moré meta-benchmarking statistical evaluation of stochastic optimization algorithms, metaheuristics, and machine learning models.
Why SAES?¶
Evaluating stochastic algorithms across multiple problem instances introduces well-known statistical traps: silent assumptions of paired runs when stochastic seeds are independent, unblocked pooled ANOVA causing pseudoreplication across instances, invalid Kolmogorov–Smirnov \(p\)-values on estimated parameters, and missing effect-size confidence intervals.
SAES eliminates these pitfalls by unifying validated statistical pipelines, transparent methodological safeguards, publication-grade visualizations, LaTeX/PDF/DOCX reporting, and FAIR reproducibility artifacts under one strictly typed Python API.
-
Assumption-Driven Decision Engine
Runs Shapiro–Wilk, Lilliefors KS, Anderson–Darling, D'Agostino–Pearson \(K^2\), and Brown–Forsythe Levene checks automatically — with explicit
paired=Falsedefault for independent runs. -
Complete Blocked Omnibus & 13 Post-Hoc Rules
Tie-corrected Friedman, Iman–Davenport \(F\), Friedman Aligned-Ranks, Quade, and Greenhouse–Geisser RM-ANOVA, paired with Tukey HSD, Games–Howell, Dunnett, Dunn, Conover–Iman, Shaffer, and Bergmann–Hommel.
-
Exact Bayesian Models, MDES & TOST
Benavoli Bayesian Sign & Signed-Rank Simplex (relative or absolute ROPE), Nadeau–Bengio Bayesian Correlated \(t\)-test, Calvo Bayesian Plackett–Luce ranking, exact MDES sensitivity, and Schuirmann TOST equivalence.
-
10 Publication Figures & LaTeX/FAIR Packs
Generate publication-ready SVG/PDF/PNG plots (CD diagrams, Bayesian simplex, Plackett–Luce, Effect-Size Forest plots) and standalone LaTeX/PDF/DOCX tables + SHA-256 FAIR reproducibility scripts.
-
PEP Plugin System & Built-in Pareto/EAF Analytics
Extend SAES via standard Python
entry_points(saes.plugins), demonstrated by the built-insaes.plugins.paretoplugin (exact 2D EAFs, KS-EAF permutation tests, \(C(A, B)\) coverage, and quality indicator extraction tosaes.Dataset).
Installation¶
30-Second Quickstart¶
import saes
# 1. Load and strictly validate a tidy long-format benchmark CSV
dataset = saes.load("datasets/swarmintelligence.csv")
assert saes.validate(dataset).is_valid
# 2. Explore distributions & dataset-aware test recommendations
exploration = saes.explore(dataset, alpha=0.05)
print("Top recommendation:", exploration.recommendations[0].test_name)
# 3. Blocked multi-instance frequentist & Bayesian ranking
cd = saes.statistics.friedman_nemenyi(dataset, metric="HV", alpha=0.05)
pl = saes.statistics.bayesian_plackett_luce(dataset, metric="HV", num_samples=400)
print(cd.summary())
print(pl.summary())
# 4. Standardized Effect-Size Forest with exact 95% CIs
forest = saes.statistics.effect_size_forest(dataset, metric="HV", instance="DTLZ2")
print(forest.summary())
# 5. Standalone publication LaTeX table + FAIR reproducibility bundle
table = saes.generate_table(dataset, metric="HV", posthoc_correction="holm", paired=False)
latex_bytes = saes.export_table(table, export_format="latex")
repro = saes.reproducibility(dataset, metric="HV", filename="swarmintelligence.csv")
saes.export_plot(dataset, plot_type="critical-distance", metric="HV", export_format="svg") on the bundled 7-optimizer, 12-instance swarmintelligence.csv benchmark.
Comparison with Related Statistical Libraries¶
| Capability | SAES (saes) |
SciPy | Pingouin | Autorank | scmamp (R) |
|---|---|---|---|---|---|
| Tidy multi-instance benchmark validation | — | — | Partial | — | |
Explicit paired=False safeguard & assumption diagnostics |
Manual | Partial | — | — | |
| Friedman, Aligned-Ranks, Quade & RM-ANOVA (GG \(\varepsilon\)) | Friedman only | RM-ANOVA | Friedman | All 3 non-param | |
| 13 Multiplicity adjustments incl. Shaffer & Bergmann–Hommel | — | Partial | Nemenyi | Yes | |
| Exact effect-size CIs (\(d, g, \eta^2, A_{12}, \delta\)) + Forest plot | — | Partial | — | — | |
| Bayesian Sign, Signed-Rank, Correlated \(t\) & Plackett–Luce | — | — | Signed-Rank | Plackett–Luce | |
| Power planning, MDES sensitivity & TOST equivalence | — | Power only | — | — | |
| Dolan–Moré performance profiles & Copeland meta-ranking | — | — | — | — | |
| LaTeX / PDF / DOCX tables & SHA-256 FAIR packs | — | — | LaTeX only | LaTeX only | |
| Optional typed FastAPI REST API + Interactive Web/Desktop UI | — | — | — | — |
How to Cite SAES¶
If you use SAES (saes) in a scientific paper or empirical benchmark, please cite the software using the bundled CITATION.cff metadata or the following BibTeX entry: