Skip to main content

SAES Logo

SAES — Stochastic Algorithm Evaluation Suite (saes)

CI PyPI version Python versions License: GPLv3 Documentation

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=False default 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), LaTeX booktabs/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)? Version 2.0.0 consolidates the new architecture under the canonical saes PyPI package (import saes). If you maintain legacy v1 scripts, pin pip 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, and TestRegistry.
  • 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) powering saes-ui and saes-ai.
  • docs/ & mkdocs.yml: Material for MkDocs documentation site auto-published to GitHub Pages on every release PR merge to main.

Metadata

Release files for saes 2.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for saes 2.0.0
File Size Uploaded Provenance Actions
saes-2.0.0.tar.gz 646.6 kB With provenance Details for saes-2.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for saes 2.0.0
File Interpreter ABI Platform Actions
saes-2.0.0-py3-none-any.whl Python 3 none any Details for saes-2.0.0-py3-none-any.whl

Total release size: 819.6 kB

Release files / saes-2.0.0.tar.gz

Download URL saes-2.0.0.tar.gz
Size 646.6 kB
Tags Source
SHA-256 checksum
How to use checksums
d74df73e2baad7413563646022ecfbec518ee9848470f06979467566f46dfda4
BLAKE2b-256 checksum
How to use checksums
45de29c5e12d178af35a95f1a4d09b2e53a95fa19b4d4146c980f66609be4b65
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 24, 2026.

Transparency log

Release files / saes-2.0.0-py3-none-any.whl

Download URL saes-2.0.0-py3-none-any.whl
Size 173.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
abb318c15f0f8229568d7c819a065a4942a8bc8d720ca93c8ca125acb516e4ce
BLAKE2b-256 checksum
How to use checksums
e2a13eae5e12a2a3d15c66d7feb8e44b8f4583abba048222b3d45c68c50433d7
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 24, 2026.

Transparency log

Security for saes 2.0.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.

Select from 2 files

Attestation for saes-2.0.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 24, 2026.

Transparency log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page