DelayedAdstock#

class pymc_marketing.mmm.components.adstock.DelayedAdstock(l_max, normalize=True, mode=ConvMode.After, priors=None, prefix=None)[source]#

Wrapper around delayed adstock function.

For more information, see pymc_marketing.mmm.transformers.delayed_adstock().

(Source code, png, hires.png, pdf)

../../_images/pymc_marketing-mmm-components-adstock-DelayedAdstock-1.png

Methods

DelayedAdstock.__init__(l_max[, normalize, ...])

DelayedAdstock.apply(x[, dims])

Called within a model context.

DelayedAdstock.function(x, alpha, theta)

DelayedAdstock.plot_curve(curve[, ...])

Plot curve HDI and samples.

DelayedAdstock.plot_curve_hdi(curve[, ...])

Plot the HDI of the curve.

DelayedAdstock.plot_curve_samples(curve[, ...])

Plot samples from the curve.

DelayedAdstock.sample_curve(parameters[, amount])

Sample the adstock transformation given parameters.

DelayedAdstock.sample_prior([coords])

Sample the priors for the transformation.

DelayedAdstock.update_priors(priors)

Helper to update the priors for a function after initialization.

Attributes

default_priors

lookup_name

model_config

Mapping from variable name to prior for the model.

prefix

variable_mapping

Mapping from parameter name to variable name in the model.