Skip to main content

Weekly fetch CI PyPI DOI Open in Colab

MixedBench

A benchmark of posterior approximation and prediction for real grouped data.

What and why

  • Bayesian methods for grouped data 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 943 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.

Overview

We searched several publicly available sources for grouped tabular data. Duplicates across sources were removed. The registry contains every dataset and their documented metadata. The contract transforms each dataset into an inference problem. MixedBench currently has two tracks: the posterior track compares a method's posterior with a documented converged NUTS posterior. The predictive track does a 5-fold CV on left out rows or groups.

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'))

# the candidates with one grouping factor, random intercepts only and a passing lme4 fit of the documented model
candidates = suite.select(grouping='single', q=1, fit='lme4')

Check out the demo for a friendly introduction.

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.

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.14

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.14
File Size Uploaded Provenance Actions
mixedbench-1.0.14.tar.gz 2.2 MB With provenance Details for mixedbench-1.0.14.tar.gz

Built distribution (wheel)

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

Total release size: 4.5 MB

Release files / mixedbench-1.0.14.tar.gz

Download URL mixedbench-1.0.14.tar.gz
Size 2.2 MB
Tags Source
SHA-256 checksum
How to use checksums
a269eec3cb823061b671ba6534fbab506a7e2818408be876c3077047ba2047e9
BLAKE2b-256 checksum
How to use checksums
37604922bc7aab3d8c3f3135ba93b1074ddff95cf6d6a6fa71ee42b207a223bc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 4, 2026.

Transparency log

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

Download URL mixedbench-1.0.14-py3-none-any.whl
Size 2.3 MB
Tags Python 3
SHA-256 checksum
How to use checksums
98c70bf1dee8b7805cba720b555dbb684c676e365e77f9a764edf8d0691a70d5
BLAKE2b-256 checksum
How to use checksums
5f863d18943ed7be967b62fb34139a271da3b0eb59910941a8531c706dd05d45
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 4, 2026.

Transparency log

Security for mixedbench 1.0.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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for mixedbench-1.0.14.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 Nov 4, 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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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