Prior#
- class pymc_marketing.prior.Prior(*args, **kwargs)[source]#
Backwards-compatible wrapper for the Prior class.
Methods
Prior.__init__(*args, **kwargs)Initialize the Prior class with the given arguments.
Prior.constrain(lower, upper[, mass, kwargs])Create a new prior with a given mass constrained within the given bounds.
Prior.create_likelihood_variable(name, mu, ...)Create a likelihood variable from the prior.
Prior.create_variable(name)Create a PyMC variable from the prior.
Return a deep copy of the prior.
Prior.from_dict(data)Create a Prior from the dictionary format.
Prior.sample_prior([coords, name])Sample the prior distribution for the variable.
Convert the prior to dictionary format.
Generate a graph of the variables.
Attributes
dimsThe dimensions of the variable.
distributionThe name of the PyMC distribution.
non_centered_distributionsprelizCreate an equivalent preliz distribution.
transformThe name of the transform to apply to the variable after it is created.
pymc_distributionpytensor_transform