non_sample_dims#

pymc_marketing.pytensor_utils.non_sample_dims(posterior_da, *, sample_dims)[source]#

Return the non-sample dims of posterior_da in storage order.

Parameters:
  • posterior_da (DataArray) – A posterior variable.

  • sample_dims (tuple[str, ...]) – The dims that index draws, such as ("chain", "draw") or ("sample",).

Return type:

tuple of str

Returns:

Every other dim of posterior_da, in the order it is stored in.