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.

Installation

uv add bossanova

or

pip install bossanova

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 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


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.dev23.tar.gz (625.7 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.dev23-py3-none-any.whl (771.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: bossanova-0.1.0.dev23.tar.gz
  • Upload date:
  • Size: 625.7 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.dev23.tar.gz
Algorithm Hash digest
SHA256 94aed01cd87a5d6d21dc095463eec53116c9f6d8f13a2b269afbae71cfdfa561
MD5 01934904d43281b97fffd11788954e83
BLAKE2b-256 b2fc83cbfaaf7a18cb05765113d18877db01631b8cf2b8be2471054fd8eb50e5

See more details on using hashes here.

File details

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

File metadata

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

Hashes for bossanova-0.1.0.dev23-py3-none-any.whl
Algorithm Hash digest
SHA256 d4be0aec7402d59ada78e4f333588d423a426070a8e38b7697c88d0189ea6be8
MD5 3cdb4d484ebd95042c16484344d2805a
BLAKE2b-256 5e3d8dbedcce692a68a62cbf7c6695117683b09e7e19bf46b8f52aa6598515e3

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