create_idata_accessor#

pymc_marketing.model_builder.create_idata_accessor(value, message)[source]#

Create a property accessor for an InferenceData object.

Underlying object must have an InferenceData object attribute named ‘idata’.

Parameters:
valuestr

The value to access in the InferenceData object.

messagestr

The error message to raise if the value is not found in the InferenceData object.

Returns:
property

The property accessor for the InferenceData object.