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.dev9.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.dev9.tar.gz.
File metadata
- Download URL: bossanova-0.1.0.dev9.tar.gz
- Upload date:
- Size: 556.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.27 {"installer":{"name":"uv","version":"0.9.27","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 |
f957083a2e5f4b829cbbbc010c1190a5ea5db327f59e90763aad420f382d60ae
|
|
| MD5 |
e793867cd1a8a616283ab0e294bb0a52
|
|
| BLAKE2b-256 |
5d343d6025bc99786b7c8e58f3c516a0f2ff83b7f8bfef6ca49936f14992f680
|
File details
Details for the file bossanova-0.1.0.dev9-py3-none-any.whl.
File metadata
- Download URL: bossanova-0.1.0.dev9-py3-none-any.whl
- Upload date:
- Size: 693.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.27 {"installer":{"name":"uv","version":"0.9.27","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 |
d23f8e13ff5b938d502d57480eab2c86658a77d98a7a0068a25c45076f1dcd38
|
|
| MD5 |
55ef46f1f345310f202ec01df6ac48a8
|
|
| BLAKE2b-256 |
45b17c0c0b4a15e09ef34152df19b426b6a5abf6facc622b12f088f650c61573
|