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.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ibl_bwb_eval-0.0.2.tar.gz | 31.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ibl_bwb_eval-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 71.8 kB
Release files / ibl_bwb_eval-0.0.2.tar.gz
| Download URL | ibl_bwb_eval-0.0.2.tar.gz |
|---|---|
| Size | 31.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9369312b6d376d2a389896db89124ca20e170279a12bc54dc8ed4326bc87d597
|
|
BLAKE2b-256 checksum How to use checksums |
4c7282aeaa3729e651b47886e9736486627d378d349397cdc4890308e56f8309
|
| 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.2-py3-none-any.whl
| Download URL | ibl_bwb_eval-0.0.2-py3-none-any.whl |
|---|---|
| Size | 40.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f4d731341349fe7d1aa56335b686f50361dc98d2d53bd288c3e46032038345af
|
|
BLAKE2b-256 checksum How to use checksums |
3274c8c7527d723e1d63e0c0cf7f212d8e998adafd5b4f735e867c232575134c
|
| 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}
|