GithubHelp home page GithubHelp logo

Comments (3)

gufengzhou avatar gufengzhou commented on May 2, 2024

Hi there, you're totally right about the log-linear model, which can be specified in glmnet as family = "poisson". The reason why we haven't touched this part is that first we lacked real count data for the dev at the beginning and second how to do decomp is still quite controversial. Would you elaborate your approach to decomp a multiplicative equation?

from robyn.

lorenze3 avatar lorenze3 commented on May 2, 2024

I've used different approaches. One that is surely not proprietary is something like the below, written in psuedo code for clarity, happy to re-write if not clear.

yhat=predict(X)
for thisX in X:
newX=X
newX[,thisX] = 0
thisXDecomp_step0=yhat-predict(newX)
Decomps_step0[,thisX]=thisXDecomp_step0
end

now Decomps_step0 has all step0 decomps in it, but of course the total of those may not equal yhat
Decomps_step0[,psuedoPred]=sum_across_all_step0_columns
Decomps_step1=Decomps_step0
Decomps_step1[,adjFactor]=Decomps[,psuedoPred]/yhat elementwise division, here-- adjustment factor to get total to equal original prediction

_for each _step0 column in Decomps_step1, make a step_1 column = step0*adjFactor

for step0 in Decomps_Step0:
make step1 name
Decomps_step1[,step1]=Decomps[,step0]*Decomps[,adjFactor]
end

from robyn.

gufengzhou avatar gufengzhou commented on May 2, 2024

Thanks for sharing your experience! Providing multiplicative model is on own roadmap, as well as other interesting options like Bayesian model for better calibration, state space model for time varying coefficients etc. For the moment, an update feature to help refreshing the model regularly will be coming next.

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.