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)
- What is the best way to contribute to this library?
- INVALID_ARGUMENT: Python buffer protocol is only defined for CPU buffers. HOT 1
- In trying to plot the the response curves I get an error
- NumbaWarning: Compilation is falling back to object mode WITH looplifting enabled because Function "histogram" failed type inference due to: non-precise type pyobject During: typing of argument at /usr/local/lib/python3.10/dist-packages/arviz/stats/density_utils.py (979)
- Potential Improvments on Price and Extrafeature
- ValueError: Einstein sum subscript 'c' does not contain the correct number of indices for operand 1. HOT 1
- Priors of tested media channels HOT 3
- All predictions start with an offset HOT 1
- Kpi is smaller than spend on response curve
- GPU Performance Issues HOT 1
- Adstock Normalization
- What is budget in media optimization
- previous_extra_features data in predict function
- Not able to install the packages
- What are media_mix_model.trace["media_transformed"], media_mix_model.trace["coef_media"] ? Media Contribution Calculation Understanding HOT 6
- Model prediction decomposition HOT 2
- JAX GPU with Apple M2
- Response Curve : Adstock and Carryover models HOT 14
- Feature Names HOT 2
- RuntimeError (This version of jaxlib was built using AVX instructions) on importing `optimize_media` from `lightweight_mmm` in a conda environment on M1 mac.
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.