LinkSpec#
- class pymc_marketing.mmm.link.LinkSpec[source]#
Strategy object that centralises all link-dependent behaviour.
Subclasses implement the five link-specific decisions:
inverse_link()– map the linear predictor to the response scale.default_likelihood()– default likelihood prior.default_intercept()– default intercept prior.validate_target()– fit-time target checks.create_media_contribution_deterministic()– graph fortotal_media_contribution_original_scale.
Methods
LinkSpec.__init__(*args, **kwargs)Register total media contribution deterministic nodes.
Return the default intercept prior for this link.
Return the default likelihood prior for this link.
Map the linear predictor mu to the response scale.
LinkSpec.original_scale_transform(variable, ...)Transform a model variable to the original (response) scale.
Raise if likelihood is incompatible with link.
Validate that y is compatible with this link function.
Attributes
link