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