Git Product home page Git Product logo

Comments (4)

pabloduque0 avatar pabloduque0 commented on May 2, 2024

@edgar-mh Thanks for opening this one!

Optimiser is always tricky as the problem itself is not easy and a lot of factors play in. Let's try to find out what is going on in your case.

Just a few follow up questions to try to rule out some things:

  • Can you confirm the sum of "previous_budget_allocation" and sum of solution.x match?
  • All your prices are ones since you are using spend, right?
  • If your media data has a ton of variance, the bounds are taken from +-X% from the mean, if that mean +X% does not reach the optimal point on your best performing channels maybe its being capped there.

Optimisers can always get somewhat stuck on a local optima but giving the numbers you showed I think this is not the case here. Im also guessing you have run it a handful times with similar results.

Typo fixing PR's are more than welcome :)

from lightweight_mmm.

edgar-mh avatar edgar-mh commented on May 2, 2024

Hi Pablo,

Thank you so much for the swift reply!

I can confirm the pre and post budgets match, I've had a few cases where those weren't in line previously 😄
The second point was spot on!
After some time debugging a previous problem, I've changed the prices to unscaled_costs.sum() / media_data.sum(axis=0) and forgot to change it back. Returning an array of ones for each media channel solved the issue.

Thank you so much for pointing me in the right direction.

I'll open that PR, but probably only on Monday since it's already a bit late for me 😅

from lightweight_mmm.

edgar-mh avatar edgar-mh commented on May 2, 2024

Ok, I had a bit more time so I did create a new local branch and tried to push, but couldn't:

19:40:37.004: [lightweight_mmm] git -c credential.helper= -c core.quotepath=false -c log.showSignature=false checkout -b fix_typos HEAD --
M	lightweight_mmm/plot.py
Switched to a new branch 'fix_typos'
19:42:05.490: [lightweight_mmm] git -c credential.helper= -c core.quotepath=false -c log.showSignature=false add --ignore-errors -A -f -- lightweight_mmm/plot.py
19:42:05.497: [lightweight_mmm] git -c credential.helper= -c core.quotepath=false -c log.showSignature=false commit -F /tmp/git-commit-msg-.txt --
[fix_typos 5225569] chore: fix typos in plot.py
 1 file changed, 16 insertions(+), 16 deletions(-)
19:42:09.064: [lightweight_mmm] git -c credential.helper= -c core.quotepath=false -c log.showSignature=false push --progress --porcelain origin refs/heads/fix_typos:refs/heads/fix_typos --set-upstream
remote: Permission to google/lightweight_mmm.git denied to edgar-mh.
fatal: unable to access 'https://github.com/google/lightweight_mmm.git/': The requested URL returned error: 403

Will look into this on Monday, but I'm assuming the way I'm using to contribute to private repos is totally different than that for public repos 😅

from lightweight_mmm.

pabloduque0 avatar pabloduque0 commented on May 2, 2024

You can check out Contributing.md for more info.

Will close this one for now but feel free to re-open.

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.