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.

Prior.deepcopy()

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.

Prior.to_dict()

Convert the prior to dictionary format.

Prior.to_graph()

Generate a graph of the variables.

Attributes

dims

The dimensions of the variable.

distribution

The name of the PyMC distribution.

non_centered_distributions

preliz

Create an equivalent preliz distribution.

transform

The name of the transform to apply to the variable after it is created.

pymc_distribution

pytensor_transform