SAES — Stochastic Algorithm Evaluation Suite (saes)
Open-source scientific Python library for rigorous frequentist, exact Bayesian, equivalence (TOST), power/sensitivity (MDES), and Dolan–Moré meta-benchmarking evaluation of stochastic algorithms.
📚 Documentation (GitHub Pages) · 🚀 Quickstart · 📐 Statistical Methodology · 🐍 Python API
✨ Key Capabilities
- Assumption-Driven Diagnostics & Safeguards: Shapiro–Wilk, Lilliefors KS, Anderson–Darling, D'Agostino–Pearson $K^2$, and Brown–Forsythe Levene checks; explicit
paired=Falsedefault for independent stochastic runs (preventing silent pairing inflation); automatic blocking guards against multi-instance pseudoreplication. - Two-Sample, Multi-Group & Blocked Omnibus Tests: Student/Welch/Paired $t$-tests, Fisher & Welch ANOVA, Mann–Whitney $U$, Wilcoxon Signed-Rank, Brunner–Munzel, Kruskal–Wallis, tie-corrected Friedman + Iman–Davenport + Nemenyi CD, Friedman Aligned-Ranks, Quade, and Repeated-Measures ANOVA (Greenhouse–Geisser $\varepsilon$).
- Post-Hoc Suite & 13 Multiplicity Adjustments: Tukey HSD, Games–Howell, Dunnett, Dunn, and Conover–Iman alongside
holm,bonferroni,hochberg,hommel,finner,holland,rom,li,fdr_bh,fdr_by, Shaffer, and exact Bergmann–Hommel. - Exact Effect-Size Confidence Intervals & Forest Analysis: Noncentral-$t$ CIs for Cohen's $d$ / Hedges' $g$, noncentral-$F$ CIs for $\eta^2$, Brunner–Munzel logit CIs for Vargha–Delaney $A_{12}$ and Cliff's $\delta$, bootstrap CIs for $\varepsilon^2$, and
saes.statistics.effect_size_forest(...). - Exact Bayesian Inference, MDES & TOST: Benavoli et al. (2017) Bayesian Sign & Signed-Rank Simplex (relative or exact absolute ROPE + configurable Dirichlet prior), Bayesian Correlated $t$-test (Nadeau & Bengio 2003), Bayesian Plackett–Luce multi-algorithm ranking (Calvo et al. 2018), a priori power & MDES sensitivity audits, and Schuirmann TOST equivalence tests.
- 10 Publication Plotters, Camera-Ready Tables & FAIR Packs: Static (SVG/PDF/300-DPI PNG) & interactive Plotly figures (
boxplot,violin,ecdf,barplot,lineplot,scatter,critical-distance,bayesian-rank,plackett-luce,effect-size-forest), LaTeXbooktabs/PDF/DOCX/CSV/Markdown/HTML tables, Dolan–Moré performance profiles, and SHA-256 FAIR reproducibility packs.
📦 Installation
# Core statistical library (NumPy, Pandas, Pydantic V2, SciPy, Statsmodels)
pip install saes
# With publication visualization support (Matplotlib, Seaborn, Plotly)
pip install "saes[viz]"
# With optional FastAPI REST API server (:8060)
pip install "saes[api]"
# Full installation (viz + api)
pip install "saes[all]"
Upgrading from SAES v1 (
1.x)? Version2.0.0consolidates the new architecture under the canonicalsaesPyPI package (import saes). If you maintain legacy v1 scripts, pinpip install "SAES<2".
🚀 Quick Usage
Python Programmatic API
import saes
# 1. Load and strictly validate a tidy 6-column benchmark CSV
dataset = saes.load("datasets/swarmintelligence.csv")
assert saes.validate(dataset).is_valid
# 2. Explore distributions, normality, and dataset-aware test recommendations
exploration = saes.explore(dataset, alpha=0.05)
print("Top recommendation:", exploration.recommendations[0].test_name)
# 3. Automated cell-level analysis (independent runs by default; set paired=True for matched folds/CRN)
report = saes.analyze(dataset, alpha=0.05, generate_plots=False, paired=False)
print(report.to_dataframe().head())
# 4. Multi-instance blocked 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())
# 5. Standardized effect-size forest (95% CIs) & standalone LaTeX table
forest = saes.statistics.effect_size_forest(dataset, metric="HV", instance="DTLZ2")
table = saes.generate_table(dataset, metric="HV", posthoc_correction="holm", paired=False)
latex_bytes = saes.export_table(table, export_format="latex")
Launch Optional REST API & Local Documentation
# Launch FastAPI REST server on http://127.0.0.1:8060 (Swagger at /docs)
make start-api
# Preview full Material for MkDocs documentation locally at http://127.0.0.1:8000
make start-docs # live reload
make docs-preview # exact strict GitHub Pages static build
🛠️ Repository Architecture
saes.domain: Immutable Pydantic V2 models (Dataset,StatisticalResult,PostHocResult,TOSTResult,BlockedOmnibusResult,BayesianPlackettLuceResult,BayesianCorrelatedTResult,EffectSizeForestResult) and typed exception hierarchy.saes.io&saes.validation: Tidy CSV parser and strict schema/value validator.saes.stats: Parametric, non-parametric, blocked omnibus, post-hoc (posthoc.py), effect-size CI (effect_sizes.py), exact Bayesian (bayesian.py), sensitivity/TOST (power.py), Dolan–Moré profiles (profiles.py), explorer (explorer.py), decision engine, andTestRegistry.saes.reports: Modular table renderers (TableRendererRegistry: LaTeX, PDF, DOCX, CSV, Markdown, HTML) and FAIR reproducibility pack generator.saes.visualization: 10 registered static/interactive plotters (PlotterRegistry).saes.server: Optional typed FastAPI REST backend (:8060) poweringsaes-uiandsaes-ai.docs/&mkdocs.yml: Material for MkDocs documentation site auto-published to GitHub Pages on every release PR merge tomain.
Metadata
Release files for saes 2.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| saes-2.1.0.tar.gz | 703.0 kB | With provenance | Details for saes-2.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| saes-2.1.0-py3-none-any.whl | Python 3 | none | any | Details for saes-2.1.0-py3-none-any.whl |
Total release size: 922.8 kB
Release files / saes-2.1.0.tar.gz
| Download URL | saes-2.1.0.tar.gz |
|---|---|
| Size | 703.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
18d4d567e4f919cf8c46e35cc36b216c97c1683efbe5845617b087a846b60f76
|
|
BLAKE2b-256 checksum How to use checksums |
4fdfa516ea5602e03a1ac2d64eb281c3bd1eadd7ae3329d0b27461315ff6600a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.
Transparency logRelease files / saes-2.1.0-py3-none-any.whl
| Download URL | saes-2.1.0-py3-none-any.whl |
|---|---|
| Size | 219.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b905300672cffecb5f844a4c0b971d954e4cbac3075a1f73437c6f239b20a664
|
|
BLAKE2b-256 checksum How to use checksums |
47625ed0793fe593bfe6b23d5b37591670001701a12a7cc3755aad53699b416e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.
Transparency logSecurity for saes 2.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for saes-2.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.