MMM.create_optimization_model#
- MMM.create_optimization_model(start_date, end_date)[source]#
Return a PyMC model configured for the given optimization window.
Builds a zero-spend dataset over
[start_date, end_date](at the model’s own date frequency) and transforms it using the same preprocessing pipeline assample_posterior_predictive(). The resulting model haschannel_dataset to zeros of the correct shape and can be passed directly toBudgetOptimizer.