SAES 2.1.0__tar.gz → 2.2.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {saes-2.1.0 → saes-2.2.0}/.github/workflows/release.yml +2 -0
- {saes-2.1.0 → saes-2.2.0}/CHANGELOG.md +236 -0
- {saes-2.1.0 → saes-2.2.0}/CITATION.cff +9 -2
- {saes-2.1.0 → saes-2.2.0}/PKG-INFO +14 -14
- {saes-2.1.0 → saes-2.2.0}/README.md +2 -2
- {saes-2.1.0 → saes-2.2.0}/docs/api-reference.md +3 -0
- {saes-2.1.0 → saes-2.2.0}/docs/extensibility.md +1 -1
- {saes-2.1.0 → saes-2.2.0}/docs/getting-started/quickstart.md +13 -6
- {saes-2.1.0 → saes-2.2.0}/docs/index.md +2 -2
- {saes-2.1.0 → saes-2.2.0}/docs/rest-api.md +4 -4
- {saes-2.1.0 → saes-2.2.0}/docs/tutorials/metaheuristics-benchmark.md +3 -3
- {saes-2.1.0 → saes-2.2.0}/docs/tutorials/ml-crossvalidation.md +6 -3
- {saes-2.1.0 → saes-2.2.0}/docs/user-guide/bayesian-and-equivalence.md +1 -1
- {saes-2.1.0 → saes-2.2.0}/docs/user-guide/blocked-and-posthoc.md +1 -1
- {saes-2.1.0 → saes-2.2.0}/docs/user-guide/visualization-and-tables.md +1 -1
- saes-2.2.0/examples/README.md +22 -0
- saes-2.2.0/examples/case_study_continuous.py +169 -0
- saes-2.2.0/examples/case_study_metaheuristics.py +168 -0
- saes-2.2.0/examples/case_study_ml.py +161 -0
- saes-2.2.0/examples/saes_walkthrough.ipynb +827 -0
- saes-2.2.0/examples/smoke_test.sh +75 -0
- {saes-2.1.0 → saes-2.2.0}/pyproject.toml +10 -10
- saes-2.2.0/scripts/benchmarks/README.md +29 -0
- saes-2.2.0/scripts/benchmarks/generate_continuous_benchmark.py +364 -0
- saes-2.2.0/scripts/benchmarks/generate_ml_benchmark.py +256 -0
- {saes-2.1.0 → saes-2.2.0}/scripts/release_stamp.js +10 -0
- {saes-2.1.0 → saes-2.2.0}/src/saes/__init__.py +12 -0
- {saes-2.1.0 → saes-2.2.0}/src/saes/api.py +3 -0
- saes-2.2.0/src/saes/data/__init__.py +1 -0
- saes-2.2.0/src/saes/data/continuous_blackbox_benchmark.csv +5401 -0
- saes-2.2.0/src/saes/data/continuous_optimization_fitness.csv +121 -0
- saes-2.2.0/src/saes/data/continuous_optimization_low_scale.csv +91 -0
- saes-2.2.0/src/saes/data/continuous_optimization_scores.csv +91 -0
- saes-2.2.0/src/saes/data/ml_classification_cv.csv +481 -0
- saes-2.2.0/src/saes/data/ml_multidataset_cv.csv +8101 -0
- saes-2.2.0/src/saes/data/moo_pareto_indicators.csv +961 -0
- saes-2.2.0/src/saes/data/zcat_moo_benchmark.csv +12001 -0
- saes-2.2.0/src/saes/datasets.py +248 -0
- {saes-2.1.0 → saes-2.2.0}/src/saes/domain/models.py +62 -0
- {saes-2.1.0 → saes-2.2.0}/src/saes/server/routes/datasets.py +29 -0
- {saes-2.1.0 → saes-2.2.0}/src/saes/server/schemas.py +30 -0
- saes-2.2.0/src/saes/validation/inspector.py +341 -0
- {saes-2.1.0 → saes-2.2.0}/src/saes/visualization/plackett_luce_plot.py +4 -4
- saes-2.2.0/tests/fixtures/data.csv +14701 -0
- saes-2.2.0/tests/integration/test_examples.py +82 -0
- saes-2.2.0/tests/unit/test_datasets_and_inspector.py +235 -0
- {saes-2.1.0 → saes-2.2.0}/uv.lock +176 -122
- saes-2.2.0/version.txt +1 -0
- saes-2.1.0/version.txt +0 -1
- {saes-2.1.0 → saes-2.2.0}/.github/CODEOWNERS +0 -0
- {saes-2.1.0 → saes-2.2.0}/.github/workflows/docs.yml +0 -0
- {saes-2.1.0 → saes-2.2.0}/.github/workflows/tests.yml +0 -0
- {saes-2.1.0 → saes-2.2.0}/.gitignore +0 -0
- {saes-2.1.0 → saes-2.2.0}/LICENSE +0 -0
- {saes-2.1.0 → saes-2.2.0}/Makefile +0 -0
- {saes-2.1.0 → saes-2.2.0}/assets/saes-logo.svg +0 -0
- {saes-2.1.0 → saes-2.2.0}/docs/assets/figures/bayesian_simplex_hv.svg +0 -0
- {saes-2.1.0 → saes-2.2.0}/docs/assets/figures/boxplot_dtlz2_hv.svg +0 -0
- {saes-2.1.0 → saes-2.2.0}/docs/assets/figures/critical_distance_hv.svg +0 -0
- {saes-2.1.0 → saes-2.2.0}/docs/assets/figures/effect_size_forest_dtlz2.svg +0 -0
- {saes-2.1.0 → saes-2.2.0}/docs/assets/figures/ml_cd_accuracy.svg +0 -0
- {saes-2.1.0 → saes-2.2.0}/docs/assets/figures/plackett_luce_hv.svg +0 -0
- {saes-2.1.0 → saes-2.2.0}/docs/assets/logo.svg +0 -0
- {saes-2.1.0 → saes-2.2.0}/docs/changelog.md +0 -0
- {saes-2.1.0 → saes-2.2.0}/docs/getting-started/installation.md +0 -0
- {saes-2.1.0 → saes-2.2.0}/docs/hooks.py +0 -0
- {saes-2.1.0 → saes-2.2.0}/docs/javascripts/mathjax.js +0 -0
- {saes-2.1.0 → saes-2.2.0}/docs/methodology.md +0 -0
- {saes-2.1.0 → saes-2.2.0}/docs/stylesheets/extra.css +0 -0
- {saes-2.1.0 → saes-2.2.0}/docs/user-guide/decision-engine.md +0 -0
- {saes-2.1.0 → saes-2.2.0}/docs/user-guide/pareto-plugin.md +0 -0
- {saes-2.1.0 → saes-2.2.0}/mkdocs.yml +0 -0
- {saes-2.1.0 → saes-2.2.0}/src/saes/_version.py +0 -0
- {saes-2.1.0 → saes-2.2.0}/src/saes/app/__init__.py +0 -0
- {saes-2.1.0 → saes-2.2.0}/src/saes/app/pipeline.py +0 -0
- /saes-2.1.0/tests/fixtures/data.csv → /saes-2.2.0/src/saes/data/metaheuristics_benchmark.csv +0 -0
- {saes-2.1.0 → saes-2.2.0}/src/saes/domain/__init__.py +0 -0
- {saes-2.1.0 → saes-2.2.0}/src/saes/domain/exceptions.py +0 -0
- {saes-2.1.0 → saes-2.2.0}/src/saes/io/__init__.py +0 -0
- {saes-2.1.0 → saes-2.2.0}/src/saes/io/base.py +0 -0
- {saes-2.1.0 → saes-2.2.0}/src/saes/io/csv_reader.py +0 -0
- {saes-2.1.0 → saes-2.2.0}/src/saes/plugins/__init__.py +0 -0
- {saes-2.1.0 → saes-2.2.0}/src/saes/plugins/pareto/__init__.py +0 -0
- {saes-2.1.0 → saes-2.2.0}/src/saes/plugins/pareto/dominance.py +0 -0
- {saes-2.1.0 → saes-2.2.0}/src/saes/plugins/pareto/eaf.py +0 -0
- {saes-2.1.0 → saes-2.2.0}/src/saes/plugins/pareto/indicators.py +0 -0
- {saes-2.1.0 → saes-2.2.0}/src/saes/plugins/pareto/io.py +0 -0
- {saes-2.1.0 → saes-2.2.0}/src/saes/plugins/pareto/models.py +0 -0
- {saes-2.1.0 → saes-2.2.0}/src/saes/plugins/pareto/plots.py +0 -0
- {saes-2.1.0 → saes-2.2.0}/src/saes/plugins/pareto/plugin.py +0 -0
- {saes-2.1.0 → saes-2.2.0}/src/saes/plugins/pareto/router.py +0 -0
- {saes-2.1.0 → saes-2.2.0}/src/saes/plugins/registry.py +0 -0
- {saes-2.1.0 → saes-2.2.0}/src/saes/py.typed +0 -0
- {saes-2.1.0 → saes-2.2.0}/src/saes/reports/__init__.py +0 -0
- {saes-2.1.0 → saes-2.2.0}/src/saes/reports/renderers.py +0 -0
- {saes-2.1.0 → saes-2.2.0}/src/saes/reports/reproducibility.py +0 -0
- {saes-2.1.0 → saes-2.2.0}/src/saes/server/__init__.py +0 -0
- {saes-2.1.0 → saes-2.2.0}/src/saes/server/app.py +0 -0
- {saes-2.1.0 → saes-2.2.0}/src/saes/server/helpers.py +0 -0
- {saes-2.1.0 → saes-2.2.0}/src/saes/server/routes/__init__.py +0 -0
- {saes-2.1.0 → saes-2.2.0}/src/saes/server/routes/analysis.py +0 -0
- {saes-2.1.0 → saes-2.2.0}/src/saes/server/routes/health.py +0 -0
- {saes-2.1.0 → saes-2.2.0}/src/saes/server/routes/plugins.py +0 -0
- {saes-2.1.0 → saes-2.2.0}/src/saes/server/storage.py +0 -0
- {saes-2.1.0 → saes-2.2.0}/src/saes/stats/__init__.py +0 -0
- {saes-2.1.0 → saes-2.2.0}/src/saes/stats/anova.py +0 -0
- {saes-2.1.0 → saes-2.2.0}/src/saes/stats/assumptions.py +0 -0
- {saes-2.1.0 → saes-2.2.0}/src/saes/stats/base.py +0 -0
- {saes-2.1.0 → saes-2.2.0}/src/saes/stats/bayesian.py +0 -0
- {saes-2.1.0 → saes-2.2.0}/src/saes/stats/decision.py +0 -0
- {saes-2.1.0 → saes-2.2.0}/src/saes/stats/effect_sizes.py +0 -0
- {saes-2.1.0 → saes-2.2.0}/src/saes/stats/explorer.py +0 -0
- {saes-2.1.0 → saes-2.2.0}/src/saes/stats/nonparametric.py +0 -0
- {saes-2.1.0 → saes-2.2.0}/src/saes/stats/posthoc.py +0 -0
- {saes-2.1.0 → saes-2.2.0}/src/saes/stats/power.py +0 -0
- {saes-2.1.0 → saes-2.2.0}/src/saes/stats/profiles.py +0 -0
- {saes-2.1.0 → saes-2.2.0}/src/saes/stats/ranking.py +0 -0
- {saes-2.1.0 → saes-2.2.0}/src/saes/stats/registry.py +0 -0
- {saes-2.1.0 → saes-2.2.0}/src/saes/stats/tables.py +0 -0
- {saes-2.1.0 → saes-2.2.0}/src/saes/stats/ttest.py +0 -0
- {saes-2.1.0 → saes-2.2.0}/src/saes/validation/__init__.py +0 -0
- {saes-2.1.0 → saes-2.2.0}/src/saes/validation/validator.py +0 -0
- {saes-2.1.0 → saes-2.2.0}/src/saes/visualization/__init__.py +0 -0
- {saes-2.1.0 → saes-2.2.0}/src/saes/visualization/barplot.py +0 -0
- {saes-2.1.0 → saes-2.2.0}/src/saes/visualization/base.py +0 -0
- {saes-2.1.0 → saes-2.2.0}/src/saes/visualization/bayesianplot.py +0 -0
- {saes-2.1.0 → saes-2.2.0}/src/saes/visualization/boxplot.py +0 -0
- {saes-2.1.0 → saes-2.2.0}/src/saes/visualization/cdplot.py +0 -0
- {saes-2.1.0 → saes-2.2.0}/src/saes/visualization/ecdfplot.py +0 -0
- {saes-2.1.0 → saes-2.2.0}/src/saes/visualization/forest_plot.py +0 -0
- {saes-2.1.0 → saes-2.2.0}/src/saes/visualization/lineplot.py +0 -0
- {saes-2.1.0 → saes-2.2.0}/src/saes/visualization/registry.py +0 -0
- {saes-2.1.0 → saes-2.2.0}/src/saes/visualization/scatterplot.py +0 -0
- {saes-2.1.0 → saes-2.2.0}/src/saes/visualization/utils.py +0 -0
- {saes-2.1.0 → saes-2.2.0}/src/saes/visualization/violinplot.py +0 -0
- {saes-2.1.0 → saes-2.2.0}/tests/__init__.py +0 -0
- {saes-2.1.0 → saes-2.2.0}/tests/fixtures/ml_data.csv +0 -0
- {saes-2.1.0 → saes-2.2.0}/tests/integration/test_pipeline.py +0 -0
- {saes-2.1.0 → saes-2.2.0}/tests/integration/test_real_dataset.py +0 -0
- {saes-2.1.0 → saes-2.2.0}/tests/plugins/test_dominance_and_indicators.py +0 -0
- {saes-2.1.0 → saes-2.2.0}/tests/plugins/test_eaf.py +0 -0
- {saes-2.1.0 → saes-2.2.0}/tests/plugins/test_io_and_plots.py +0 -0
- {saes-2.1.0 → saes-2.2.0}/tests/plugins/test_plugin_integration.py +0 -0
- {saes-2.1.0 → saes-2.2.0}/tests/statistical/test_reference_validation.py +0 -0
- {saes-2.1.0 → saes-2.2.0}/tests/statistical/test_stats_correctness.py +0 -0
- {saes-2.1.0 → saes-2.2.0}/tests/unit/test_datasets_api.py +0 -0
- {saes-2.1.0 → saes-2.2.0}/tests/unit/test_io.py +0 -0
- {saes-2.1.0 → saes-2.2.0}/tests/unit/test_plugins.py +0 -0
- {saes-2.1.0 → saes-2.2.0}/tests/unit/test_plugins_sync.py +0 -0
- {saes-2.1.0 → saes-2.2.0}/tests/unit/test_scientific_features.py +0 -0
- {saes-2.1.0 → saes-2.2.0}/tests/unit/test_server.py +0 -0
- {saes-2.1.0 → saes-2.2.0}/tests/unit/test_validation.py +0 -0
- {saes-2.1.0 → saes-2.2.0}/tests/unit/test_visualization.py +0 -0
|
@@ -120,6 +120,8 @@ jobs:
|
|
|
120
120
|
)
|
|
121
121
|
match = pattern.search(text)
|
|
122
122
|
notes = match.group(0).strip() if match else f"Release v{version}"
|
|
123
|
+
pypi_url = f"https://pypi.org/project/saes/{version}/"
|
|
124
|
+
notes = f"{notes}\n\n---\n\n**PyPI:** [saes {version}]({pypi_url})"
|
|
123
125
|
pathlib.Path("release_notes.md").write_text(notes + "\n", encoding="utf-8")
|
|
124
126
|
EOF
|
|
125
127
|
gh release create "v${VERSION}" \
|
|
@@ -9,6 +9,31 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
9
9
|
|
|
10
10
|
## [Released]
|
|
11
11
|
|
|
12
|
+
## [2.2.0] — 2026-12-02 (@rorro6787)
|
|
13
|
+
|
|
14
|
+
### Added
|
|
15
|
+
|
|
16
|
+
- Packaged 9 curated benchmark datasets directly inside `saes.data` — including 3 large multi-domain benchmarks (`zcat_moo_benchmark.csv` [12,000 rows, 5 MOEAs × 20 ZCAT problems], `ml_multidataset_cv.csv` [8,100 rows, 6 real `scikit-learn` classifiers × 15 real UCI/OpenML/NASA datasets × 30 paired 3×10-fold CV splits], and `continuous_blackbox_benchmark.csv` [5,400 rows, 6 derivative-free optimizers × 15 shifted 10D functions]) alongside `metaheuristics_benchmark.csv` (14,700 rows), `moo_pareto_indicators.csv` (960 rows), `ml_classification_cv.csv` (480 rows), `continuous_optimization_fitness.csv`, `continuous_optimization_scores.csv`, and `continuous_optimization_low_scale.csv` — while keeping `/datasets/` gitignored for runtime user storage; exposed programmatically through `saes.datasets` (`list_datasets`, `describe_datasets`, `load_dataset`, `dataset_path`, `load_metaheuristics`, `load_zcat_benchmark`, `load_ml_multidataset`, `load_continuous_blackbox`, `load_moo_indicators`, `load_ml_benchmark`, `load_continuous_optimization`, `load_optimization_scores`, `load_optimization_low_scale`) and `GET /api/v1/datasets/bundled`.
|
|
17
|
+
- Added programmatic CSV inspection and repair APIs (`saes.inspect_csv`, `saes.repair_csv`, `CSVRowIssue`, `CSVInspectionResult`, `CSVRepairResult`) backed by `DatasetValidator` rules, exposed via `POST /api/v1/datasets/inspect` and `POST /api/v1/datasets/repair`.
|
|
18
|
+
- Added deterministic, headless-ready (`MPLBACKEND=Agg`) multi-domain reproducibility artifacts under `examples/` (`case_study_metaheuristics.py`, `case_study_continuous.py`, `case_study_ml.py`, an exhaustive 9-section `saes_walkthrough.ipynb`, `smoke_test.sh`, and `README.md`) plus PEP 723 dataset provenance scripts under `scripts/benchmarks/`, verified by automated integration tests.
|
|
19
|
+
|
|
20
|
+
### Changed
|
|
21
|
+
|
|
22
|
+
- Updated `README.md`, Quickstart, Tutorials, User Guides, and API Reference to load bundled datasets via `saes.datasets` so all code snippets execute out of the box after `pip install saes`.
|
|
23
|
+
- Removed stale MCP server references from `docs/rest-api.md`.
|
|
24
|
+
- Completed `CITATION.cff` with version, release date, author affiliations, and PyPI artifact URL, wired `scripts/release_stamp.js` to bump `CITATION.cff` automatically on release, and updated PyPI development status classifier in `pyproject.toml` to `5 - Production/Stable`.
|
|
25
|
+
|
|
26
|
+
### Fixed
|
|
27
|
+
|
|
28
|
+
- Clamped asymmetric error-bar deltas (`max(0.0, ...)`) in `PlackettLucePlotGenerator` (`plot` and `plot_interactive`) so strongly concentrated discrete posterior rank distributions (where the 95% quantile credible interval collapses while the mean expected rank differs slightly) never raise a negative-`xerr` `ValueError` in Matplotlib.
|
|
29
|
+
|
|
30
|
+
## [2.1.1] — 2026-11-27 (@rorro6787)
|
|
31
|
+
|
|
32
|
+
### Security
|
|
33
|
+
|
|
34
|
+
- Upgraded locked dependencies in `uv.lock` to remediate Dependabot advisories across `pillow` (`12.3.0` → `13.0.0`), `pymdown-extensions` (`10.21.2` → `12.3` / `13.0`), `mkdocs-material` (`9.7.6` → `9.8.2`), and `certifi` (`2026.7.22` → `2026.11.20`), along with `mkdocstrings` (`1.0.4` → `1.0.8`) and `mkdocstrings-python` (`2.0.3` → `2.0.11`) for `pymdown-extensions` 13 compatibility.
|
|
35
|
+
- Tightened minimum version constraints in `pyproject.toml` for `pydantic` (`>=2.4.0`), `python-multipart` (`>=0.0.31`), `mkdocs-material` (`>=9.7.7`), `mkdocstrings[python]` (`>=1.0.8`), and `pytest` (`>=9.0.3`) to exclude known vulnerable or incompatible releases.
|
|
36
|
+
|
|
12
37
|
## [2.1.0] — 2026-11-27 (@rorro6787)
|
|
13
38
|
|
|
14
39
|
### Added
|
|
@@ -119,3 +144,214 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
119
144
|
- Decoupled and extracted `chat`, `mcp`, and `plugins` into the dedicated `saes-ai` package.
|
|
120
145
|
- `saes.server.app` now dynamically mounts `saes_ai.server.routes` when `saes-ai` is installed without internal legacy fallbacks.
|
|
121
146
|
- Cleaned core dependencies by removing `chat` extra and delegating AI tooling to `[ai]` optional extra (`saes-ai`).
|
|
147
|
+
|
|
148
|
+
## [1.5.0] — 2025-11-21 (@rorro6787)
|
|
149
|
+
|
|
150
|
+
### Added
|
|
151
|
+
|
|
152
|
+
- **Reproducibility support**: Added `seed` parameter to Bayesian statistical tests (`bayesian_sign_test`, `bayesian_signed_rank_test`) for deterministic results.
|
|
153
|
+
- **Reproducibility support**: Added `seed` parameter to `HistoPlot` class for consistent jitter in histogram generation.
|
|
154
|
+
- **Multi-platform CI**: Comprehensive GitHub Actions workflow testing on Windows, Linux (Ubuntu), and macOS.
|
|
155
|
+
- **Smoke tests**: Added automated smoke tests for CLI and API functionality across all platforms.
|
|
156
|
+
- **Environment files**: Added `requirements.txt`, `requirements-dev.txt`, and `environment.yml` for broader compatibility.
|
|
157
|
+
- **Headless mode documentation**: Complete documentation and examples for running SAES without display (CI/CD, servers).
|
|
158
|
+
- **Headless mode examples**: Python and shell script examples for automated workflows (`examples/headless_mode_example.py`, `examples/headless_cli_example.sh`, `examples/headless_cli_example.bat`).
|
|
159
|
+
- **New test suite**: Added `test_bayesian_seed.py` specifically for verifying seed reproducibility.
|
|
160
|
+
- **Documentation**: New reproducibility documentation page (`docs/usage/reproducibility.rst`) with best practices.
|
|
161
|
+
|
|
162
|
+
### Changed
|
|
163
|
+
|
|
164
|
+
- Updated `test_bayesian.py` to demonstrate both seed parameter usage and backward compatibility.
|
|
165
|
+
- Enhanced `README.md` with sections on reproducibility and headless mode.
|
|
166
|
+
- Improved documentation structure to include reproducibility guidance.
|
|
167
|
+
|
|
168
|
+
### Fixed
|
|
169
|
+
|
|
170
|
+
- Ensured all random operations can be made deterministic for reproducible research.
|
|
171
|
+
|
|
172
|
+
## [1.4.0] — 2025-11-15 (@rorro6787)
|
|
173
|
+
|
|
174
|
+
### Added
|
|
175
|
+
|
|
176
|
+
- Comprehensive test suite for Bayesian statistical tests (`bayesian_sign_test`, `bayesian_signed_rank_test`).
|
|
177
|
+
- Code of Conduct based on Contributor Covenant v2.1.
|
|
178
|
+
- `.editorconfig` file for consistent code style across editors.
|
|
179
|
+
- `.pre-commit-config.yaml` for automated code quality checks (`black`, `flake8`, `isort`).
|
|
180
|
+
|
|
181
|
+
### Changed
|
|
182
|
+
|
|
183
|
+
- **BREAKING**: Renamed plot modules to lowercase for Python naming consistency:
|
|
184
|
+
- `SAES.plots.CDplot` → `SAES.plots.cdplot`
|
|
185
|
+
- `SAES.plots.HistoPlot` → `SAES.plots.histoplot`
|
|
186
|
+
- `SAES.plots.Pplot` → `SAES.plots.pplot`
|
|
187
|
+
- Migrated from `pip`/`venv` to `uv` for faster, more reliable dependency management.
|
|
188
|
+
- Reorganized dependencies in `pyproject.toml` into logical groups:
|
|
189
|
+
- Runtime dependencies (core functionality)
|
|
190
|
+
- `[test]`: Testing dependencies
|
|
191
|
+
- `[dev]`: Development tools (`black`, `flake8`, `mypy`, `isort`, `pre-commit`)
|
|
192
|
+
- `[docs]`: Documentation generation (Sphinx)
|
|
193
|
+
- `[html]`: HTML notebook generation (`papermill`, `nbconvert`)
|
|
194
|
+
- Expanded `CONTRIBUTING.md` with detailed setup instructions using `uv`.
|
|
195
|
+
- Updated `README.md` with `uv` installation instructions.
|
|
196
|
+
- Improved documentation in `docs/conf.py` to dynamically read version from `version.txt`.
|
|
197
|
+
- Updated GitHub Actions workflows to use `uv` for dependency installation.
|
|
198
|
+
- Updated all notebooks to use new lowercase plot module names.
|
|
199
|
+
|
|
200
|
+
### Fixed
|
|
201
|
+
|
|
202
|
+
- Corrected `'frtom'` typo to `'from'` in all plot module docstrings (23 instances across 5 files).
|
|
203
|
+
- Removed debug code (`if __name__ == "__main__"` block) from `HistoPlot.py`.
|
|
204
|
+
- Fixed `pyproject.toml` structure (moved `requires-python` to correct location).
|
|
205
|
+
- Restored corrupted `boxplot.py` and `violin.py` files.
|
|
206
|
+
|
|
207
|
+
### Documentation
|
|
208
|
+
|
|
209
|
+
- Populated `CHANGELOG.md` with complete version history from v0.5.1 to v1.3.6.
|
|
210
|
+
- Replaced generic TODO comment in `apv_procedures.py` with comprehensive module docstring.
|
|
211
|
+
- Added detailed examples and usage instructions throughout documentation.
|
|
212
|
+
|
|
213
|
+
## [1.3.6] — 2025-03-18 (@rorro6787)
|
|
214
|
+
|
|
215
|
+
### Added
|
|
216
|
+
|
|
217
|
+
- Added `HistoPlot` visualization.
|
|
218
|
+
- Added Violin Plot visualization.
|
|
219
|
+
|
|
220
|
+
## [1.3.5] — 2025-03-13 (@rorro6787)
|
|
221
|
+
|
|
222
|
+
### Added
|
|
223
|
+
|
|
224
|
+
- Added ML notebook example.
|
|
225
|
+
- Added Friedman Aligned Ranks, Quade, ANOVA, and T-Test statistical tests.
|
|
226
|
+
- Added Friedman p-values, ANOVA, T-Test, and T-Test pivot tables.
|
|
227
|
+
|
|
228
|
+
### Changed
|
|
229
|
+
|
|
230
|
+
- Use of mean/median as estimator of best and second-best performing algorithm in LaTeX tables.
|
|
231
|
+
|
|
232
|
+
## [1.3.4] — 2025-03-06 (@rorro6787)
|
|
233
|
+
|
|
234
|
+
### Added
|
|
235
|
+
|
|
236
|
+
- Added scientific article references to all implementations.
|
|
237
|
+
- Bayesian posterior graphs now include a frequency bar for better visualization.
|
|
238
|
+
|
|
239
|
+
### Fixed
|
|
240
|
+
|
|
241
|
+
- Fixed dependencies compatibility with Google Colab.
|
|
242
|
+
|
|
243
|
+
## [1.3.2] — 2025-03-06 (@rorro6787)
|
|
244
|
+
|
|
245
|
+
### Added
|
|
246
|
+
|
|
247
|
+
- Added flexibility in the size of the Bayesian posterior graph.
|
|
248
|
+
- Added option to choose the pivot algorithm manually in the Wilcoxon pivot table.
|
|
249
|
+
|
|
250
|
+
### Security
|
|
251
|
+
|
|
252
|
+
- Fixed dependency vulnerability issues.
|
|
253
|
+
|
|
254
|
+
## [1.3.1] — 2025-03-05 (@rorro6787)
|
|
255
|
+
|
|
256
|
+
### Fixed
|
|
257
|
+
|
|
258
|
+
- Fixed problem in the `Pplot` generator that released incoherent results when comparing `alg1-alg2` vs. `alg2-alg1`.
|
|
259
|
+
|
|
260
|
+
## [1.3.0] — 2025-03-05 (@rorro6787)
|
|
261
|
+
|
|
262
|
+
### Added
|
|
263
|
+
|
|
264
|
+
- Added a new type of plot: the Bayesian Posterior Plot (`Pplot`).
|
|
265
|
+
|
|
266
|
+
## [1.2.0] — 2025-03-04 (@rorro6787)
|
|
267
|
+
|
|
268
|
+
### Added
|
|
269
|
+
|
|
270
|
+
- Added an HTML module for easy and intuitive HTML report generation.
|
|
271
|
+
- Added unit tests for all modules of the `SAES` library.
|
|
272
|
+
|
|
273
|
+
### Documentation
|
|
274
|
+
|
|
275
|
+
- Updated `README.md` and documentation with the HTML module.
|
|
276
|
+
|
|
277
|
+
## [1.1.0] — 2025-02-26 (@rorro6787)
|
|
278
|
+
|
|
279
|
+
### Added
|
|
280
|
+
|
|
281
|
+
- Added a multi-objective module for Pareto front plots in 2D, 3D, and parallel coordinates graphs for higher dimensions.
|
|
282
|
+
- Added extra notebooks with multi-objective optimization examples.
|
|
283
|
+
|
|
284
|
+
### Changed
|
|
285
|
+
|
|
286
|
+
- Changed structure of LaTeX tables, boxplot, and `cdplot` to object-oriented.
|
|
287
|
+
- Updated command-line interface.
|
|
288
|
+
- Updated documentation for multi-objective setup.
|
|
289
|
+
- Changed structure of unit tests (WIP).
|
|
290
|
+
|
|
291
|
+
## [1.0.3] — 2025-02-07 (@rorro6787)
|
|
292
|
+
|
|
293
|
+
### Fixed
|
|
294
|
+
|
|
295
|
+
- Fixed bug where datasets that were not diverse enough threw an exception.
|
|
296
|
+
|
|
297
|
+
## [1.0.2] — 2025-02-06 (@rorro6787)
|
|
298
|
+
|
|
299
|
+
### Fixed
|
|
300
|
+
|
|
301
|
+
- Fixed bug where the Friedman dataframe did not include the Friedman results column.
|
|
302
|
+
|
|
303
|
+
## [1.0.1] — 2025-02-06 (@rorro6787)
|
|
304
|
+
|
|
305
|
+
### Added
|
|
306
|
+
|
|
307
|
+
- Added tutorial in `multiobjective_optimization.ipynb` to download HTML without code.
|
|
308
|
+
- Added extra dependencies.
|
|
309
|
+
|
|
310
|
+
### Documentation
|
|
311
|
+
|
|
312
|
+
- Updated information in `README.md`.
|
|
313
|
+
|
|
314
|
+
## [1.0.0] — 2025-02-05 (@rorro6787)
|
|
315
|
+
|
|
316
|
+
### Added
|
|
317
|
+
|
|
318
|
+
- Added possibility to generate LaTeX tables in vertical orientation.
|
|
319
|
+
|
|
320
|
+
### Changed
|
|
321
|
+
|
|
322
|
+
- Updated documentation to showcase command-line features.
|
|
323
|
+
- Changed notebooks structure.
|
|
324
|
+
|
|
325
|
+
### Fixed
|
|
326
|
+
|
|
327
|
+
- Fixed various bugs.
|
|
328
|
+
|
|
329
|
+
## [0.6.0] — 2025-02-03 (@rorro6787)
|
|
330
|
+
|
|
331
|
+
### Added
|
|
332
|
+
|
|
333
|
+
- Added command-line executables.
|
|
334
|
+
- Added IQR tables to the median tables.
|
|
335
|
+
- Added exponential number format in tables.
|
|
336
|
+
- Added SAES tutorial and usage template to the notebooks structure.
|
|
337
|
+
|
|
338
|
+
### Changed
|
|
339
|
+
|
|
340
|
+
- Updated `README.md` and SAES documentation.
|
|
341
|
+
|
|
342
|
+
### Fixed
|
|
343
|
+
|
|
344
|
+
- Fixed CD plot bug where all CD plots were identical.
|
|
345
|
+
- Fixed various bugs.
|
|
346
|
+
|
|
347
|
+
## [0.5.1] — 2025-01-21 (@rorro6787)
|
|
348
|
+
|
|
349
|
+
### Added
|
|
350
|
+
|
|
351
|
+
- **Seamless CSV data processing**: Import and preprocess experiment results effortlessly, handling datasets of varying sizes.
|
|
352
|
+
- **Statistical analysis**:
|
|
353
|
+
- Parametric tests: Normality test.
|
|
354
|
+
- Non-parametric tests: Friedman test, Wilcoxon signed-rank test.
|
|
355
|
+
- Post-hoc analysis: Nemenyi test (critical distance).
|
|
356
|
+
- **Report generation**: Automated LaTeX reports with Median table, Median table with Friedman test, Median table with Wilcoxon pairwise test (pivot-based), and Pairwise Wilcoxon test table (1-to-1 comparison).
|
|
357
|
+
- **Visualization**: Boxplot graphs for algorithm comparison and Critical Distance plots for statistical significance.
|
|
@@ -2,16 +2,22 @@ cff-version: 1.2.0
|
|
|
2
2
|
message: "If you use SAES in scientific publications or empirical algorithm benchmarks, please cite it as below."
|
|
3
3
|
type: software
|
|
4
4
|
title: "SAES: Stochastic Algorithm Evaluation Suite"
|
|
5
|
+
version: "2.1.1"
|
|
6
|
+
date-released: "2026-11-27"
|
|
5
7
|
abstract: >-
|
|
6
8
|
Open-source scientific Python library for rigorous frequentist, exact Bayesian,
|
|
7
|
-
equivalence (TOST), sensitivity (MDES),
|
|
8
|
-
statistical evaluation of stochastic optimization
|
|
9
|
+
equivalence (TOST), sensitivity (MDES), multi-objective Pareto/EAF, and
|
|
10
|
+
Dolan-More meta-benchmarking statistical evaluation of stochastic optimization
|
|
11
|
+
algorithms and machine learning models.
|
|
9
12
|
authors:
|
|
10
13
|
- family-names: Carreira
|
|
11
14
|
given-names: Emilio R.
|
|
15
|
+
affiliation: "University of Málaga"
|
|
12
16
|
- family-names: Nebro
|
|
13
17
|
given-names: Antonio J.
|
|
18
|
+
affiliation: "University of Málaga"
|
|
14
19
|
repository-code: "https://github.com/saes-suite/saes"
|
|
20
|
+
repository-artifact: "https://pypi.org/project/SAES/"
|
|
15
21
|
url: "https://saes-suite.github.io/saes/"
|
|
16
22
|
license: GPL-3.0-or-later
|
|
17
23
|
keywords:
|
|
@@ -24,4 +30,5 @@ keywords:
|
|
|
24
30
|
- critical-distance
|
|
25
31
|
- performance-profiles
|
|
26
32
|
- equivalence-testing
|
|
33
|
+
- pareto-fronts
|
|
27
34
|
- reproducibility
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: saes
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.2.0
|
|
4
4
|
Summary: Stochastic Algorithm Evaluation Suite - Scientific Python library for statistical benchmarking
|
|
5
5
|
Project-URL: Homepage, https://github.com/saes-suite/saes
|
|
6
6
|
Project-URL: Documentation, https://saes-suite.github.io/saes/
|
|
@@ -11,7 +11,7 @@ Author: Emilio R. Carreira, Antonio J. Nebro
|
|
|
11
11
|
License: GPL-3.0-or-later
|
|
12
12
|
License-File: LICENSE
|
|
13
13
|
Keywords: bayesian-statistics,benchmarking,critical-distance,friedman,hypothesis-testing,metaheuristics,nonparametric,performance-profiles,statistics,stochastic-algorithms
|
|
14
|
-
Classifier: Development Status ::
|
|
14
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
15
15
|
Classifier: Intended Audience :: Science/Research
|
|
16
16
|
Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
|
|
17
17
|
Classifier: Operating System :: OS Independent
|
|
@@ -25,21 +25,21 @@ Classifier: Typing :: Typed
|
|
|
25
25
|
Requires-Python: >=3.11
|
|
26
26
|
Requires-Dist: numpy>=1.24.0
|
|
27
27
|
Requires-Dist: pandas>=2.0.0
|
|
28
|
-
Requires-Dist: pydantic>=2.
|
|
28
|
+
Requires-Dist: pydantic>=2.4.0
|
|
29
29
|
Requires-Dist: scipy>=1.10.0
|
|
30
30
|
Requires-Dist: statsmodels>=0.14.0
|
|
31
31
|
Provides-Extra: all
|
|
32
32
|
Requires-Dist: fastapi>=0.110.0; extra == 'all'
|
|
33
33
|
Requires-Dist: matplotlib>=3.7.0; extra == 'all'
|
|
34
34
|
Requires-Dist: plotly>=5.15.0; extra == 'all'
|
|
35
|
-
Requires-Dist: pydantic>=2.
|
|
36
|
-
Requires-Dist: python-multipart>=0.0.
|
|
35
|
+
Requires-Dist: pydantic>=2.4.0; extra == 'all'
|
|
36
|
+
Requires-Dist: python-multipart>=0.0.31; extra == 'all'
|
|
37
37
|
Requires-Dist: seaborn>=0.12.0; extra == 'all'
|
|
38
38
|
Requires-Dist: uvicorn>=0.28.0; extra == 'all'
|
|
39
39
|
Provides-Extra: api
|
|
40
40
|
Requires-Dist: fastapi>=0.110.0; extra == 'api'
|
|
41
|
-
Requires-Dist: pydantic>=2.
|
|
42
|
-
Requires-Dist: python-multipart>=0.0.
|
|
41
|
+
Requires-Dist: pydantic>=2.4.0; extra == 'api'
|
|
42
|
+
Requires-Dist: python-multipart>=0.0.31; extra == 'api'
|
|
43
43
|
Requires-Dist: uvicorn>=0.28.0; extra == 'api'
|
|
44
44
|
Provides-Extra: dev
|
|
45
45
|
Requires-Dist: fastapi>=0.110.0; extra == 'dev'
|
|
@@ -48,17 +48,17 @@ Requires-Dist: matplotlib>=3.7.0; extra == 'dev'
|
|
|
48
48
|
Requires-Dist: mypy>=1.5.0; extra == 'dev'
|
|
49
49
|
Requires-Dist: pandas-stubs>=2.0.0; extra == 'dev'
|
|
50
50
|
Requires-Dist: plotly>=5.15.0; extra == 'dev'
|
|
51
|
-
Requires-Dist: pydantic>=2.
|
|
51
|
+
Requires-Dist: pydantic>=2.4.0; extra == 'dev'
|
|
52
52
|
Requires-Dist: pytest-cov>=4.1.0; extra == 'dev'
|
|
53
|
-
Requires-Dist: pytest>=
|
|
54
|
-
Requires-Dist: python-multipart>=0.0.
|
|
53
|
+
Requires-Dist: pytest>=9.0.3; extra == 'dev'
|
|
54
|
+
Requires-Dist: python-multipart>=0.0.31; extra == 'dev'
|
|
55
55
|
Requires-Dist: ruff>=0.1.0; extra == 'dev'
|
|
56
56
|
Requires-Dist: seaborn>=0.12.0; extra == 'dev'
|
|
57
57
|
Requires-Dist: uvicorn>=0.28.0; extra == 'dev'
|
|
58
58
|
Provides-Extra: docs
|
|
59
|
-
Requires-Dist: mkdocs-material>=9.
|
|
59
|
+
Requires-Dist: mkdocs-material>=9.7.7; extra == 'docs'
|
|
60
60
|
Requires-Dist: mkdocs<2.0.0,>=1.6.0; extra == 'docs'
|
|
61
|
-
Requires-Dist: mkdocstrings[python]>=0.
|
|
61
|
+
Requires-Dist: mkdocstrings[python]>=1.0.8; extra == 'docs'
|
|
62
62
|
Provides-Extra: viz
|
|
63
63
|
Requires-Dist: matplotlib>=3.7.0; extra == 'viz'
|
|
64
64
|
Requires-Dist: plotly>=5.15.0; extra == 'viz'
|
|
@@ -130,8 +130,8 @@ pip install "saes[all]"
|
|
|
130
130
|
```python
|
|
131
131
|
import saes
|
|
132
132
|
|
|
133
|
-
# 1. Load
|
|
134
|
-
dataset = saes.
|
|
133
|
+
# 1. Load a bundled benchmark dataset (or pass any CSV path to saes.load("benchmark.csv"))
|
|
134
|
+
dataset = saes.datasets.load_metaheuristics()
|
|
135
135
|
assert saes.validate(dataset).is_valid
|
|
136
136
|
|
|
137
137
|
# 2. Explore distributions, normality, and dataset-aware test recommendations
|
|
@@ -63,8 +63,8 @@ pip install "saes[all]"
|
|
|
63
63
|
```python
|
|
64
64
|
import saes
|
|
65
65
|
|
|
66
|
-
# 1. Load
|
|
67
|
-
dataset = saes.
|
|
66
|
+
# 1. Load a bundled benchmark dataset (or pass any CSV path to saes.load("benchmark.csv"))
|
|
67
|
+
dataset = saes.datasets.load_metaheuristics()
|
|
68
68
|
assert saes.validate(dataset).is_valid
|
|
69
69
|
|
|
70
70
|
# 2. Explore distributions, normality, and dataset-aware test recommendations
|
|
@@ -7,7 +7,10 @@ Every capability in the SAES ecosystem is exposed first as a strongly typed Pyth
|
|
|
7
7
|
| Function | Signature / Purpose | Return Type |
|
|
8
8
|
| :--- | :--- | :--- |
|
|
9
9
|
| `saes.load` | `load(source)` — Load CSV filepath or buffer | `Dataset` |
|
|
10
|
+
| `saes.datasets` | `list_datasets()`, `describe_datasets()`, `load_dataset(name)`, `dataset_path(name)`, `load_metaheuristics()`, `load_zcat_benchmark()`, `load_ml_multidataset()`, `load_continuous_blackbox()`, `load_moo_indicators()`, `load_ml_benchmark()`, `load_continuous_optimization()`, `load_optimization_scores()`, `load_optimization_low_scale()` | `Dataset` / `list` / `Path` |
|
|
10
11
|
| `saes.validate` | `validate(dataset)` — Strict schema & type validation | `ValidationReport` |
|
|
12
|
+
| `saes.inspect_csv` | `inspect_csv(raw_csv)` — Schema, mapping & row-level CSV inspection | `CSVInspectionResult` |
|
|
13
|
+
| `saes.repair_csv` | `repair_csv(raw_csv, column_mapping=None, cell_edits=None, drop_invalid_rows=False)` | `CSVRepairResult` |
|
|
11
14
|
| `saes.explore` | `explore(dataset, metrics=None, algorithms=None, instances=None, alpha=0.05)` | `DataExplorationResult` |
|
|
12
15
|
| `saes.export_exploration` | `export_exploration(exploration, view_mode="reveal_metrics", export_format="csv", ...)` | `bytes` |
|
|
13
16
|
| `saes.analyze` | `analyze(dataset, alpha=0.05, generate_plots=True, paired=False)` | `AnalysisReport` |
|
|
@@ -95,7 +95,7 @@ class TypstTableRenderer(saes.TableRenderer):
|
|
|
95
95
|
|
|
96
96
|
saes.TableRendererRegistry.register("typst", TypstTableRenderer)
|
|
97
97
|
|
|
98
|
-
dataset = saes.
|
|
98
|
+
dataset = saes.datasets.load_metaheuristics()
|
|
99
99
|
table = saes.generate_table(dataset, metric="HV")
|
|
100
100
|
typst_bytes = saes.export_table(table, export_format="typst")
|
|
101
101
|
```
|
|
@@ -16,18 +16,25 @@ SAES validates every benchmark dataset against a strict six-column tidy schema:
|
|
|
16
16
|
| `maximize` | `bool` | `True` | `True` if higher values are better, `False` otherwise |
|
|
17
17
|
|
|
18
18
|
!!! tip "Bundled Benchmark Datasets"
|
|
19
|
-
`saes` ships with
|
|
20
|
-
|
|
21
|
-
- `datasets
|
|
22
|
-
- `datasets
|
|
19
|
+
`saes` ships with nine curated benchmark datasets packaged directly inside `saes.data` and accessible via `saes.datasets` (`saes.datasets.list_datasets()`):
|
|
20
|
+
|
|
21
|
+
- `saes.datasets.load_metaheuristics()` (`metaheuristics_benchmark.csv`) — 7 multi-objective optimizers × 12 DTLZ/ZDT instances × 7 quality indicators × 25 runs (14,700 rows).
|
|
22
|
+
- `saes.datasets.load_zcat_benchmark()` (`zcat_moo_benchmark.csv`) — 5 MOEAs (`MOEAD`, `MOEADDE`, `NSGAII`, `NSGAIIDE`, `SMPSO`) × 20 ZCAT problems × 4 indicators (`EP`, `HV`, `IGD+`, `NHV`) × 30 runs (12,000 rows).
|
|
23
|
+
- `saes.datasets.load_ml_multidataset()` (`ml_multidataset_cv.csv`) — 6 real `scikit-learn` classifiers × 15 real UCI/OpenML/NASA datasets × 3 metrics (`accuracy`, `f1_macro`, `log_loss`) × 30 paired 3×10-fold CV splits (8,100 rows).
|
|
24
|
+
- `saes.datasets.load_continuous_blackbox()` (`continuous_blackbox_benchmark.csv`) — 6 derivative-free stochastic optimizers × 15 shifted 10D continuous functions × 2 metrics (`best_fitness`, `runtime_ms`) × 30 runs under an equal 2,000-evaluation budget (5,400 rows).
|
|
25
|
+
- `saes.datasets.load_moo_indicators()` (`moo_pareto_indicators.csv`) — 4 MOEAs (`MOEA/D`, `NSGA-II`, `SMPSO`, `SPEA2`) × 4 ZDT/DTLZ instances × 5 Pareto indicators (960 rows).
|
|
26
|
+
- `saes.datasets.load_ml_benchmark()` (`ml_classification_cv.csv`) — 4 ML classifiers (`KNN`, `MLP`, `RandomForest`, `SVM`) across accuracy and loss (480 rows).
|
|
27
|
+
- `saes.datasets.load_continuous_optimization()` (`continuous_optimization_fitness.csv`) — 3 optimizers (`DE`, `GA`, `PSO`) × 4 continuous functions minimizing `Fitness` (120 rows).
|
|
28
|
+
- `saes.datasets.load_optimization_scores()` (`continuous_optimization_scores.csv`) — 3 optimizers × 3 functions maximizing percentage-scale `Score` (90 rows).
|
|
29
|
+
- `saes.datasets.load_optimization_low_scale()` (`continuous_optimization_low_scale.csv`) — 3 optimizers × 3 functions maximizing small-scale `Score` (90 rows).
|
|
23
30
|
|
|
24
31
|
## 2. End-to-End Python Workflow
|
|
25
32
|
|
|
26
33
|
```python
|
|
27
34
|
import saes
|
|
28
35
|
|
|
29
|
-
# 1. Load & validate
|
|
30
|
-
ds = saes.
|
|
36
|
+
# 1. Load & validate (use saes.load("your_file.csv") for custom benchmark files)
|
|
37
|
+
ds = saes.datasets.load_metaheuristics()
|
|
31
38
|
val = saes.validate(ds)
|
|
32
39
|
assert val.is_valid, f"Validation failed: {val.issues}"
|
|
33
40
|
|
|
@@ -104,7 +104,7 @@ Evaluating stochastic algorithms across multiple problem instances introduces we
|
|
|
104
104
|
import saes
|
|
105
105
|
|
|
106
106
|
# 1. Load and strictly validate a tidy long-format benchmark CSV
|
|
107
|
-
dataset = saes.
|
|
107
|
+
dataset = saes.datasets.load_metaheuristics()
|
|
108
108
|
assert saes.validate(dataset).is_valid
|
|
109
109
|
|
|
110
110
|
# 2. Explore distributions & dataset-aware test recommendations
|
|
@@ -130,7 +130,7 @@ repro = saes.reproducibility(dataset, metric="HV", filename="swarmintelligence.c
|
|
|
130
130
|
<figure class="saes-figure" markdown>
|
|
131
131
|

|
|
132
132
|
<figcaption>
|
|
133
|
-
<strong>Figure 1:</strong> Publication-ready Demšar (2006) Friedman + Nemenyi Critical Distance diagram generated directly via <code>saes.export_plot(dataset, plot_type="critical-distance", metric="HV", export_format="svg")</code> on the bundled 7-optimizer, 12-instance <code>
|
|
133
|
+
<strong>Figure 1:</strong> Publication-ready Demšar (2006) Friedman + Nemenyi Critical Distance diagram generated directly via <code>saes.export_plot(dataset, plot_type="critical-distance", metric="HV", export_format="svg")</code> on the bundled 7-optimizer, 12-instance <code>metaheuristics_benchmark.csv</code> benchmark.
|
|
134
134
|
</figcaption>
|
|
135
135
|
</figure>
|
|
136
136
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# REST API & Ecosystem Architecture
|
|
2
2
|
|
|
3
|
-
While `saes` is a standalone, zero-UI scientific Python library at its core, installing the optional `[api]` extra exposes a fully typed **FastAPI** REST server (`saes-api`, default port `:8060`) that powers the **SAES Web/Desktop Studio** (`saes-ui`) and **SAES Conversational AI
|
|
3
|
+
While `saes` is a standalone, zero-UI scientific Python library at its core, installing the optional `[api]` extra exposes a fully typed **FastAPI** REST server (`saes-api`, default port `:8060`) that powers the **SAES Web/Desktop Studio** (`saes-ui`) and **SAES Conversational AI Assistant** (`saes-ai`).
|
|
4
4
|
|
|
5
5
|
## Ecosystem Architecture (API-First & Thin Client)
|
|
6
6
|
|
|
@@ -9,7 +9,7 @@ flowchart LR
|
|
|
9
9
|
PY["Python Scripts &<br/>Jupyter Notebooks"] -->|import saes| CORE["saes Core Engine<br/>NumPy · SciPy · Statsmodels · Pydantic V2"]
|
|
10
10
|
CORE --> REST["Optional FastAPI Server<br/>saes[api] (:8060)"]
|
|
11
11
|
REST -->|Typed JSON / SVG / PDF / LaTeX| UI["saes-ui (Thin Client)<br/>React 18 · TypeScript · Plotly · Tauri v2"]
|
|
12
|
-
REST -->|
|
|
12
|
+
REST -->|Python / Agent Tools| AI["saes-ai (:8070)<br/>Conversational Statistical AI Assistant"]
|
|
13
13
|
UI <-->|Streaming Chat + UI Actions| AI
|
|
14
14
|
```
|
|
15
15
|
|
|
@@ -33,8 +33,8 @@ saes-api
|
|
|
33
33
|
|
|
34
34
|
```bash
|
|
35
35
|
# Run Games-Howell post-hoc test on stored dataset
|
|
36
|
-
curl "http://127.0.0.1:8060/api/v1/datasets/
|
|
36
|
+
curl "http://127.0.0.1:8060/api/v1/datasets/metaheuristics_benchmark.csv/posthoc?metric=HV&instance=DTLZ2&method=games_howell&alpha=0.05"
|
|
37
37
|
|
|
38
38
|
# Compute Bayesian Correlated t-test for 10-fold CV (rho = 1/9)
|
|
39
|
-
curl "http://127.0.0.1:8060/api/v1/datasets/
|
|
39
|
+
curl "http://127.0.0.1:8060/api/v1/datasets/ml_classification_cv.csv/bayesian/correlated-ttest?metric=accuracy&algo_a=RandomForest&algo_b=SVM&rope=0.01&rho=0.111111"
|
|
40
40
|
```
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
# Tutorial 1: Multi-Objective Metaheuristics Benchmark
|
|
2
2
|
|
|
3
|
-
This tutorial walks through a complete frequentist, Bayesian, and meta-benchmarking evaluation of 7 multi-objective particle swarm and evolutionary optimizers (`AutoMOPSOD`, `AutoMOPSORE`, `AutoMOPSOW`, `AutoMOPSOZ`, `NSGAII`, `OMOPSO`, `SMPSO`) across 12 DTLZ/ZDT benchmark instances using the bundled `datasets
|
|
3
|
+
This tutorial walks through a complete frequentist, Bayesian, and meta-benchmarking evaluation of 7 multi-objective particle swarm and evolutionary optimizers (`AutoMOPSOD`, `AutoMOPSORE`, `AutoMOPSOW`, `AutoMOPSOZ`, `NSGAII`, `OMOPSO`, `SMPSO`) across 12 DTLZ/ZDT benchmark instances using the bundled `saes.datasets.load_metaheuristics()` (`metaheuristics_benchmark.csv`).
|
|
4
4
|
|
|
5
5
|
## 1. Load, Validate, and Explore the Dataset
|
|
6
6
|
|
|
7
7
|
```python
|
|
8
8
|
import saes
|
|
9
9
|
|
|
10
|
-
ds = saes.
|
|
10
|
+
ds = saes.datasets.load_metaheuristics()
|
|
11
11
|
val = saes.validate(ds)
|
|
12
12
|
assert val.is_valid, f"Validation failed: {val.issues}"
|
|
13
13
|
|
|
@@ -123,6 +123,6 @@ latex_bytes = saes.export_table(tbl, export_format="latex")
|
|
|
123
123
|
svg_bytes, _, _ = saes.export_plot(ds, plot_type="critical-distance", metric="HV", export_format="svg")
|
|
124
124
|
|
|
125
125
|
# FAIR reproducibility pack (Python script, Jupyter notebook, SHA-256 manifest)
|
|
126
|
-
repro = saes.reproducibility(ds, metric="HV", alpha=0.05, filename="
|
|
126
|
+
repro = saes.reproducibility(ds, metric="HV", alpha=0.05, filename="metaheuristics_benchmark.csv")
|
|
127
127
|
print("Statsmodels version:", repro.manifest.statsmodels_version)
|
|
128
128
|
```
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
# Tutorial 2: Machine Learning Cross-Validation, Correlated Bayesian $t$-Test & Equivalence (TOST)
|
|
2
2
|
|
|
3
|
-
This tutorial demonstrates evaluating four classifiers (`KNN`, `MLP`, `RandomForest`, `SVM`) on accuracy and loss across matched cross-validation folds using `datasets
|
|
3
|
+
This tutorial demonstrates evaluating four classifiers (`KNN`, `MLP`, `RandomForest`, `SVM`) on accuracy and loss across matched cross-validation folds using the bundled `saes.datasets.load_ml_benchmark()` dataset, highlighting **explicit pairing**, the **Bayesian Correlated $t$-test** (Nadeau & Bengio 2003; Benavoli et al. 2017), **sensitivity (MDES)** analysis, and **TOST equivalence testing** (Schuirmann 1987; Lakens 2017).
|
|
4
|
+
|
|
5
|
+
!!! tip "Larger Multi-Dataset Benchmark"
|
|
6
|
+
For multi-dataset classifier benchmarking across 15 real UCI/OpenML/NASA datasets (6 real `scikit-learn` classifiers × 30 paired 3×10-fold CV splits = 8,100 rows), use `saes.datasets.load_ml_multidataset()` (see `examples/case_study_ml.py`).
|
|
4
7
|
|
|
5
8
|
## 1. Load & Analyze Matched Cross-Validation Folds (`paired=True`)
|
|
6
9
|
|
|
@@ -9,7 +12,7 @@ Unlike independent stochastic optimization runs (`paired=False`), classifiers ev
|
|
|
9
12
|
```python
|
|
10
13
|
import saes
|
|
11
14
|
|
|
12
|
-
ds = saes.
|
|
15
|
+
ds = saes.datasets.load_ml_benchmark()
|
|
13
16
|
assert saes.validate(ds).is_valid
|
|
14
17
|
|
|
15
18
|
# Automated analysis explicitly declaring matched CV folds
|
|
@@ -20,7 +23,7 @@ print(report.to_dataframe()[["instance", "metric", "test_name", "p_value", "effe
|
|
|
20
23
|
<figure class="saes-figure" markdown>
|
|
21
24
|

|
|
22
25
|
<figcaption>
|
|
23
|
-
<strong>Classifier Ranking (Accuracy):</strong> Friedman + Nemenyi Critical Distance diagram generated directly from <code>
|
|
26
|
+
<strong>Classifier Ranking (Accuracy):</strong> Friedman + Nemenyi Critical Distance diagram generated directly from the bundled <code>ml_classification_cv.csv</code> benchmark.
|
|
24
27
|
</figcaption>
|
|
25
28
|
</figure>
|
|
26
29
|
|
|
@@ -13,7 +13,7 @@ Following **Benavoli et al. (2017)** (*JMLR*), SAES evaluates pairwise multi-ins
|
|
|
13
13
|
```python
|
|
14
14
|
import saes
|
|
15
15
|
|
|
16
|
-
ds = saes.
|
|
16
|
+
ds = saes.datasets.load_metaheuristics()
|
|
17
17
|
bayes = saes.statistics.bayesian_signed_rank(
|
|
18
18
|
ds,
|
|
19
19
|
metric="HV",
|
|
@@ -14,7 +14,7 @@ When benchmarking $k \ge 3$ algorithms across $N \ge 2$ benchmark instances, obs
|
|
|
14
14
|
```python
|
|
15
15
|
import saes
|
|
16
16
|
|
|
17
|
-
ds = saes.
|
|
17
|
+
ds = saes.datasets.load_metaheuristics()
|
|
18
18
|
|
|
19
19
|
cd = saes.statistics.friedman_nemenyi(ds, metric="HV", alpha=0.05)
|
|
20
20
|
aligned = saes.statistics.friedman_aligned_ranks(ds, metric="HV", alpha=0.05)
|
|
@@ -13,7 +13,7 @@ All {{ saes_plotters_count }} plotters below are introspected live from `saes.Pl
|
|
|
13
13
|
```python
|
|
14
14
|
import saes
|
|
15
15
|
|
|
16
|
-
ds = saes.
|
|
16
|
+
ds = saes.datasets.load_metaheuristics()
|
|
17
17
|
svg_bytes, _, _ = saes.export_plot(
|
|
18
18
|
ds,
|
|
19
19
|
plot_type="effect-size-forest",
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# SAES Reproducible Examples & Case Studies
|
|
2
|
+
|
|
3
|
+
This directory provides deterministic, headless-ready (`MPLBACKEND=Agg`) scripts and an exhaustive 9-section Jupyter walkthrough reproducing the statistical, multi-objective Pareto/EAF, multi-format reporting, and FAIR packaging workflows of `saes` using the bundled datasets (`saes.datasets`) — requiring **no external libraries beyond `saes[viz]`**.
|
|
4
|
+
|
|
5
|
+
## Quick Verification (One Command)
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
chmod +x examples/smoke_test.sh
|
|
9
|
+
./examples/smoke_test.sh
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
## Included Artifacts
|
|
13
|
+
|
|
14
|
+
| File | Domain & Capabilities Demonstrated |
|
|
15
|
+
| :--- | :--- |
|
|
16
|
+
| `case_study_metaheuristics.py` | **Multi-objective metaheuristics** (`metaheuristics_benchmark.csv` 14,700 rows + `zcat_moo_benchmark.csv` 12,000 rows, `paired=False`): Friedman + Nemenyi CD, Aligned-Ranks, Quade, RM-ANOVA with Greenhouse–Geisser $\varepsilon$, Bayesian Plackett–Luce & Signed-Rank ROPE, effect-size forest, Dolan–Moré profiles, Pareto EAF/KS-EAF plugin, LaTeX tables, vector SVG plots, and FAIR reproducibility pack. |
|
|
17
|
+
| `case_study_continuous.py` | **Continuous single-objective black-box optimization** (`continuous_blackbox_benchmark.csv` 5,400 rows, 6 optimizers × 15 shifted 10D functions, `paired=False`): Shapiro/Lilliefors/Anderson/Levene diagnostics, Welch ANOVA + Games–Howell, Kruskal + Dunn/Conover–Iman, Brunner–Munzel, exact Shaffer & Bergmann–Hommel matrix corrections, Bayesian Sign vs Signed-Rank, and quality-vs-runtime Dolan–Moré profiles. |
|
|
18
|
+
| `case_study_ml.py` | **Multi-dataset ML cross-validation** (`ml_multidataset_cv.csv` 8,100 rows, 6 real classifiers × 15 real UCI/OpenML/NASA datasets × 30 paired 3×10-fold CV splits, `paired=True`): blocked multi-dataset Friedman/Aligned-Ranks/Quade + Bayesian Plackett–Luce, Nadeau–Bengio Bayesian Correlated $t$-test ($\rho = 1/9$), power & MDES sensitivity audit, Schuirmann TOST equivalence (both equivalent and non-equivalent pairs), Dunnett post-hoc, LaTeX table, and vector SVGs. |
|
|
19
|
+
| `saes_walkthrough.ipynb` | **Exhaustive 9-section interactive Jupyter showcase** exercising all bundled datasets, `inspect_csv`/`repair_csv`, assumption checks, all 4 blocked omnibus tests, all 5 post-hoc procedures + Shaffer/Bergmann–Hommel, exact effect-size CIs & forest, all Bayesian models, power/MDES/TOST, Dolan–Moré profiles, all 3 table types & 6 export formats, static & interactive plotters, FAIR packs, registries, and `saes.plugins.pareto`. |
|
|
20
|
+
| `smoke_test.sh` | Automated headless verification script running all three domain case studies plus all code cells of `saes_walkthrough.ipynb` and asserting all 19 generated tables, vector plots, notebooks, and SHA-256 manifests. |
|
|
21
|
+
|
|
22
|
+
> **Dataset Provenance:** The deterministic data-generation scripts used to build the bundled empirical benchmarks are archived separately under [`scripts/benchmarks/`](../scripts/benchmarks/README.md) with PEP 723 inline metadata (not required to run `saes` or any file in `examples/`).
|