Skip to main content

Weekly fetch CI PyPI DOI Open in Colab

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 621 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, summarized in SUMMARY.md), datasets (the loader) and contract (Problem, materialize, 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.

Planned

  • Release 1.1: suite 1.1 with reference posteriors, the metrics that score a method against them, and the scores of standard methods.
  • Release 1.2: references for the oracle and predictive tracks, more families, and the retirement of sources that went offline.
  • Later: an R loader, an "as published" prior track, and a mirror fallback for sources that go offline.

Progress is tracked in the issues.

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.

License

  • Code: Apache-2.0. Registry and suite files: CC BY 4.0.
  • The datasets keep their sources' terms and are not redistributed through MixedBench.

Metadata

Release files for mixedbench 1.0.6

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

Source distribution (sdist)

Source distribution for mixedbench 1.0.6
File Size Uploaded Provenance
mixedbench-1.0.6.tar.gz 495.7 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for mixedbench 1.0.6
File Interpreter ABI Platform
mixedbench-1.0.6-py3-none-any.whl Python 3 none any Details

Total release size: 1.0 MB

Release files / mixedbench-1.0.6.tar.gz

Download URL mixedbench-1.0.6.tar.gz
Size 495.7 kB
Tags Source
SHA-256 checksum
How to use checksums
1a1493199112d47c8fbc0590faef13194114f37a8535a592fef0e719b1c05ae3
BLAKE2b-256 checksum
How to use checksums
3b6d6da8dbf1b281386a236b2d6dada67ab5f0b9aaee0c1759a8a4d37e0cac96
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 20, 2026.

Transparency log

Release files / mixedbench-1.0.6-py3-none-any.whl

Download URL mixedbench-1.0.6-py3-none-any.whl
Size 507.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7f150cb0cc23fb03acae41746863a9dddaef82d3537a49e430f727fc0ed0ec7e
BLAKE2b-256 checksum
How to use checksums
53546772b00645f82ba1e5b1f9fe8687040b6f8f1d9251e8257fe71e532607ab
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 20, 2026.

Transparency log

Security for mixedbench 1.0.6

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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for mixedbench-1.0.6.tar.gz

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 20, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

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