WeibullAdstock#
- class pymc_marketing.mmm.components.adstock.WeibullAdstock(l_max, normalize=True, kind=WeibullType.PDF, mode=ConvMode.After, priors=None, prefix=None)[source]#
Wrapper around weibull adstock function.
For more information, see
pymc_marketing.mmm.transformers.weibull_adstock().(
Source code,png,hires.png,pdf)
Methods
WeibullAdstock.__init__(l_max[, normalize, ...])WeibullAdstock.apply(x[, dims])Called within a model context.
WeibullAdstock.function(x, lam, k)WeibullAdstock.plot_curve(curve[, ...])Plot curve HDI and samples.
WeibullAdstock.plot_curve_hdi(curve[, ...])Plot the HDI of the curve.
WeibullAdstock.plot_curve_samples(curve[, ...])Plot samples from the curve.
WeibullAdstock.sample_curve(parameters[, amount])Sample the adstock transformation given parameters.
WeibullAdstock.sample_prior([coords])Sample the priors for the transformation.
WeibullAdstock.update_priors(priors)Helper to update the priors for a function after initialization.
Attributes
default_priorslookup_namemodel_configMapping from variable name to prior for the model.
prefixvariable_mappingMapping from parameter name to variable name in the model.