Basis#
- class pymc_marketing.mmm.events.Basis(priors=None, prefix=None)[source]#
Basis transformation associated with an event model.
Methods
Basis.__init__
([priors, prefix])Basis.apply
(x[, dims])Call within a model context.
Basis.plot_curve
(curve[, subplot_kwargs, ...])Plot curve HDI and samples.
Basis.plot_curve_hdi
(curve[, hdi_kwargs, ...])Plot the HDI of the curve.
Basis.plot_curve_samples
(curve[, n, rng, ...])Plot samples from the curve.
Basis.sample_curve
([parameters, days])Sample the curve of the saturation transformation given parameters.
Basis.sample_prior
([coords])Sample the priors for the transformation.
Set the dims for all priors.
Convert the transformation to a dictionary.
Basis.update_priors
(priors)Update the priors for a function after initialization.
Attributes
combined_dims
Get the combined dims for all the parameters.
function_priors
Get the priors for the function.
model_config
Mapping from variable name to prior for the model.
prefix
variable_mapping
Mapping from parameter name to variable name in the model.
lookup_name
default_priors
function