GeometricAdstock#

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

Wrapper around geometric adstock function.

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

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

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

Methods

GeometricAdstock.__init__(l_max[, ...])

GeometricAdstock.apply(x[, dims])

Called within a model context.

GeometricAdstock.function(x, alpha)

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

Plot curve HDI and samples.

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

Plot the HDI of the curve.

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

Plot samples from the curve.

GeometricAdstock.sample_curve(parameters[, ...])

Sample the adstock transformation given parameters.

GeometricAdstock.sample_prior([coords])

Sample the priors for the transformation.

GeometricAdstock.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.