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