-
Notifications
You must be signed in to change notification settings - Fork 189
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Budget Allocation Percentage breakdown by channel #294
Comments
Dear LMMM Team, I want to express my sincere appreciation for the hard work you've dedicated to creating this remarkable model. It's truly impressive and has proven to be user-friendly and easy to install, unlike my previous attempt with the FB Robyn model, which I eventually abandoned due to its complexity. Discovering your model felt like a ray of sunshine after a cloudy day. To cut to the chase, I've encountered a similar issue to that of @DongHarry-Kang. I've spent considerable time experimenting with various datasets and fine-tuning for two weeks. However, I consistently obtain similar results when calling the I've included some sample outputs below: I've thoroughly examined data quality using Regardless of how I adjust the budget and cost parameters, the model consistently produces the same outcome: maintaining the same channel ratios while suggesting a higher budget allocation. Allow me to illustrate this with an example. As you can see from the investigation, the model did suggest me different and higher budget while maintaining the same channel ratios. I am so confused that why the model not reallocating the budgets as the documentation said? and keep increasing our budget instead? Here is my syntax when calling the optimizatin function: Run optimization with the parameters of choice.
Plot out pre post optimization budget allocation and predicted target variable comparison.
Thank you in advance. |
@entzyeung can you please share your code ? I too faced similar issue and I am able to resolve it. |
@shubhamgupta568 thank you for dropping by, here is the link to the notebook. |
@entzyeung I can see only 2 problems i.e the way you defined prices and budget. I am using below code to find price and budget. Please try this and let me know if this fix your issue. prices = costs / media_data.sum(axis=0) |
Thank you @shubhamgupta568 for the solution, i am running the code again now. The first run gave me the same distribution, so i am running it again. WIll keep you posted. What caused the problem? is it the dtype of the media_data? |
Hello @shubhamgupta568 , I have tried many times, and have made sure both costs, and media_data are unscaled jnp array. Here are the results: As you can see, the budget allocation percentages are the same, just the total budget is inflated a bit. I was thinking if it was the data type problem. But I have ensured they are unscaled jnp array. So i really have no clue what is happening here. Do you have any idea? I don't mind to exchange our notebooks if you want to. |
@entzyeung The changes in price and budget i suggested earlier, was to sync your prices and budget with original data. I think the reason you might be getting same distribution can be the upper and lower bound percentages. Can you try changing that too ? May be something like upper bound 2 and lower bound 0.5. |
I haven't yet set it directly. I was just using default. In the predict
function?
…On Fri, 12 Jan 2024, 06:31 Shubham Gupta, ***@***.***> wrote:
I think the reason you might be getting same distribution can be the upper
and lower bound percentages. Can you try changing that too ? May be
something like upper bound 2 and lower bound 0.5
—
Reply to this email directly, view it on GitHub
<#294 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AOQ4QA4JAZY5ZXBTNEKMYITYODKENAVCNFSM6AAAAABBEEUI46VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBYGUYDMOJXHE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@entzyeung Its part of find_optimal_budgets function. By default both of them are 0.2 |
Hello @shubhamgupta568 , here is my code:
I tried multiple sets of upper and lower pct, all of them gave me the same percentage of distribution, but if i set the upper and lower smaller than 0.2, there would be a height differences between bars, while remaining the same pct. If i set the upper and lower bigger than 0.2, the height between bars would be exactly the same. The graph below is bounds pct = 0.3 (upper bound 2 and lower bound 0.5 gives me exactly the same distributions, and same heights as the graph below too) |
Hi all -
I am currently using budget allocator from lightweight, however I noticed the Before optimization budget is not correct. Could somebody let me know why this happened? for my analysis, n_time_periods = 10
my actual channel spend breakdown is as below
<style> </style>The text was updated successfully, but these errors were encountered: