CustomModelWrapper.optimization_model#
- CustomModelWrapper.optimization_model(num_periods)[source]#
Clone
base_modeland resize the channel-data variable for optimization.- Parameters:
- num_periods
int Number of optimization periods (excluding any adstock warm-up). The model will be built with
num_periods + adstock_periodsdate steps.
- num_periods
- Returns:
pymc.ModelA cloned model ready for use by
BudgetOptimizer.