Skip to main content

CI Weekly fetch PyPI Python License 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 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 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 data keep their sources' terms: they are fetched at first use, not redistributed.

Metadata

Release files for mixedbench 1.0.4

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.4
File Size Uploaded Provenance
mixedbench-1.0.4.tar.gz 498.4 kB With provenance Details

Built distribution (wheel)

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

Total release size: 1.0 MB

Release files / mixedbench-1.0.4.tar.gz

Download URL mixedbench-1.0.4.tar.gz
Size 498.4 kB
Tags Source
SHA-256 checksum
How to use checksums
b5d84a3824b2ebbffb5f331d7d8543398e39f44b9a9162e64470e79ff9b248ce
BLAKE2b-256 checksum
How to use checksums
82b6d88da60f291d7a44c59765767b7425b4b44b27872ca93b319360a952dfb2
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 18, 2026.

Transparency log

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

Download URL mixedbench-1.0.4-py3-none-any.whl
Size 509.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cf4acb4ad486da8ee2c44cf18006fd7df2268535130316fdd715173f948f76bf
BLAKE2b-256 checksum
How to use checksums
83fa5c98f75b8715cef17faba712accf4fa1e1e6d4a0478638a187576353cbf8
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 18, 2026.

Transparency log

Security for mixedbench 1.0.4

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

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