Hi @Alfredo_Delgado
Thanks for the update - I tried this as I was also facing a similar issue but even after rescaling the the budget splits don’t add up to the total (500K).
Here’s the code and output that I am getting. Are you facing something similar @JenniferSiwu
total_budget = 500000
channels = [‘Google_Spend’,‘Bing_Spend’,‘ASA_Spend’,‘Facebook_Spend’,‘TikTok_Spend’,‘Taboola_Spend’]
budget_per_channel = total_budget / len(channels)
initial_budget_dict = {channel: budget_per_channel for channel in channels}
response = mmm.allocate_budget_to_maximize_response(
budget=total_budget,
num_days=4,
time_granularity=“weekly”
)
allocate_spend = (
np.array(list(mmm.optimal_allocation_dict.values()))
* mmm.channel_transformer[“scaler”].scale_
)
Output:
array([148084.16420463, 12016.41390591, 2857.62798331, 58788.11413278,
7317.07505723, 6778.25850656])
The sum is 235841.6537904233
Thank you so much! Appreciate your help!