Code Monkey home page Code Monkey logo

leadingindicators's People

Contributors

yforecasting avatar

Watchers

 avatar

Forkers

jsolson4

leadingindicators's Issues

Question on lambda selection for build_lasso()

Hi Yves,

I am very appreciative of your leadingindicators package, it's coming in really handy. I have a question regarding the selection of lambda within the build_lasso function. I noticed that the cv.glmnet is conducting cross-validation to train a LASSO model with no specification for lambda. So cv.glmnet computes a sequence of lambda values to use based on the data (number of observations and number of variables). It produces both lambda.min, the value of lambda that gives the lowest mean cross-validated error and the lambda.1se, the largest value of lambda such that error is within 1 standard error of the minimum. The lambda fed into build lasso isn't called until the call to capture the coefficients, in which we capture the coefficients according to our original lambda. My question is, how come you choose to set up the function in this way? Thinking about it, maybe it's because you want to determine the accuracy of the specified lambda on the subsequent forecast, is it correct that that is the case? If so, specifying the set of lambda values to test and passing it to cv.glmnet may save a significant amount of time when searching for hyperparameters.

Curious on your thoughts about outputting the model results from 'labda.1se' and extracting those coefficients as an alternative to the specified lambda solution? Seems like it could be reasonable, but I'm sure these are things that you've thought about and thus I'd be interested in your perspective.

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.