API#
Modules#
Bass diffusion model for product adoption forecasting. |
|
A moducle with utilities for causal reasoning and discovery. |
|
CLV models and utilities. |
|
Customer Choice module. |
|
Data adaptors for PyMC-Marketing. |
|
Experimental APIs under active development. |
|
Class to store and validate keyword argument for the Hilbert Space Gaussian Process (HSGP) components. |
|
Evaluation Metrics. |
|
MLflow logging utilities for PyMC models. |
|
Marketing Mix Models (MMM). |
|
Base classes containing primitives and high-level API for model building, fitting, saving, and loading. |
|
Model configuration utilities. |
|
Functions to manipulate PyMC models as graphs. |
|
Paths for the project. |
|
Predicted Incrementality by Experimentation (PIE). |
|
Plot distributions stored in xarray.DataArray across coordinates. |
|
PyTensor utility functions. |
|
R2D2 prior for variance decomposition in regression models. |
|
Unified serialization infrastructure for pymc-marketing. |
|
Migration tool for old-format serialized models. |
|
Specialized priors that behave like the Prior class. |
|
Composable model terms for building |
|
Gaussian process model terms. |
|
Utility functions for PyMC-Marketing. |
Experimental graph-first terms#
pymc_marketing.experimental.terms provides graph-first Structural Causal Models (SCMs) and term-first optimization.
Shared primitives remain in pymc_marketing.terms, and MMM components remain in pymc_marketing.mmm.
These APIs are under active development and do not replace the stable MMM optimizer.
See the term-first optimization guide for the Problem → evaluate → solve workflow.
|
Fit, forecast, and save a Bayesian Structural Causal Model (SCM). |
|
Reference a raw, mutable named variable in the model dataset. |
|
Declare a stochastic equation without constructing any PyMC variables. |
|
Apply one configured adstock or saturation along |
|
Original-unit solution and unmodified scaled-solver diagnostics. |
|
Bind a reusable original-unit decision problem to fitted deterministic terms. |