Bridging statistical cultures with some jazz
Project description
Bossanova
Unified mixed-effects modeling in Python. JAX + NumPy backends. R/lme4 parity.
Quick Example
from bossanova import model, load_dataset
df = load_dataset("sleepstudy")
# Fit a mixed model
m = model("Reaction ~ Days + (1 + Days | Subject)", data=df).fit().infer()
m.params
# Explore marginal effects
m.explore("Days").infer()
m.effects
Features
- One unified entry point —
model()handles linear, generalized, and mixed-effects models - R-style formulas —
y ~ x + (1|group),factor(),center(),scale() - Multiple inference strategies — asymptotic, bootstrap, permutation, cross-validation
- Marginal effects —
.explore()for estimated marginal means, slopes, and contrasts - JAX acceleration — automatic GPU/TPU acceleration when JAX is available, NumPy fallback
- R parity — matches lme4/emmeans within f64 tolerance
Installation
pip install bossanova
Documentation
See the full documentation for tutorials, API reference, and examples.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
bossanova-0.1.0.dev7.tar.gz
(556.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bossanova-0.1.0.dev7.tar.gz.
File metadata
- Download URL: bossanova-0.1.0.dev7.tar.gz
- Upload date:
- Size: 556.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
08d5b7f68fb4917c646a530578a3488e0809590ad043d81b0476ed951589a9c0
|
|
| MD5 |
821e6f4ce29a1caa3e0da82e5a389a87
|
|
| BLAKE2b-256 |
97c268ac860be6ca9634d7e5da28b53a8264852b491350d0a498dd6f279009f1
|
File details
Details for the file bossanova-0.1.0.dev7-py3-none-any.whl.
File metadata
- Download URL: bossanova-0.1.0.dev7-py3-none-any.whl
- Upload date:
- Size: 693.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5d073b6c87833c2b53b0e7cd3f14b1143efbd0c02e426034ae9e680a6eee8ac6
|
|
| MD5 |
0acca744de91a45f7f63ad43689d1543
|
|
| BLAKE2b-256 |
c51599b0796e07dfaab7a6a9d7c91b617e72f6816fd97dc584376997ffd5ad66
|