OptimizerCompatibleModel.optimization_model#

OptimizerCompatibleModel.optimization_model(num_periods)[source]#

Return a PyMC model configured for num_periods optimization steps.

Parameters:
num_periodsint

Number of time periods to allocate budget for (excluding any adstock warm-up; the implementation is responsible for adding adstock_periods extra steps when needed).

Returns:
pymc.Model

A (possibly cloned) PyMC model ready for use by BudgetOptimizer.