ExperimentDesigner.from_idata#
- classmethod ExperimentDesigner.from_idata(idata, saturation='logistic', adstock='geometric')[source]#
Create an ExperimentDesigner from a saved InferenceData fixture.
This constructor is useful for demos and testing when a fitted MMM object is not available. The InferenceData must contain posterior samples and metadata in
constant_data.- Parameters:
- idata
InferenceData An ArviZ InferenceData containing posterior samples with variables
saturation_lam,saturation_beta, andadstock_alpha(with achanneldimension), plusconstant_datawithcurrent_weekly_spend,residual_std,l_max, andnormalize.- saturation
str Saturation function type. Currently only
"logistic"is supported.- adstock
str Adstock function type. Currently only
"geometric"is supported.
- idata
- Returns:
ExperimentDesignerA configured designer ready for
recommend().