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