Python library designed to analyze and compare the performance of different algorithms across multiple problems using non-parametric statistical tests
Project description
SAES: Stochastic Algorithm Evaluation Suite
SAES is a Python library designed to analyse and compare the performance of stochastic algorithms (e.g. metaheuristics and some machine learning techniques) on multiple problems.
The current version of the tool offers the following capabilities:
-
Seamless CSV data processing
- Import and preprocess experiment results effortlessly.
- Handle datasets of varying sizes with ease.
-
Statistical analysis
- Non-parametric tests:
- Friedman test
- Wilcoxon signed-rank test
- Post hoc analysis:
- Nemenyi test (critical distance)
- Non-parametric tests:
-
Report generation
- Automated LaTeX reports with the following types of tables:
- Median table
- Median table with Friedman test
- Median table with Wilcoxon pairwise test (pivot-based)
- Pairwise Wilcoxon test table (1-to-1 comparison)
- Automated LaTeX reports with the following types of tables:
-
Visualization
- Boxplot graphs for algorithm comparison.
- Critical distance plots for statistical significance.
- Multiobjetive Pareto Front plots in the Multiobjective module.
- HTML generation for intuitive analysis.
-
CL Interface
- Command Line feature to access the different
SAESfunctions
- Command Line feature to access the different
This tool is aimed at researchers and developers interested in algorithm benchmarking studies for artificial intelligence, optimization, machine learning, and more.
SAES is a new project that is in its early stages of development. Feel free to open issues for comments, suggestions and bug reports.
📖 Context
A stochastic algorithm is an algorithm that incorporates randomness as part of its logic. This randomness leads to variability in outcomes even when applied to the same problem with the same initial conditions. Stochastic algorithms are widely used in various fields, including optimization, machine learning, and simulation, due to their ability to explore larger solution spaces and avoid local optima. Analyzing and comparing stochastic algorithms pose challenges due to their inherent randomness due to the fact that single run does not provide a complete picture of its performance; instead, multiple runs are necessary to capture the distribution of possible outcomes. This variability necessitates a statistical-based methodology based on descriptive (mean, median, standard deviation, ...) and inferential (hypothesis testing) statistics and visualization.
SAES assumes that the results of comparative study between a number of algorithms is provided in a CSV file with this scheme:
- Algorithm (string): Algorithm name.
- Instance (string): Instance name.
- MetricName (string): Name of the quality metric used to evaluate the algorithm performace on the instance.
- ExecutionId (integer): Unique identifier for each algorithm run .
- MetricValue (double): Value of the metric corresponding to the run.
Example of Data file content
| Algorithm | Instance | MetricName | ExecutionId | MetricValue |
|---|---|---|---|---|
| SVM | Iris | Accuracy | 0 | 0.985 |
| SVM | Iris | Accuracy | 1 | 0.973 |
| ... | ... | ... | ... | ... |
You will also need a second file to store the information of the different metrics that you to make study. The file must have the following scheme:
- MetricName (string): Name of the quality metric used to evaluate the algorithm performace on the instance.
- Maximize (boolean): Boolean value to show whether the metric value in that row must be maximized or minimized.
Example of Metric file content
| MetricName | Maximize |
|---|---|
| Accuracy | True |
| Loss | False |
| ... | ... |
SAES API
The SAES library offers a range of functions categorized into three groups, corresponding to its three main features. The following links provide the SAES Tutorial and the SAES API documentation that includes a detailed list of features.
🛠 Requirements
- Python: >= 3.10
📦 Installation
Before installing the project, we recommend creating a virtual environment to avoid conflicts with other Python projects:
python3 -m venv venv
source venv/bin/activate # On Windows, use `venv\Scripts\activate`
Once you have activated the virtual environment, you can install the project with its dependencies using the following command:
pip install SAES
🤝 Contributors
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file saes-1.3.1.tar.gz.
File metadata
- Download URL: saes-1.3.1.tar.gz
- Upload date:
- Size: 53.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c65684e1d73829067480a5cc00ab29782941c3e5f80a53dac84c07fa64b632a2
|
|
| MD5 |
17c9142a6cba9aa03fec57131db66f08
|
|
| BLAKE2b-256 |
ffeef2b3975bcbbfbde9af233d16a7156f4ae28bf5635326fd9bd39ce9842bff
|
Provenance
The following attestation bundles were made for saes-1.3.1.tar.gz:
Publisher:
publish.yml on jMetal/SAES
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
saes-1.3.1.tar.gz -
Subject digest:
c65684e1d73829067480a5cc00ab29782941c3e5f80a53dac84c07fa64b632a2 - Sigstore transparency entry: 177427419
- Sigstore integration time:
-
Permalink:
jMetal/SAES@ec36c09e09ee0bf7fa140ef961a50479122dc6cb -
Branch / Tag:
refs/tags/v1.3.1 - Owner: https://github.com/jMetal
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@ec36c09e09ee0bf7fa140ef961a50479122dc6cb -
Trigger Event:
release
-
Statement type:
File details
Details for the file saes-1.3.1-py3-none-any.whl.
File metadata
- Download URL: saes-1.3.1-py3-none-any.whl
- Upload date:
- Size: 11.4 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a4fbac682bad0d7c9357382f5b7c0dfca171b3b5943a6ce059491f60b12b5ad0
|
|
| MD5 |
2060a95e875e75badd1f9d7bc57db26b
|
|
| BLAKE2b-256 |
a34f45ab4856feb288f6c739117f060251ca00064f1707bd164c52b2061734f4
|
Provenance
The following attestation bundles were made for saes-1.3.1-py3-none-any.whl:
Publisher:
publish.yml on jMetal/SAES
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
saes-1.3.1-py3-none-any.whl -
Subject digest:
a4fbac682bad0d7c9357382f5b7c0dfca171b3b5943a6ce059491f60b12b5ad0 - Sigstore transparency entry: 177427431
- Sigstore integration time:
-
Permalink:
jMetal/SAES@ec36c09e09ee0bf7fa140ef961a50479122dc6cb -
Branch / Tag:
refs/tags/v1.3.1 - Owner: https://github.com/jMetal
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@ec36c09e09ee0bf7fa140ef961a50479122dc6cb -
Trigger Event:
release
-
Statement type: