SVM核函数选择和调参

https://www.csie.ntu.edu.tw/~cjlin/papers/guide/guide.pdf


Andrew Ng给的建议:

n:特征的维度

m:训练集的条数

1、n相对m很大时,如n=10000,m = 10,......,1000

建议用逻辑回归或者SVM(不带核函数即线性核)

2、n比较小,m居中,如n=1-1000,m=10,......,10000

建议使用带高斯核(rbf,径向基函数)的SVM

我这边n比较小,m在十几万的样子,又没法增加标签做到线性可分,所以用第二个,高斯核

3、n比较小,m很大,如n=1-1000,m=50000+

新增更多的特征,然后使用逻辑回归或SVM(不带核函数即线性核)

    Apparently, when the number of features is very large, one may not need to map the data.That is, the nonlinear mapping does not improve the performance.Using the linear kernel is good enough, and one only searches for the parameter C.

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值