Censored#

class pymc_marketing.prior.Censored(distribution: InstanceOf[Prior], lower: float | InstanceOf[pt.TensorVariable] = -inf, upper: float | InstanceOf[pt.TensorVariable] = inf)[source]#

Backwards-compatible wrapper for the CensoredPrior class.

Methods

Censored.__init__(*args, **kwargs)

Initialize the CensoredPrior class with the given arguments.

Censored.create_likelihood_variable(name, ...)

Create observed censored variable.

Censored.create_variable(name)

Create censored random variable.

Censored.from_dict(data)

Create a censored distribution from a dictionary.

Censored.sample_prior([coords, name])

Sample the prior distribution for the variable.

Censored.to_dict()

Convert the censored distribution to a dictionary.

Censored.to_graph()

Generate a graph of the variables.

Attributes

dims

The dims from the distribution to censor.

lower

upper

distribution