LogisticSaturation#
- class pymc_marketing.mmm.components.saturation.LogisticSaturation(priors=None, prefix=None)[source]#
Wrapper around logistic saturation function.
For more information, see
pymc_marketing.mmm.transformers.logistic_saturation().(
Source code,png,hires.png,pdf)
Methods
LogisticSaturation.__init__([priors, prefix])LogisticSaturation.apply(x[, dims])Called within a model context.
LogisticSaturation.function(x, lam, beta)LogisticSaturation.plot_curve(curve[, ...])Plot curve HDI and samples.
LogisticSaturation.plot_curve_hdi(curve[, ...])Plot the HDI of the curve.
Plot samples from the curve.
LogisticSaturation.sample_curve(parameters)Sample the curve of the saturation transformation given parameters.
LogisticSaturation.sample_prior([coords])Sample the priors for the transformation.
LogisticSaturation.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.