mixedbench
A benchmark of posterior approximation and prediction for generalized linear mixed models (GLMMs) on real grouped data.
What and why
- Bayesian methods for GLMMs are hard to compare: each paper and released method tests them on its own few datasets. This benchmark aims to fix that.
- mixedbench lists the documented mixed-effects models of 641 public tabular datasets with grouping structure, each downloaded at a fixed version.
- A fixed set of rules turns each dataset into an inference problem ready to fit. Results of different methods are comparable.
- From release 1.1, suites add reference posteriors to score against.
Install
pip install mixedbench
No R needed: every dataset loads in Python.
Quickstart
from pathlib import Path
from mixedbench import suite
# fetched from CRAN at its pin and checked against suite 1.1's list; later calls are offline
problem = suite.load('lme4/sleepstudy/1', Path('cache'))
Check out the demo for a friendly introduction.
Contents
- The package
mixedbench:suite(a problem by its id, in one call),registry(the registry files, summarised inSUMMARY.md),datasets(the loader) andcontract(Problem,materialise,load). suite/1.1/candidates.csv: the candidate problems of suite 1.1 with their contract hashes;refused.csv: the rows left out, each with its reason.survey/: the pipeline that built the registry and its record; provenance, not needed to use the package.
Contributing
Interested in becoming part of mixedbench? Check out CONTRIBUTING.md.
Citing
Please cite the release you used: CITATION.cff, or click "Cite this repository" on
GitHub. All versions share the DOI 10.5281/zenodo.23285683.
Licence
Metadata
Release files for mixedbench 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mixedbench-1.0.3.tar.gz | 445.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mixedbench-1.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 899.2 kB
Release files / mixedbench-1.0.3.tar.gz
| Download URL | mixedbench-1.0.3.tar.gz |
|---|---|
| Size | 445.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ef92c92f4492ab095350d656045da927d28b33f97bcb74de926e0b7b60e2622e
|
|
BLAKE2b-256 checksum How to use checksums |
e93a4e0a970cfce539920d2219fe60a2e02e9040e9bbdd2927ff7205e7e66774
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 10, 2026.
Transparency logRelease files / mixedbench-1.0.3-py3-none-any.whl
| Download URL | mixedbench-1.0.3-py3-none-any.whl |
|---|---|
| Size | 453.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
238dc56ba1ff3da751b2ac0639be075b26f4d7626e2361b4ba5d0d6b5adb8632
|
|
BLAKE2b-256 checksum How to use checksums |
c6a70b1f17583c1686c249247659b3fa1b25d416e813747b774234d33d4e551e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 10, 2026.
Transparency log