GithubHelp home page GithubHelp logo

Comments (8)

gufengzhou avatar gufengzhou commented on May 1, 2024

hey, we're looking into this case now. it does not always occur and thus bit difficult to debug for us. we'll report back asap. also, please make sure the set_hyperBoundLocal is set correctly (right names using local_name, right bounds according to guide) and set_mediaVarName and set_mediaSpendName are set correctly

from robyn.

LeoUbbiali avatar LeoUbbiali commented on May 1, 2024

Thanks @gufengzhou .

Further context if it can help:

  • I have a 1to1 mapping between set_mediaVarName and set_mediaSpendName (aspend metric for each pressure metric)
  • adstock = 'geometric'
    EED4C5C9-9421-4626-8441-0A44B104FFDF

from robyn.

gufengzhou avatar gufengzhou commented on May 1, 2024

I think we found the root cause. What train/test split are you using/ what value do you put in set_modTrainSize? One extreme example, you have 2 years data and one media channel didnt have any spend until 2 recent months. When you set set_modTrainSize = 0.8, that media channel will only contain 0 in the training set and that causes problem in the transformation. What you can already do is set appropriate training split by looking at the plot f.plotTrainSize(T), the higher the bhatta coef the better. Basically you should avoid any channel only containing 0 in the train set. I'll push a fix to warn this condition

from robyn.

LeoUbbiali avatar LeoUbbiali commented on May 1, 2024

Yep. That's likely to be the issue. I have channel that were switched on only recently.
I'll play around with f.plotTrainSize(T) to find the best bhatta coef and comeback to you

Current train-test split
set_modTrainSize <- 0.74

from robyn.

LeoUbbiali avatar LeoUbbiali commented on May 1, 2024

I got this output with `f.plotTrainSize(T)'

I have channels with data only for the last couple of months so I'll work backwords by trying a model with data for most of the weeks (rows)
image

from robyn.

LeoUbbiali avatar LeoUbbiali commented on May 1, 2024

Issue resolved by aggregating/remove channels containing 0 in the training set.
Thank you very much

from robyn.

gufengzhou avatar gufengzhou commented on May 1, 2024

FYI, I've pushed an update to deal with/better warn about situation where some media has many 0. Please use the new version. thanks again for the great use case.

from robyn.

LeoUbbiali avatar LeoUbbiali commented on May 1, 2024

thanks. Updated and run successfully locally 🙌

from robyn.

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.