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 941 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.15

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.15
File Size Uploaded Provenance Actions
mixedbench-1.0.15.tar.gz 2.3 MB With provenance Details for mixedbench-1.0.15.tar.gz

Built distribution (wheel)

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

Total release size: 4.8 MB

Release files / mixedbench-1.0.15.tar.gz

Download URL mixedbench-1.0.15.tar.gz
Size 2.3 MB
Tags Source
SHA-256 checksum
How to use checksums
ad26f8a1e9b571f7a0a965b60b92b6978d0b381b0119477b1acd94edfd149679
BLAKE2b-256 checksum
How to use checksums
5a0c90c799fed65f63d6a1b32ec23af2850a5f683030d172617ad306cbb9d3ce
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 6, 2026.

Transparency log

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

Download URL mixedbench-1.0.15-py3-none-any.whl
Size 2.4 MB
Tags Python 3
SHA-256 checksum
How to use checksums
66e5dd02e8c307fa786b6346ac13efe468d5e448efcffb4c126ed283f3b68efb
BLAKE2b-256 checksum
How to use checksums
d32ed67c57947b1f1a829b5363f43f60a73fa5a167973e1d4f239120f91b5710
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 6, 2026.

Transparency log

Security for mixedbench 1.0.15

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.15.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 6, 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