LinkSpec#

class pymc_marketing.mmm.link.LinkSpec[source]#

Strategy object that centralises all link-dependent behaviour.

Subclasses implement the five link-specific decisions:

Methods

LinkSpec.__init__(*args, **kwargs)

LinkSpec.create_media_contribution_deterministic(...)

Register total media contribution deterministic nodes.

LinkSpec.default_intercept(dims)

Return the default intercept prior for this link.

LinkSpec.default_likelihood(dims)

Return the default likelihood prior for this link.

LinkSpec.inverse_link(mu)

Map the linear predictor mu to the response scale.

LinkSpec.original_scale_transform(variable, ...)

Transform a model variable to the original (response) scale.

LinkSpec.validate_likelihood_compatibility(...)

Raise if likelihood is incompatible with link.

LinkSpec.validate_target(y)

Validate that y is compatible with this link function.

Attributes

link