OptimizerCompatibleModel.optimization_model#
- OptimizerCompatibleModel.optimization_model(num_periods)[source]#
Return a PyMC model configured for
num_periodsoptimization steps.- Parameters:
- num_periods
int Number of time periods to allocate budget for (excluding any adstock warm-up; the implementation is responsible for adding
adstock_periodsextra steps when needed).
- num_periods
- Returns:
pymc.ModelA (possibly cloned) PyMC model ready for use by
BudgetOptimizer.