Python API Reference¶
Every capability in the SAES ecosystem is exposed first as a strongly typed Python API under import saes and saes.statistics.
1. Top-Level Workflow API (import saes)¶
| Function | Signature / Purpose | Return Type |
|---|---|---|
saes.load |
load(source) — Load CSV filepath or buffer |
Dataset |
saes.validate |
validate(dataset) — Strict schema & type validation |
ValidationReport |
saes.explore |
explore(dataset, metrics=None, algorithms=None, instances=None, alpha=0.05) |
DataExplorationResult |
saes.export_exploration |
export_exploration(exploration, view_mode="reveal_metrics", export_format="csv", ...) |
bytes |
saes.analyze |
analyze(dataset, alpha=0.05, generate_plots=True, paired=False) |
AnalysisReport |
saes.generate_table |
generate_table(dataset, metric=None, table_type="instance_algorithm", ..., paired=False) |
StatisticalTableResult |
saes.export_table |
export_table(table_result, export_format="latex", ...) |
bytes |
saes.plot |
plot(dataset, plot_type="boxplot", metric=None, instance=None, interactive=False, **kwargs) |
Figure |
saes.export_plot |
export_plot(dataset, plot_type="boxplot", ..., export_format="png", dpi=300) |
tuple[bytes, str, str] |
saes.profiles |
profiles(dataset, metric=None, alpha=0.05, max_tau=None, num_tau_points=60, paired=False, posthoc_correction="holm") |
PerformanceProfilesResult |
saes.power |
power(dataset, metric=None, alpha=0.05, target_power=0.80, target_effect_size=0.50, paired=False) |
PowerAnalysisResult |
saes.tost |
tost(x1, x2, low_eqbound, high_eqbound=None, alpha=0.05, paired=False, equal_var=False, ...) |
TOSTResult |
saes.compute_minimum_detectable_effect |
compute_minimum_detectable_effect(n, target_power=0.80, alpha=0.05, paired=False) |
float |
saes.reproducibility |
reproducibility(dataset, metric=None, alpha=0.05, filename="dataset.csv", raw_csv=None) |
ReproducibilityResult |
2. Statistical Namespace (saes.statistics.*)¶
Assumption Diagnostics¶
shapiro(groups, alpha=0.05) -> list[AssumptionResult]lilliefors(groups, alpha=0.05) -> list[AssumptionResult]anderson(groups, alpha=0.05) -> list[AssumptionResult]levene(groups, alpha=0.05) -> AssumptionResult
Two-Sample & Multi-Group Tests (groups: dict[str, np.ndarray])¶
- Parametric:
ttest_ind,ttest_welch,ttest_rel,anova_oneway,anova_welch - Non-parametric:
mann_whitney,wilcoxon,brunner_munzel,kruskal
Effect Sizes, Exact Confidence Intervals & Forest Summary¶
cohens_d_ci(d, n1, n2=None, alpha=0.05, paired=False, hedges_correction=False) -> tuple[float, float]eta_squared_ci(f_stat, df_between, df_within, alpha=0.05) -> tuple[float, float]vargha_delaney_a12(x1, x2, maximize=True) -> tuple[float, str]vargha_delaney_a12_ci(x1, x2, maximize=True, alpha=0.05) -> tuple[float, str, tuple[float, float]]cliffs_delta(x1, x2, maximize=True) -> tuple[float, str]cliffs_delta_ci(x1, x2, maximize=True, alpha=0.05) -> tuple[float, str, tuple[float, float]]effect_size_forest(dataset, metric, scope="single-instance", instance=None, reference_algorithm=None, alpha=0.05, paired=False, p_adjust="holm") -> EffectSizeForestResult
Multiple-Testing Adjustments & Post-Hoc Tests¶
adjust_pvalues(p_values, method="holm") -> list[float](holm,bonferroni,hochberg,hommel,finner,holland,rom,li,fdr_bh,fdr_by,none)adjust_pvalues_shaffer(p_matrix: np.ndarray) -> np.ndarrayadjust_pvalues_bergmann_hommel(p_matrix: np.ndarray, max_exact_k: int = 9) -> tuple[np.ndarray, list[str]]tukey_hsd(groups, alpha=0.05) -> PostHocResultgames_howell(groups, alpha=0.05) -> PostHocResultdunnett(groups, control, alpha=0.05) -> PostHocResultdunn(groups, alpha=0.05, p_adjust="holm") -> PostHocResultconover_iman(groups, alpha=0.05, p_adjust="holm") -> PostHocResult
Blocked Multi-Instance Omnibus Tests¶
friedman_nemenyi(dataset, metric, alpha=0.05, scope="all-instances", instance=None) -> CriticalDistanceResultfriedman_aligned_ranks(dataset, metric, alpha=0.05, scope="all-instances", instance=None) -> BlockedOmnibusResultquade(dataset, metric, alpha=0.05, scope="all-instances", instance=None) -> BlockedOmnibusResultrm_anova(dataset, metric, alpha=0.05, scope="all-instances", instance=None, greenhouse_geisser=True) -> BlockedOmnibusResult
Bayesian Comparisons & Ranking¶
bayesian_ranking(dataset, metric, scope="all-instances", instance=None, rope_percent=1.0, rope=None, prior_strength=1.0, num_samples=1500, algo_a=None, algo_b=None, method="signed-rank") -> BayesianRankResultbayesian_sign(...) -> BayesianRankResultbayesian_signed_rank(...) -> BayesianRankResultbayesian_correlated_ttest(x_a, x_b, algo_a="Algorithm A", algo_b="Algorithm B", rope=0.01, rho=None, maximize=True) -> BayesianCorrelatedTResultbayesian_plackett_luce(dataset, metric, scope="all-instances", instance=None, num_samples=400, prior_alpha=1.0, seed=42) -> BayesianPlackettLuceResult
Power, Sensitivity (MDES) & Equivalence (TOST)¶
minimum_detectable_effect(n, target_power=0.80, alpha=0.05, paired=False) -> floattost(x1, x2, low_eqbound, high_eqbound=None, alpha=0.05, paired=False, equal_var=False, ...) -> TOSTResult
Extensibility & Python Plugins (saes.plugins / saes.PluginRegistry)¶
saes.plugins.discover(force=False) -> list[PluginManifest]— Discover installedentry_points(saes.tests,saes.renderers,saes.plotters,saes.plugins).saes.plugins.list_installed() -> list[PluginManifest]— List active SAES domain plugins.saes.plugins.get(plugin_id) -> SAESPlugin/saes.plugins.get_namespace(plugin_id) -> Any— Access a plugin instance or its Python API namespace.saes.plugins.register(plugin)/saes.plugins.unregister(plugin_id)— Programmatic runtime registration.
3. Auto-Generated Module Documentation¶
Top-Level API (saes.api)¶
Public API surface for SAES library.
load
¶
Load a CSV dataset into a SAES Dataset object.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
source
|
Any
|
Filepath or file-like buffer. |
required |
Returns:
| Type | Description |
|---|---|
Dataset
|
Dataset entity. |
validate
¶
Validate dataset structure, schema, and types.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
dataset
|
Dataset
|
Dataset instance. |
required |
Returns:
| Type | Description |
|---|---|
ValidationReport
|
ValidationReport object. |
Source code in src/saes/api.py
explore
¶
explore(dataset: Dataset, metrics: list[str] | None = None, algorithms: list[str] | None = None, instances: list[str] | None = None, alpha: float = 0.05) -> DataExplorationResult
Explore dataset observations, reveal multi-metric tables, check normality, and get test recommendations.
Source code in src/saes/api.py
analyze
¶
analyze(dataset: Dataset, alpha: float = 0.05, generate_plots: bool = True, paired: bool = False) -> AnalysisReport
Run comprehensive automated statistical analysis across dataset.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
dataset
|
Dataset
|
Validated Dataset instance. |
required |
alpha
|
float
|
Significance level (default 0.05). |
0.05
|
generate_plots
|
bool
|
Whether to generate distribution boxplots (default True). |
True
|
paired
|
bool
|
Whether per-instance observations are explicitly statistically paired (e.g., identical CV folds or Common Random Numbers). Defaults to False. |
False
|
Returns:
| Name | Type | Description |
|---|---|---|
AnalysisReport |
AnalysisReport
|
Comprehensive report of all statistical tests and plots. |
Source code in src/saes/api.py
generate_table
¶
generate_table(dataset: Dataset, metric: str | None = None, table_type: str = 'instance_algorithm', test_type: str = 'auto', posthoc_correction: str = 'holm', summary_stat: str = 'auto', reference_algorithm: str | None = None, scope: str = 'all-instances', selected_instance: str | None = None, algorithms_filter: list[str] | None = None, instances_filter: list[str] | None = None, alpha: float = 0.05, precision: int = 4, latex_document_mode: str = 'standalone', latex_notation: str = 'scientific', paired: bool = False) -> StatisticalTableResult
Generate a publication-grade ANOVA, Friedman, Wilcoxon, or Pairwise statistical benchmark table.
Source code in src/saes/api.py
export_table
¶
export_table(table_result: StatisticalTableResult, export_format: str = 'latex', document_mode: str | None = None, notation: str | None = None, title: str | None = None, caption: str | None = None, pdf_theme: str = 'slate', pdf_orientation: str = 'landscape', pdf_font_size: float = 8.5, pdf_highlight_best: bool = True, pdf_show_zebra: bool = True, pdf_grid_style: str = 'full') -> bytes
Export a generated StatisticalTableResult to LaTeX, CSV, Markdown, HTML, DOCX, or PDF bytes.
Source code in src/saes/api.py
plot
¶
plot(dataset: Dataset, plot_type: str = 'boxplot', metric: str | None = None, instance: str | None = None, interactive: bool = False, **kwargs: Any) -> Any
Generate a publication-grade figure directly from a SAES Dataset.
Supported plot_type values
- 'boxplot': Quartile box plot with centered observations
- 'violin': Kernel density + internal box plot
- 'critical-distance': Demšar (2006) Friedman + Nemenyi CD diagram
- 'bayesian-rank': Dirichlet Process posterior rank distribution & ROPE
- 'barplot', 'ecdf', 'lineplot', 'scatter'
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
dataset
|
Dataset
|
SAES Dataset object. |
required |
plot_type
|
str
|
Key registered in PlotterRegistry. |
'boxplot'
|
metric
|
str | None
|
Metric identifier (defaults to first metric in dataset). |
None
|
instance
|
str | None
|
Problem instance identifier (defaults to first instance for cell plots). |
None
|
interactive
|
bool
|
If True, returns a Plotly Figure; otherwise returns a Matplotlib Figure. |
False
|
**kwargs
|
Any
|
Additional styling parameters (paper_format='golden'|'single-col'|..., palette, alpha, etc.). |
{}
|
Returns:
| Type | Description |
|---|---|
Any
|
matplotlib.figure.Figure or plotly.graph_objects.Figure. |
Source code in src/saes/api.py
export_plot
¶
export_plot(dataset: Dataset, plot_type: str = 'boxplot', metric: str | None = None, instance: str | None = None, export_format: str = 'png', dpi: int = 300, **kwargs: Any) -> tuple[bytes, str, str]
Generate and export a publication-grade plot as PNG, SVG, or PDF bytes.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
dataset
|
Dataset
|
SAES Dataset object. |
required |
plot_type
|
str
|
Key registered in PlotterRegistry. |
'boxplot'
|
metric
|
str | None
|
Metric identifier (defaults to first metric in dataset). |
None
|
instance
|
str | None
|
Problem instance identifier (defaults to first instance for cell plots). |
None
|
export_format
|
str
|
Target format ('png', 'svg', or 'pdf'). |
'png'
|
dpi
|
int
|
Resolution in dots per inch for raster formats (default 300). |
300
|
**kwargs
|
Any
|
Additional plotting parameters passed to |
{}
|
Returns:
| Type | Description |
|---|---|
tuple[bytes, str, str]
|
Tuple of (file_bytes, media_type, extension). |
Source code in src/saes/api.py
compute_performance_profiles
¶
compute_performance_profiles(dataset: Dataset, metric: str | None = None, alpha: float = 0.05, max_tau: float | None = None, num_tau_points: int = 60, paired: bool = False, posthoc_correction: str = 'holm') -> PerformanceProfilesResult
Compute Dolan-Moré performance profiles and multiplicity-adjusted Win/Tie/Loss meta-ranking.
Reference
Dolan, E. D., & Moré, J. J. (2002). Benchmarking optimization software with performance profiles. Mathematical Programming, 91(2), 201-213.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
dataset
|
Dataset
|
Validated SAES Dataset. |
required |
metric
|
str | None
|
Evaluation metric identifier (defaults to first metric). |
None
|
alpha
|
float
|
Statistical significance threshold for Win/Tie/Loss comparisons. |
0.05
|
max_tau
|
float | None
|
Optional upper bound for performance ratio tau. |
None
|
num_tau_points
|
int
|
Number of evaluation points along the tau axis. |
60
|
paired
|
bool
|
Whether per-instance runs are explicitly paired across algorithms (default False -> Mann-Whitney U; True -> Wilcoxon Signed-Rank when equal lengths). |
False
|
posthoc_correction
|
str
|
Multiple-testing p-value adjustment applied to the Win/Tie/Loss comparisons within each instance (default 'holm'). |
'holm'
|
Returns:
| Type | Description |
|---|---|
PerformanceProfilesResult
|
PerformanceProfilesResult with curves, W/T/L matrix, and meta-rankings. |
Source code in src/saes/stats/profiles.py
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 | |
analyze_statistical_power
¶
analyze_statistical_power(dataset: Dataset, metric: str | None = None, alpha: float = 0.05, target_power: float = 0.8, target_effect_size: float = 0.5, paired: bool = False) -> PowerAnalysisResult
Run full a priori power planning, sensitivity (MDES) analysis, and design audit.
Source code in src/saes/stats/power.py
tost
¶
tost(x1: ndarray, x2: ndarray, low_eqbound: float, high_eqbound: float | None = None, alpha: float = 0.05, paired: bool = False, equal_var: bool = False, group_1: str = 'Algorithm A', group_2: str = 'Algorithm B') -> TOSTResult
Run Two One-Sided Tests (TOST) for statistical equivalence (Schuirmann 1987; Lakens 2017).
Source code in src/saes/api.py
compute_minimum_detectable_effect
¶
compute_minimum_detectable_effect(n: int, target_power: float = 0.8, alpha: float = 0.05, paired: bool = False) -> float
Compute the Minimum Detectable Effect Size (MDES, Cohen's d) for a fixed sample size n.
Solves calculate_statistical_power(n, d, alpha=alpha, paired=paired) = target_power
via Brent root-finding. Provides a valid sensitivity analysis without the observed-power fallacy.
Source code in src/saes/stats/power.py
generate_reproducibility_artifacts
¶
generate_reproducibility_artifacts(dataset: Dataset, metric: str | None = None, alpha: float = 0.05, filename: str = 'dataset.csv', raw_csv: str | None = None) -> ReproducibilityResult
Generate complete reproducibility pack: Python script, Jupyter notebook, and FAIR manifest.
Source code in src/saes/reports/reproducibility.py
Statistical Namespace (saes.api.StatisticsNamespace)¶
Programmatic statistical test API namespace (saes.statistics.*).
ttest_ind
staticmethod
¶
ttest_welch
staticmethod
¶
Welch's two-sample independent t-test (unequal variances).
ttest_rel
staticmethod
¶
wilcoxon
staticmethod
¶
Wilcoxon Signed-Rank paired non-parametric test.
mann_whitney
staticmethod
¶
Mann-Whitney U (Wilcoxon Rank-Sum) independent non-parametric test.
brunner_munzel
staticmethod
¶
Brunner-Munzel (2000) non-parametric Behrens-Fisher test for stochastic equality.
kruskal
staticmethod
¶
Kruskal-Wallis H multi-group non-parametric omnibus test.
anova_oneway
staticmethod
¶
anova_welch
staticmethod
¶
vargha_delaney_a12
staticmethod
¶
Compute Vargha-Delaney A12 non-parametric effect size and magnitude.
vargha_delaney_a12_ci
staticmethod
¶
vargha_delaney_a12_ci(x1: ndarray, x2: ndarray, maximize: bool = True, alpha: float = 0.05) -> tuple[float, str, tuple[float, float]]
Compute Vargha-Delaney A12 with Brunner-Munzel asymptotic confidence interval.
Source code in src/saes/api.py
cliffs_delta
staticmethod
¶
Compute Cliff's delta non-parametric effect size and magnitude.
cliffs_delta_ci
staticmethod
¶
cliffs_delta_ci(x1: ndarray, x2: ndarray, maximize: bool = True, alpha: float = 0.05) -> tuple[float, str, tuple[float, float]]
Compute Cliff's delta with Brunner-Munzel range-preserving confidence interval.
Source code in src/saes/api.py
cohens_d_ci
staticmethod
¶
cohens_d_ci(d: float, n1: int, n2: int | None = None, alpha: float = 0.05, paired: bool = False, hedges_correction: bool = False) -> tuple[float, float]
Compute exact noncentral-t confidence interval for Cohen's d or Hedges' g.
Source code in src/saes/api.py
eta_squared_ci
staticmethod
¶
eta_squared_ci(f_stat: float, df_between: float, df_within: float, alpha: float = 0.05) -> tuple[float, float]
Compute exact noncentral-F confidence interval for ANOVA Eta-squared.
Source code in src/saes/api.py
effect_size_forest
staticmethod
¶
effect_size_forest(dataset: Dataset, metric: str, scope: str = 'single-instance', instance: str | None = None, reference_algorithm: str | None = None, alpha: float = 0.05, paired: bool = False, p_adjust: str = 'holm') -> EffectSizeForestResult
Compute pairwise standardized effect sizes (d, g, A12, Cliff's delta) with 95% CIs vs reference.
Source code in src/saes/api.py
adjust_pvalues
staticmethod
¶
Adjust p-values for multiple comparisons (Holm, Bonferroni, Hochberg, Hommel, Finner, Rom, Li, FDR).
adjust_pvalues_shaffer
staticmethod
¶
Apply Shaffer's (1986) static multiple-comparison adjustment to a symmetric k x k p-value matrix.
adjust_pvalues_bergmann_hommel
staticmethod
¶
adjust_pvalues_bergmann_hommel(p_matrix: ndarray, max_exact_k: int = 9) -> tuple[np.ndarray, list[str]]
Apply exact Bergmann-Hommel (1988) exhaustive adjustment to a symmetric k x k p-value matrix.
Source code in src/saes/api.py
tukey_hsd
staticmethod
¶
Tukey's Honestly Significant Difference (HSD) parametric all-pairs post-hoc test.
games_howell
staticmethod
¶
Games-Howell heteroscedastic all-pairs post-hoc test (after Welch's ANOVA).
dunnett
staticmethod
¶
Dunnett's many-to-one post-hoc comparison against a control group.
dunn
staticmethod
¶
Dunn's (1964) non-parametric all-pairs post-hoc test (after Kruskal-Wallis).
Source code in src/saes/api.py
conover_iman
staticmethod
¶
conover_iman(groups: dict[str, ndarray], alpha: float = 0.05, p_adjust: str = 'holm') -> PostHocResult
Conover-Iman (1979) non-parametric all-pairs post-hoc test (after Kruskal-Wallis).
Source code in src/saes/api.py
table
staticmethod
¶
table(dataset: Dataset, metric: str | None = None, table_type: str = 'instance_algorithm', test_type: str = 'auto', posthoc_correction: str = 'holm', summary_stat: str = 'auto', reference_algorithm: str | None = None, scope: str = 'all-instances', selected_instance: str | None = None, algorithms_filter: list[str] | None = None, instances_filter: list[str] | None = None, alpha: float = 0.05, precision: int = 4, paired: bool = False) -> StatisticalTableResult
Generate a statistical benchmark table (instance_algorithm, pairwise_matrix, omnibus_posthoc).
Source code in src/saes/api.py
explore
staticmethod
¶
explore(dataset: Dataset, metrics: list[str] | None = None, algorithms: list[str] | None = None, instances: list[str] | None = None, alpha: float = 0.05) -> DataExplorationResult
Explore dataset distributions, reveal multi-metric pivots, and recommend statistical tests.
Source code in src/saes/api.py
shapiro
staticmethod
¶
Check normality assumption via Shapiro-Wilk test.
lilliefors
staticmethod
¶
Check normality assumption via Lilliefors-corrected Kolmogorov-Smirnov test.
anderson
staticmethod
¶
Check normality assumption via Anderson-Darling test (Stephens 1974).
levene
staticmethod
¶
Check homogeneity of variance assumption via Levene's test.
friedman_nemenyi
staticmethod
¶
friedman_nemenyi(dataset: Dataset, metric: str, alpha: float = 0.05, scope: str = 'all-instances', instance: str | None = None) -> CriticalDistanceResult
Friedman non-parametric rank test with Nemenyi post-hoc Critical Distance (CD).
Source code in src/saes/api.py
friedman_aligned_ranks
staticmethod
¶
friedman_aligned_ranks(dataset: Dataset, metric: str, alpha: float = 0.05, scope: str = 'all-instances', instance: str | None = None) -> BlockedOmnibusResult
Friedman Aligned-Ranks omnibus test across benchmark blocks (Hodges & Lehmann 1962; García et al. 2010).
Source code in src/saes/api.py
quade
staticmethod
¶
quade(dataset: Dataset, metric: str, alpha: float = 0.05, scope: str = 'all-instances', instance: str | None = None) -> BlockedOmnibusResult
Quade weighted-block non-parametric omnibus test (Quade 1979; García et al. 2010).
Source code in src/saes/api.py
rm_anova
staticmethod
¶
rm_anova(dataset: Dataset, metric: str, alpha: float = 0.05, scope: str = 'all-instances', instance: str | None = None, greenhouse_geisser: bool = True) -> BlockedOmnibusResult
One-way Repeated-Measures ANOVA across matched blocks with Greenhouse-Geisser sphericity correction.
Source code in src/saes/api.py
bayesian_ranking
staticmethod
¶
bayesian_ranking(dataset: Dataset, metric: str, scope: str = 'all-instances', instance: str | None = None, rope_percent: float = 1.0, rope: float | None = None, prior_strength: float = 1.0, num_samples: int = 1500, algo_a: str | None = None, algo_b: str | None = None, method: str = 'signed-rank') -> BayesianRankResult
Bayesian Signed-Rank / Sign-Test Simplex (ROPE) and Posterior Ranking test (Benavoli et al. 2017).
Source code in src/saes/api.py
bayesian_sign
staticmethod
¶
bayesian_sign(dataset: Dataset, metric: str, scope: str = 'all-instances', instance: str | None = None, rope_percent: float = 1.0, rope: float | None = None, prior_strength: float = 1.0, num_samples: int = 1500, algo_a: str | None = None, algo_b: str | None = None) -> BayesianRankResult
Bayesian Sign Test Simplex (ROPE) (Benavoli et al. 2017).
Source code in src/saes/api.py
bayesian_signed_rank
staticmethod
¶
bayesian_signed_rank(dataset: Dataset, metric: str, scope: str = 'all-instances', instance: str | None = None, rope_percent: float = 1.0, rope: float | None = None, prior_strength: float = 1.0, num_samples: int = 1500, algo_a: str | None = None, algo_b: str | None = None) -> BayesianRankResult
Bayesian Signed-Rank Test Simplex (ROPE) (Benavoli et al. 2017).
Source code in src/saes/api.py
bayesian_correlated_ttest
staticmethod
¶
bayesian_plackett_luce
staticmethod
¶
bayesian_plackett_luce(dataset: Dataset, metric: str, scope: str = 'all-instances', instance: str | None = None, num_samples: int = 400, prior_alpha: float = 1.0, seed: int = 42) -> BayesianPlackettLuceResult
Bayesian Plackett-Luce multi-algorithm ranking model (Calvo et al. 2018).
Source code in src/saes/api.py
minimum_detectable_effect
staticmethod
¶
minimum_detectable_effect(n: int, target_power: float = 0.8, alpha: float = 0.05, paired: bool = False) -> float
Compute Minimum Detectable Effect Size (MDES, Cohen's d) for a fixed sample size n.
Source code in src/saes/api.py
tost
staticmethod
¶
tost(x1: ndarray, x2: ndarray, low_eqbound: float, high_eqbound: float | None = None, alpha: float = 0.05, paired: bool = False, equal_var: bool = False, group_1: str = 'Algorithm A', group_2: str = 'Algorithm B') -> TOSTResult
Two One-Sided Tests (TOST) procedure for statistical equivalence (Schuirmann 1987; Lakens 2017).
Source code in src/saes/api.py
Key Domain Result Models (saes.domain.models)¶
Domain data models, canonical benchmark records, and immutable result objects for SAES.
StatisticalResult
¶
Bases: BaseModel
Immutable structured result of a statistical analysis test.
summary
¶
Return a concise human-readable statistical summary.
Source code in src/saes/domain/models.py
to_dataframe
¶
Convert test result into a single-row tidy pandas DataFrame.
Source code in src/saes/domain/models.py
PostHocResult
¶
Bases: BaseModel
Structured result of a parametric or non-parametric post-hoc multiple-comparisons procedure.
to_dataframe
¶
summary
¶
Return formatted text summary of post-hoc comparisons.
Source code in src/saes/domain/models.py
TOSTResult
¶
Bases: BaseModel
Result of a Two One-Sided Tests (TOST) equivalence procedure (Schuirmann 1987; Lakens 2017).
summary
¶
Return concise text summary of the TOST equivalence test.
Source code in src/saes/domain/models.py
BlockedOmnibusResult
¶
CriticalDistanceResult
¶
Bases: BaseModel
Result of Friedman omnibus test, Iman-Davenport F, and Nemenyi Critical Distance (CD).
to_dataframe
¶
summary
¶
Return concise text summary of Friedman + Nemenyi results.
Source code in src/saes/domain/models.py
BayesianRankResult
¶
Bases: BaseModel
Result of Bayesian Non-Parametric Signed-Rank / Sign-Test Simplex (ROPE) & Posterior Ranking test.
to_dataframe
¶
Return posterior algorithm rank summary as a tidy pandas DataFrame.
Source code in src/saes/domain/models.py
summary
¶
Return concise text summary of Bayesian Simplex ROPE results.
Source code in src/saes/domain/models.py
BayesianPlackettLuceResult
¶
Bases: BaseModel
Result of a Bayesian Plackett-Luce multi-algorithm ranking model (Calvo et al. 2018).
to_dataframe
¶
summary
¶
Return concise text summary of Bayesian Plackett-Luce posterior rankings.
Source code in src/saes/domain/models.py
BayesianCorrelatedTResult
¶
EffectSizeForestResult
¶
Bases: BaseModel
Structured forest-plot comparison of standardized effect sizes with confidence intervals.
to_dataframe
¶
summary
¶
Return concise text summary of pairwise effect sizes vs reference.
Source code in src/saes/domain/models.py
PowerAnalysisResult
¶
Bases: BaseModel
Complete statistical power analysis, sensitivity (MDES), and experimental sample size planning.
summary
¶
Return a concise human-readable summary of power planning and sensitivity (MDES).
Source code in src/saes/domain/models.py
to_dataframe
¶
Return a priori sample size recommendations as a tidy pandas DataFrame.
DataExplorationResult
¶
Bases: BaseModel
Complete response for dataset exploration, multi-metric reveal, normality profiling, and test recommendations.