官术网_书友最值得收藏!

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 so 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 improve the model interpretability.

The mathematics behind the reason that the L1-norm allows the weights/coefficients to become zero is beyond the scope of this book (refer to Tibsharini, 1996 for further details).

If LASSO is so great, then ridge regression must be obsolete in machine learning. Not so fast! In a situation of high collinearity or high pairwise correlations, LASSO may force a predictive feature to zero, hence you can lose the predictive ability; that is, 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 worlds and that leads us to the next topic, elastic net.

主站蜘蛛池模板: 栾川县| 和龙市| 正定县| 牙克石市| 禄劝| 余干县| 库尔勒市| 会昌县| 中方县| 昂仁县| 措美县| 青铜峡市| 紫金县| 武山县| 永吉县| 汝州市| 宜州市| 旬邑县| 贵州省| 扎囊县| 西和县| 平乐县| 公安县| 新安县| 拜泉县| 哈尔滨市| 屏边| 赤壁市| 荆州市| 和顺县| 嵩明县| 开封县| 滦南县| 大悟县| 霸州市| 陆丰市| 吴桥县| 庆安县| 神木县| 开封市| 吴堡县|