HillShapeSaturation#
- class pymc_marketing.mmm.components.saturation.HillShapeSaturation(priors=None, prefix=None)[source]#
Hill saturation without an internal scale parameter.
This variant exposes only the shape parameters (
slopeandkappa) of the Hill function and omits the usual multiplicativebetaamplitude found inHillSaturation. It is useful when a single outer channel scaling coefficient (e.g.betain a media effect or reach-frequency effect) should capture amplitude to avoid non-identifiable products of multiple scale terms.Methods
HillShapeSaturation.__init__([priors, prefix])HillShapeSaturation.apply(x[, dims, idx])Call within a model context.
HillShapeSaturation.function(x, slope, kappa)Shape-only Hill saturation.
HillShapeSaturation.plot_curve(curve[, ...])Plot curve HDI and samples.
HillShapeSaturation.plot_curve_hdi(curve[, ...])Plot the HDI of the curve.
Plot samples from the curve.
Sample the curve of the saturation transformation given parameters.
HillShapeSaturation.sample_prior([coords])Sample the priors for the transformation.
Set the dims for all priors.
Convert the transformation to a dictionary.
Update the priors for a function after initialization.
Attributes
combined_dimsGet the combined dims for all the parameters.
default_priorsfunction_priorsGet the priors for the function.
lookup_namemodel_configMapping from variable name to prior for the model.
prefixvariable_mappingMapping from parameter name to variable name in the model.