Skip to main content

ibl-bwb-eval

The evaluation contract for the IBL BrainWideBench benchmark: everything needed to build a valid submission and to score one, and nothing else. It is independent of the benchmark's training code, so it installs on a CPU-only box without torch-brain, hydra, ray or wandb.

Install

pip install ibl-bwb-eval --extra-index-url https://download.pytorch.org/whl/cpu

Without that index torch resolves from PyPI to a CUDA build, around 4 GB of NVIDIA packages the scorer never calls, so keep the flag in automated scoring environments too. uv needs --index-strategy unsafe-best-match as well, since it will not fall back to PyPI for a package found on another index.

The import name is ibl_bwb_eval:

import ibl_bwb_eval

What it gives you

import ibl_bwb_eval

ibl_bwb_eval.EVAL_RECORDING_IDS  # path to the eval session list
ibl_bwb_eval.EVAL_SEEDS          # the seeds a reported number is averaged over
ibl_bwb_eval.SELECTION_METRIC    # what model selection optimizes
ibl_bwb_eval.SUITE_TASKS         # task vocabulary, per suite

Reading the protocol or the task list costs no torch or numpy import. The task names and readout specs live in ibl_bwb_eval.tasks, the reported metrics (bits-per-spike, Poisson D²) in ibl_bwb_eval.metrics, and the write side of the submission format in ibl_bwb_eval.predictions.PredictionsWriter.

Scoring a submission

python -m ibl_bwb_eval.scoring.ts1 --pred_dir predictions/ts1 --gt_dir ground_truth/ts1
python -m ibl_bwb_eval.scoring.ts2 --pred_dir predictions/<label> --gt_dir ground_truth/ts2
python -m ibl_bwb_eval.scoring.ts3 --pred_dir predictions/<label> --gt_dir ground_truth/
# all three suites, aggregated and ranked
python -m ibl_bwb_eval.scoring.aggregation --pred_dir predictions/ --gt_dir ground_truth/

Versioning

Metric definitions and readout specs are part of published numbers, so this package is versioned as API. COSMOS_LABELS is the sharpest case: it is the column order of every TS3 pred_proba, and the TS3 scorer rejects a submission whose label_names disagree with the ground truth. Pin the version you scored with.

License

MIT.

Release files for ibl-bwb-eval 0.0.1

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

Source distribution (sdist)

Source distribution for ibl-bwb-eval 0.0.1
File Size Uploaded
ibl_bwb_eval-0.0.1.tar.gz 28.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ibl-bwb-eval 0.0.1
File Interpreter ABI Platform
ibl_bwb_eval-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 67.7 kB

Release files / ibl_bwb_eval-0.0.1.tar.gz

Download URL ibl_bwb_eval-0.0.1.tar.gz
Size 28.9 kB
Tags Source
SHA-256 checksum
How to use checksums
d566cf00bc117a4e564423dbdd509095ab58316c94c59eeac34c30996273dfd4
BLAKE2b-256 checksum
How to use checksums
66c836469f1cfcf51f011c5944186b874364b5594a1f94351c9a7c52a98a8741
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.2 {"installer":{"name":"uv","version":"0.12.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / ibl_bwb_eval-0.0.1-py3-none-any.whl

Download URL ibl_bwb_eval-0.0.1-py3-none-any.whl
Size 38.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c48fcb1693ab9014fe428e104162e66cca06ebea9f74b71722c464a2f799cc0d
BLAKE2b-256 checksum
How to use checksums
0e7b693a3944f9dcaeda301266df3f49e7369c609d8aa31d323ca2b63b702f6e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.2 {"installer":{"name":"uv","version":"0.12.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

0.1.0

2 release files

0.0.2

2 release files

This release

0.0.1 This release

2 release files

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