check_aligned_dims#

pymc_marketing.pytensor_utils.check_aligned_dims(name, dims, layout)[source]#

Raise if dims is not the dim set the variable was constructed with.

The order is free here: align_posterior_dim() and the final transpose put the axes back in the layout’s order.

Parameters:
Raises:

ValueError – If dims and layout.dims are different sets.