VariableLayout#

class pymc_marketing.pytensor_utils.VariableLayout(dims, coords, shape)[source]#

The non-sample layout a posterior variable was constructed with.

SharedPosterior and ConditionedModel record one per posterior variable and check every later posterior against it.

Attributes:
dimstuple of str

The non-sample dims, in storage order.

coordsdict of str to pd.Index

The labels of each labeled dim; an unlabeled dim has no entry.

shapetuple of int

The length of each dim in dims.

Methods

VariableLayout.__init__(*args, **kwargs)

Attributes

VariableLayout.coords

Alias for field number 1

VariableLayout.dims

Alias for field number 0

VariableLayout.shape

Alias for field number 2