base#

Base class for adstock and saturation functions used in MMM.

Use the subclasses directly for custom transformations:

Functions

create_registration_meta(subclasses)

Create a metaclass for registering subclasses.

Classes

Transformation([priors, prefix])

Base class for adstock and saturation functions.

Exceptions

DuplicatedTransformationError(name, lookup_name)

Exception when a transformation is duplicated.

MissingDataParameter()

Error if the function doesn't have a data parameter.

ParameterPriorException(priors, parameters)

Error when the functions and specified priors don't match up.