Skip to main content

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

moabbr-0.1.0.tar.gz (42.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

moabbr-0.1.0-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file moabbr-0.1.0.tar.gz.

File metadata

  • Download URL: moabbr-0.1.0.tar.gz
  • Upload date:
  • Size: 42.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for moabbr-0.1.0.tar.gz
Algorithm Hash digest
SHA256 02596199f8116c3ddd02344a254b533ac855833b71b92da97ac49ff4d46ceeb7
MD5 1aad82bca2f53d66a076cfa5f46dc2ed
BLAKE2b-256 2e2f03e97defc7c9db7f0467e92d1d1b884007c9db43e2f5902ed431b733fceb

See more details on using hashes here.

File details

Details for the file moabbr-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: moabbr-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for moabbr-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 45640395c447e85f7b42b1646b31e5637a57531f0e3613f147771502d6bbdfb4
MD5 9feb6df00675b567e828dbdeb8f10474
BLAKE2b-256 d0e2b1120c1a2357700774989514c224a12a3d3d35a42a829c1fb866711f5254

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page