- Mastering Machine Learning with R(Second Edition)
- Cory Lesmeister
- 301字
- 2021-07-09 18:24:00
LASSO
LASSO applies the L1-norm instead of the L2-norm as in ridge regression, which is the sum of the absolute value of the feature weights and thus minimizes RSS + λ(sum |Bj|). This shrinkage penalty will indeed force a feature weight to zero. This is a clear advantage over ridge regression, as it may greatly improve the model interpretability.
The mathematics behind the reason that the L1-norm allows the weights/coefficients to become zero, is out of the scope of this book (refer to Tibsharini, 1996 for further details).
If LASSO is so great, then ridge regression must be clearly obsolete. Not so fast! In a situation of high collinearity or high pairwise correlations, LASSO may force a predictive feature to zero and thus you can lose the predictive ability; that is, say if both feature A and B should be in your model, LASSO may shrink one of their coefficients to zero. The following quote sums up this issue nicely:
"One might expect the lasso to perform better in a setting where a relatively small number of predictors have substantial coefficients, and the remaining predictors have coefficients that are very small or that equal zero. Ridge regression will perform better when the response is a function of many predictors, all with coefficients of roughly equal size."
-(James, 2013)
There is the possibility of achieving the best of both the worlds and that leads us to the next topic, elastic net.
- MySQL數(shù)據(jù)庫進(jìn)階實(shí)戰(zhàn)
- 從零開始學(xué)Hadoop大數(shù)據(jù)分析(視頻教學(xué)版)
- Python數(shù)據(jù)挖掘:入門、進(jìn)階與實(shí)用案例分析
- Oracle RAC 11g實(shí)戰(zhàn)指南
- 企業(yè)大數(shù)據(jù)系統(tǒng)構(gòu)建實(shí)戰(zhàn):技術(shù)、架構(gòu)、實(shí)施與應(yīng)用
- 大數(shù)據(jù)可視化
- Libgdx Cross/platform Game Development Cookbook
- Live Longer with AI
- 數(shù)據(jù)革命:大數(shù)據(jù)價(jià)值實(shí)現(xiàn)方法、技術(shù)與案例
- 數(shù)據(jù)庫技術(shù)及應(yīng)用教程
- 大數(shù)據(jù)技術(shù)入門
- Oracle PL/SQL實(shí)例精解(原書第5版)
- 信息學(xué)競賽寶典:數(shù)據(jù)結(jié)構(gòu)基礎(chǔ)
- Python數(shù)據(jù)分析與挖掘?qū)崙?zhàn)(第3版)
- Chef Essentials