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, *[, ...])Call within a model context.
Reconstruct a basis from a dict.
AsymmetricGaussianBasis.function(x, ...[, dim])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.
AsymmetricGaussianBasis.to_dict([_orig])Convert the transformation to a dictionary.
Update the priors for a function after initialization.
Return a copy with default prior dims (dims=None) set to
dimsinstead.Return a copy with updated priors.
Attributes
Get the combined dims for all the parameters.
Get the priors for the function.
Mapping from variable name to prior for the model.
Get the priors for the function.
Mapping from parameter name to variable name in the model.