model_builder#

Base class responsible of the high level API for model building, fitting saving and loading.

Functions

create_idata_accessor(value, message)

Create a property accessor for an InferenceData object.

create_sample_kwargs(sampler_config, ...)

Create the dictionary of keyword arguments for pm.sample.

requires_model(func)

Ensure that the model is built before calling a method.

Classes

BaseModelBuilder([model_config, sampler_config])

Base class for building models with PyMC Marketing.

ModelBuilder(data[, model_config, ...])

ModelBuilder that takes data at initialization.

ModelIO()

Mixin to handle saving and loading of models.

RegressionModelBuilder([model_config, ...])

Regression based ModelBuilder class.

Exceptions

DifferentModelError

Error raised when a model loaded is different than one saved.