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 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.

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.2.tar.gz (687.4 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.2-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: moabbr-0.1.2.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

Hashes for moabbr-0.1.2.tar.gz
Algorithm Hash digest
SHA256 6f8c9a2040030126539a580ab8b9e48d79100bd31672fa8526e124dcf5493a72
MD5 c63517ac78cf8f039494fec5e4786277
BLAKE2b-256 e4fe67306bc7eb88d8bf939e38bcda75e175e80b6fecd21ce4801a9cb2e30499

See more details on using hashes here.

File details

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

File metadata

  • Download URL: moabbr-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 5.2 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f6db0983cf887891068c3c2b8f00a099cb3447fd6461c98a52d6c338e131fc70
MD5 4f9d35bcd8ef93e8bf2814db1fa334d9
BLAKE2b-256 5d299718abf72c70f183ee225ed23028e0c2d5b7a782c0be5c107be727534906

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