简体   繁体   English

R中套索、弹性网和岭回归的不同惩罚函数

[英]Different penalty functions for lasso, elastic net, and ridge regression in R

在 R 中使用正则化(如套索、脊或弹性网)时,它们是否允许我将惩罚函数更改为 Huber 或绝对值,而不是二次 L2 范数?

I think there is no package, as of right now, that allows to specify your own formula for the penalization.我认为目前还没有任何软件包可以指定您自己的惩罚公式。 There are special packages like hqreg or ncvreg that give you some other options.有一些特殊的包,如hqregncvreg ,可以为您提供一些其他选项。 The first one hqreg allows for Huber.第一个hqreg允许 Huber。 The second ncvreg allows for minimax concave penalty (MCP) and smoothly clipped absolute deviation (SCAD).第二个ncvreg允许最小最大凹惩罚 (MCP) 和平滑剪切绝对偏差 (SCAD)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM