Skip to main content

Scalable probabilistic impact modeling

Project description

aimz: Scalable probabilistic impact modeling

Project Status: Active – The project has reached a stable, usable state and is being actively developed. Run Pytest PyPI Conda Python License: Apache 2.0 Code style: ruff codecov DOI

Installation | Tutorial | User Guide | FAQs | Changelog

Overview

aimz is a Python library for scalable probabilistic impact modeling, enabling assessment of intervention effects on outcomes with a streamlined interface for fitting, sampling, prediction, and effect estimation—minimal boilerplate, accelerated execution, and powered by NumPyro, JAX, Xarray, and Zarr.

Features

  • Intuitive API combining the ease of use from ML frameworks with the flexibility of probabilistic modeling.
  • Accelerated computation via parallelism and distributed data.
  • Support for interventional causal inference for counterfactuals and causal effects.
  • MLflow integration for experiment tracking and model management.

Installation

Install aimz using either pip or conda:

pip install -U aimz
conda install -c conda-forge aimz

For additional details, see the full installation guide.

Usage

from aimz import ImpactModel

# Define probabilistic model (kernel) using Numpyro primitives
def model(X, y=None):
    ...

# Load or prepare data
X, y = ...

# Initialize ImpactModel
im = ImpactModel(
    model,
    rng_key=...,      # e.g., jax.random.key(0)
    inference=...,    # e.g., SVI (or MCMC)
)

# Fit model and draw posterior samples
im.fit(X, y)

# Make predictions or posterior predictive samples
dt = im.predict(X)

Contributing

See the Contributing Guide to get started.

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

aimz-0.9.1.tar.gz (46.4 kB view details)

Uploaded Source

Built Distribution

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

aimz-0.9.1-py3-none-any.whl (52.2 kB view details)

Uploaded Python 3

File details

Details for the file aimz-0.9.1.tar.gz.

File metadata

  • Download URL: aimz-0.9.1.tar.gz
  • Upload date:
  • Size: 46.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for aimz-0.9.1.tar.gz
Algorithm Hash digest
SHA256 72a9392134c92ac68584343d34b7ca1cd2d17c91c423553946f9911ceeb58336
MD5 bd6db099e1e29a32698a9bc3b6eb1360
BLAKE2b-256 68aed3051c615adaeed7cc632913cb3602188b0a500b8e7ace681ed5758a5003

See more details on using hashes here.

Provenance

The following attestation bundles were made for aimz-0.9.1.tar.gz:

Publisher: publish.yaml on markean/aimz

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file aimz-0.9.1-py3-none-any.whl.

File metadata

  • Download URL: aimz-0.9.1-py3-none-any.whl
  • Upload date:
  • Size: 52.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for aimz-0.9.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8ced4273d9aa708b979be5ed6e83b59f7e30a55a8b4412e03e7e386f6d6676ad
MD5 62eb45077280e4d4698013ce2b5ad8a1
BLAKE2b-256 3ca6bac8827dc5412481c3b9b2dccd885c6cad11d5ba545888fb6f187508d10a

See more details on using hashes here.

Provenance

The following attestation bundles were made for aimz-0.9.1-py3-none-any.whl:

Publisher: publish.yaml on markean/aimz

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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