This release is a pre-release and may not be stable for production use.
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
Metadata
Release files for bossanova 0.1.0.dev27
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| bossanova-0.1.0.dev27.tar.gz | 620.0 kB | Without provenance | Details for bossanova-0.1.0.dev27.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| bossanova-0.1.0.dev27-py3-none-any.whl | Python 3 | none | any | Details for bossanova-0.1.0.dev27-py3-none-any.whl |
Total release size: 1.4 MB
Release files / bossanova-0.1.0.dev27.tar.gz
| Download URL | bossanova-0.1.0.dev27.tar.gz |
|---|---|
| Size | 620.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
23618736b5de38168dc36b0ab57c7567a0e66a6bf721622fd6046a1d375cfb8e
|
|
BLAKE2b-256 checksum How to use checksums |
09ae6b4e08c04e66148ea7f5d5b49bf1adaee739473ac4e82c838b71d14b8c36
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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}
|
Release files / bossanova-0.1.0.dev27-py3-none-any.whl
| Download URL | bossanova-0.1.0.dev27-py3-none-any.whl |
|---|---|
| Size | 766.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
07b96d59837e7e0dd02332447eff143dbfaf73fdf560ce7a3d9ab0dd817b0c29
|
|
BLAKE2b-256 checksum How to use checksums |
b32703ce555b4b2615ccdf9a72de1614ab740cd5fe75353be0782a2065e4561c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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}
|
Security for bossanova 0.1.0.dev27
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.