MOABB interface to tombolo for analysis of ML benchmarks
Project description
moabbr
MOABB interface to tombolo for analysis of machine learning benchmarks.
MOABB evaluation results are a pandas DataFrame with one row per pipeline/dataset/subject/session. moabbr transforms this into the format tombolo expects using DuckDB, then calls the tombolo Docker image to run the analysis. Each dataset is treated as an independent study and each pipeline as a treatment.
Requirements
Docker must be installed and running, and the tombolo image must be pulled:
docker pull ethandavisecd/tombolo:latest
Installation
pip install moabbr
Usage
results is the pd.DataFrame returned by a MOABB evaluation, with columns dataset, pipeline, subject, and score.
from moabbr import nma, bnma
data = moabbr.nma(results) # frequentist NMA via netmeta
data = moabbr.bnma(results) # Bayesian NMA via gemtc
Both functions accept a greater_is_better flag (default True). Set to False for metrics where lower is better (e.g. error rate).
Plots
from moabbr.plots import (
ranking_plot,
league_table,
forest_plot,
heterogeneity_table,
prediction_table, # nma only
convergence_table, # bnma only
)
ranking_plot(result)
league_table(result)
forest_plot(result, reference="my_pipeline")
heterogeneity_table(result)
Each function returns a matplotlib.figure.Figure.
Project details
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 moabbr-0.1.1.tar.gz.
File metadata
- Download URL: moabbr-0.1.1.tar.gz
- Upload date:
- Size: 687.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ec9b62d444680454fe5ce715575657523ddc826dd97beed6be76d016b1c8ba6c
|
|
| MD5 |
96548403d01fde6df61f814358513a2f
|
|
| BLAKE2b-256 |
fb0a9e4be87398024ca89c1d4bc58daaff3d6a12c38e0f7bcaf89ba720742e80
|
File details
Details for the file moabbr-0.1.1-py3-none-any.whl.
File metadata
- Download URL: moabbr-0.1.1-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8c871d819027a746420c80e2297c166e68324905bf56ee7326073f8643cf4338
|
|
| MD5 |
8498b191e04b606092e8e4e8f735bfee
|
|
| BLAKE2b-256 |
3954547f519da63b0fab31c2d63c37b8e1019a852517625f22e4f9681dbe89a4
|