ControlEffect.set_data#
- ControlEffect.set_data(mmm, model, X)[source]#
Update control data for new predictions.
- Parameters:
- mmm
Model The MMM model instance.
- model
pm.Model The cloned PyMC model used for prediction.
- X
xr.DatasetorNone The dataset for prediction. Must contain
"_control"if the model was trained with control columns. IfNoneor"_control"is absent, this method does nothing.
- mmm