Bridging statistical cultures with some jazz
Project description
Bossanova
Unified mixed-effects modeling in Python. JAX + NumPy backends. R/lme4 parity.
Installation
uv add bossanova
or
pip install bossanova
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 acceleration when JAX is available, NumPy fallback
- R parity — matches lme4/emmeans within f64 tolerance
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()
m.params
# Perform bootstrapped parameter inference
m.infer(how='boot')
# Explore marginal effects
m.explore("Days")
m.effects
Development
# Install dependencies
pixi install
# Install the IPython kernel (required for notebooks)
pixi run setup-kernel
# Run the full lint + type-check chain
pixi run lint
# Run fast unit tests
pixi run test
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.dev18.tar.gz
(605.5 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.dev18.tar.gz.
File metadata
- Download URL: bossanova-0.1.0.dev18.tar.gz
- Upload date:
- Size: 605.5 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 |
371dfaf391594d98ff9a1ec365a04919991c231c5be88a2705d2353c4fe8594b
|
|
| MD5 |
c61e675561a4b0ecdc602269b52eaff7
|
|
| BLAKE2b-256 |
fc98037ca78b853265df7ee9ebf3761b234d864a7f144873d73ba4d1d18a798e
|
File details
Details for the file bossanova-0.1.0.dev18-py3-none-any.whl.
File metadata
- Download URL: bossanova-0.1.0.dev18-py3-none-any.whl
- Upload date:
- Size: 751.2 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 |
a9f92194f8044632718bf8f66f4398b6f5e9c51ec024bbe95a18a3a8a2f88c55
|
|
| MD5 |
6a196022683a74fb59c4e7fa97d3598a
|
|
| BLAKE2b-256 |
7e1e1b365c9ba8bb4c014fa14e6f183d0a2192975a165876a840962ae49188ee
|