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 registry
from mixedbench.contract import Problem, load, materialise
cache = Path('cache')
[row] = [row for row in registry.rows() if row.id == 'lme4/sleepstudy/1']
table = registry.Tables(cache).load(row) # fetched from CRAN at its pin
materialise(Problem.build(row, table), cache)
problem = load('lme4/sleepstudy/1', cache) # later, offline
Check out the demo for a friendly introduction.
Contents
- The package
mixedbench: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.1
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.1.tar.gz | 407.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mixedbench-1.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 823.3 kB
Release files / mixedbench-1.0.1.tar.gz
| Download URL | mixedbench-1.0.1.tar.gz |
|---|---|
| Size | 407.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c1446a62b1047618026352fcc7191347d164b81b24b39c2c150d2bd9ae65997b
|
|
BLAKE2b-256 checksum How to use checksums |
c9c1f390366c4224b0566b3ceda0cd47c91047dd881dfd87453ff1ad9aab7763
|
| 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.1-py3-none-any.whl
| Download URL | mixedbench-1.0.1-py3-none-any.whl |
|---|---|
| Size | 416.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2447f689661891984fc0c18dcc0f083c09de693371159e2621ebb2485364ef61
|
|
BLAKE2b-256 checksum How to use checksums |
153e21a40ac8574422adb836d1203f6fe412583d9acd25cc6677b78d4846393b
|
| 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