Git Product home page Git Product logo

Comments (11)

pabloduque0 avatar pabloduque0 commented on May 2, 2024

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.

virithavanama avatar virithavanama commented on May 2, 2024

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.

pabloduque0 avatar pabloduque0 commented on May 2, 2024

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.

virithavanama avatar virithavanama commented on May 2, 2024

No, we are using complete data for optimizing as well

from lightweight_mmm.

pabloduque0 avatar pabloduque0 commented on May 2, 2024

Can you show the inputs you are passing to the function?

from lightweight_mmm.

virithavanama avatar virithavanama commented on May 2, 2024

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.

pabloduque0 avatar pabloduque0 commented on May 2, 2024

Thanks! Let me investigate this one and get back to you.

from lightweight_mmm.

pabloduque0 avatar pabloduque0 commented on May 2, 2024

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.

virithavanama avatar virithavanama commented on May 2, 2024

What if you want to predict the future and then we will not have the extra features right?

from lightweight_mmm.

pabloduque0 avatar pabloduque0 commented on May 2, 2024

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.

pabloduque0 avatar pabloduque0 commented on May 2, 2024

Discussion on #64 might be helpful as it is related to a very similar topic.

from lightweight_mmm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.