Mmm.allocate_budget_to_maximize_response generating weird decimal places results

Hi @JenniferSiwu

You need to rescale the values in your mmm.optimal_allocation_dict multiplying by mmm.channel_transformer["scaler"].scale_. See the example below:

allocate_spend = (
                  np.array(list(mmm.optimal_allocation_dict.values()))
                  * mmm.channel_transformer["scaler"].scale_
              )

Hope that helps!

2 Likes