Skip to main content

moabbr

MOABB interface to tombolo for analysis of machine learning benchmarks in R.

MOABB evaluation results are a pandas DataFrame with one row per pipeline/dataset/subject/session. moabbr transforms evaluation results, then calls tombolo 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

result = nma(results)    # frequentist NMA via netmeta
result = 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.

Metadata

Release files for moabbr 0.1.2

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

Source distribution (sdist)

Source distribution for moabbr 0.1.2
File Size Uploaded
moabbr-0.1.2.tar.gz 687.4 kB Details

Built distribution (wheel)

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

Total release size: 692.6 kB

Release files / moabbr-0.1.2.tar.gz

Download URL moabbr-0.1.2.tar.gz
Size 687.4 kB
Tags Source
SHA-256 checksum
How to use checksums
6f8c9a2040030126539a580ab8b9e48d79100bd31672fa8526e124dcf5493a72
BLAKE2b-256 checksum
How to use checksums
e4fe67306bc7eb88d8bf939e38bcda75e175e80b6fecd21ce4801a9cb2e30499
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Release files / moabbr-0.1.2-py3-none-any.whl

Download URL moabbr-0.1.2-py3-none-any.whl
Size 5.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f6db0983cf887891068c3c2b8f00a099cb3447fd6461c98a52d6c338e131fc70
BLAKE2b-256 checksum
How to use checksums
5d299718abf72c70f183ee225ed23028e0c2d5b7a782c0be5c107be727534906
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.2

2 release files

0.0.1

1 release file

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