Comments (11)
Hello @virithavanama !
kpi_without_optimum
runs a prediction based on historical average media data. If you would like to compare against a different baseline you can always do so.
Can you further explain what you would expect it to match against?
from lightweight_mmm.
If the total historical conversions is 48000, in the 'plot_pre_post_budget_allocation_comparison' plot preoptimized predicted target(kpi_without_optimum) is showing as 16000
from lightweight_mmm.
That is possible if your total historic data is eg. 30 weeks and you are optimizing for 10 weeks. Could that be your case? (values are relative not absolute in my example)
from lightweight_mmm.
No, we are using complete data for optimizing as well
from lightweight_mmm.
Can you show the inputs you are passing to the function?
from lightweight_mmm.
n_time_periods = 52
prices = jnp.ones(mmm.n_media_channels)
budget = jnp.sum(jnp.dot(prices, ch_mean))* n_time_periods
solution, kpi_without_optim, previous_budget_allocation = optimize_media.find_optimal_budgets(
n_time_periods=n_time_periods,
media_mix_model=mmm,
#extra_features=extra_features_test,
budget=budget,
prices=prices,
media_scaler=media_scaler,
target_scaler=target_scaler,
bounds_lower_pct=0.75,
bounds_upper_pct=jnp.array([1.5,1.5,1.5,1.5,1.5,1.44,1.5,1.5,1.5]),
seed=SEED)
from lightweight_mmm.
Thanks! Let me investigate this one and get back to you.
from lightweight_mmm.
I am not able to recreate this great discrepancies with mock data.
What is the output when passing all the extra features as well to the optimisation? I see you did not pass them. To match the output you are expecting you should in this case pass the training extra features.
from lightweight_mmm.
What if you want to predict the future and then we will not have the extra features right?
from lightweight_mmm.
Depends what those extra features are, for some (holidays, promotions, ...) you might know. For others no, you will have to estimate them or set them to zero.
However if you extra features have a high positive impact and you want to be optimising for the future without them, output will not match historic absolute values. But I would not focus too much on the absolute value of the optimisation, in this case you know you are missing certain part of the value due to those missing extra features.
from lightweight_mmm.
Discussion on #64 might be helpful as it is related to a very similar topic.
from lightweight_mmm.
Related Issues (20)
- How can I run kind of gridsearch to find the best custom priors for a hill_adstock or carryover model ?
- How can I input future media_data_test for optimization in upcoming periods? HOT 1
- How can channel-wise optimized conversions be obtained?
- Extra features
- Addressing Heteroscedasticity
- Geo level attribution and response curves
- Budget Allocation Percentage breakdown by channel HOT 10
- Question on tensorflow requirement
- Dtype object is not a valid JAX array type. Only arrays of numeric types are supported by JAX. HOT 5
- Same pre-optimization and post-optimization channel budget allocation ratios , but suggesting much higher budget instead of aligning the budget to the one i requested. HOT 10
- Paid Search bias - Nested model
- Divergences and n_eff
- Outliers and influential points
- budget allocator: How to set up lower bound and upper bound per channel?
- add got incompatible shapes for broadcasting: (95,), (90,). HOT 5
- TypeError: add got incompatible shapes for broadcasting: (58,), (54,). HOT 8
- Rendering of several plots not working! HOT 1
- Negative Values in Pre optimization predicted Target vs Post optimization predicted Target
- Budget Optimization
- RuntimeError: Cannot find valid initial parameters. Please check your model again.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lightweight_mmm.