简体   繁体   English

sklearn 将哪个模型性能指标用于 SVR 模型?

[英]Which model performance metric is used for SVR model by sklearn?

I noticed the math for SVR states that SVR uses L1 penalty or epsilon insensitive loss function.我注意到 SVR 的数学表明 SVR 使用 L1 惩罚或 epsilon 不敏感损失函数。 But sklearn SVR model documentation mentions L2 penalty.但是 sklearn SVR 模型文档提到了 L2 惩罚。 I don't have much experience with SVR thought the community who has experience could shed some light on this.我对 SVR 没有太多经验,认为有经验的社区可以对此有所了解。

Here is the snippet from the documentation :这是文档中的片段:

C: float, default=1.0 C:浮动,默认=1.0

Regularization parameter.正则化参数。 The strength of the regularization is inversely proportional to C. Must be strictly positive.正则化的强度与 C 成反比。必须严格为正。 The penalty is a squared l2 penalty .罚分是平方l2 罚分

Check out this link:https://scikit-learn.org/stable/modules/svm.html#svm-regression .查看此链接:https ://scikit-learn.org/stable/modules/svm.html#svm-regression。 quote - Here, we are penalizing samples whose prediction is at least away from their true target引用 -在这里,我们正在惩罚预测至少远离其真实目标的样本在此处输入图像描述

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

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