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[, n_samples, ...])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_dimsGet the combined dims for all the parameters.
function_priorsGet the priors for the function.
model_configMapping from variable name to prior for the model.
prefixvariable_mappingMapping from parameter name to variable name in the model.
lookup_namedefault_priorsfunction