Comments (5)
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.
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.
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.
Thank you Bayer.
It is more clear right now.
from l1qr.
Great!
from l1qr.
Related Issues (3)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from l1qr.