AsymmetricGaussianBasis#
- class pymc_marketing.mmm.events.AsymmetricGaussianBasis(event_in='after', **kwargs)[source]#
Asymmetric Gaussian bump basis transformation.
Allows different widths (sigma_before, sigma_after) and amplitudes (a_after) after the event.
(
Source code
,png
,hires.png
,pdf
)- Parameters:
Methods
AsymmetricGaussianBasis.__init__
([event_in])AsymmetricGaussianBasis.apply
(x[, dims, idx])Call within a model context.
AsymmetricGaussianBasis.function
(x, ...)Asymmetric Gaussian bump function.
AsymmetricGaussianBasis.plot_curve
(curve[, ...])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.
AsymmetricGaussianBasis.sample_prior
([coords])Sample the priors for the transformation.
Set the dims for all priors.
Convert the asymmetric Gaussian basis to a dictionary.
Update the priors for a function after initialization.
Attributes
combined_dims
Get the combined dims for all the parameters.
default_priors
function_priors
Get the priors for the function.
lookup_name
model_config
Mapping from variable name to prior for the model.
prefix
variable_mapping
Mapping from parameter name to variable name in the model.