Coder Social home page Coder Social logo

Comments (5)

BayerSe avatar BayerSe commented on June 10, 2024

Hi,

s_max is used to prematurely stop the algorithm when s reaches s_max. In fact, s is the regularization parameter.
Does this help?

from l1qr.

mahmoudalbardan avatar mahmoudalbardan commented on June 10, 2024

thanks for the details.
However, I do not see why the regularization parameter s shows up in the prediction phase (argument of the predict function) not during training (in the fit function).
As I understand it, the regularization parameter is only used when training to estimate the coefficients, not for prediction.

Another question: if we want to access the final estimated coefficients, we can do mdl.beta[-1] ?

from l1qr.

BayerSe avatar BayerSe commented on June 10, 2024

The algorithm of Li and Zhu (2008) fits the whole path, i.e. for all values of s. Therefore, it does not show up in the fit function - the only thing you can can control is some premature stopping via s_max. When it comes to prediction you have to make a choice - for which value of s do you want to get the prediction?

mdl.beta[-1] gives you the estimate of the coefficients for the largest value of s - which should be equivalent to the unpenalized QR estimator.

from l1qr.

mahmoudalbardan avatar mahmoudalbardan commented on June 10, 2024

Thank you Bayer.
It is more clear right now.

from l1qr.

BayerSe avatar BayerSe commented on June 10, 2024

Great!

from l1qr.

Related Issues (3)

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.