Skip to main content

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 pointmodel() handles linear, generalized, and mixed-effects models
  • R-style formulasy ~ 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


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.dev6.tar.gz (556.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bossanova-0.1.0.dev6-py3-none-any.whl (691.5 kB view details)

Uploaded Python 3

File details

Details for the file bossanova-0.1.0.dev6.tar.gz.

File metadata

  • Download URL: bossanova-0.1.0.dev6.tar.gz
  • Upload date:
  • Size: 556.1 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

Hashes for bossanova-0.1.0.dev6.tar.gz
Algorithm Hash digest
SHA256 afbfa9f7bd87d2239b9f23af7ad0b43064cc06c787b811cf4ef84635ec05d568
MD5 258fe7fb0ac1ff22bbdb2f6d9f13458b
BLAKE2b-256 7d35bb9787b20723a8efe261508c2468a7b0e0d190df3e584c396fa46b1dc776

See more details on using hashes here.

File details

Details for the file bossanova-0.1.0.dev6-py3-none-any.whl.

File metadata

  • Download URL: bossanova-0.1.0.dev6-py3-none-any.whl
  • Upload date:
  • Size: 691.5 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

Hashes for bossanova-0.1.0.dev6-py3-none-any.whl
Algorithm Hash digest
SHA256 4832536de13ac8a4302c7042f08c913b86091a703e6941ea31efa287be8a524b
MD5 9a158d66a43bad0fcdd2d03e82ccea11
BLAKE2b-256 47467ba7f0af8c0ebce902f36481c774d47b0b52ae56fbc18420928da5b7247d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page