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 1088 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.16

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.16
File Size Uploaded Provenance Actions
mixedbench-1.0.16.tar.gz 2.5 MB With provenance Details for mixedbench-1.0.16.tar.gz

Built distribution (wheel)

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

Total release size: 5.0 MB

Release files / mixedbench-1.0.16.tar.gz

Download URL mixedbench-1.0.16.tar.gz
Size 2.5 MB
Tags Source
SHA-256 checksum
How to use checksums
3dd6d9e9552ab0bd73d739288588264071c0c64536198c47401b466b4513ae4f
BLAKE2b-256 checksum
How to use checksums
1de42f6929a07ea0a40ddffe66ba9c1898fab4f12d1c677ee0a1ea2d925f7fdf
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 18, 2026.

Transparency log

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

Download URL mixedbench-1.0.16-py3-none-any.whl
Size 2.6 MB
Tags Python 3
SHA-256 checksum
How to use checksums
0d62d40bacaa9c7db421433c0e705ddcc2f9cb5226310333dee8526b185e00df
BLAKE2b-256 checksum
How to use checksums
da5aaff762e9f08adc8ab897f956a355c495833744843272a9ad350400c66608
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 18, 2026.

Transparency log

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

Full provenance

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

Select from 2 files

Attestation for mixedbench-1.0.16.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 18, 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