使用multisvm增加迭代次数 [英] Increasing the number of iterations with multisvm

查看:380
本文介绍了使用multisvm增加迭代次数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在matlab中使用multisvm函数.在较小的数据集上,一切都很好.在需要的地方增加尺寸,然后出现以下错误:

I'm attempting to use the multisvm function in matlab. On a small data set, everything works great. Increase the size where I need it, and I get the following error:

使用seqminopt> seqminoptImpl时出错(第198行)未实现收敛 在最大迭代次数之内.

Error using seqminopt>seqminoptImpl (line 198) No convergence achieved within maximum number of iterations.

seqminopt中的错误(第81行)[alphas offset] = seqminoptImpl(data, targetLabels,...

Error in seqminopt (line 81) [alphas offset] = seqminoptImpl(data, targetLabels, ...

svmtrain中的错误(第499行) [alpha,bias] = seqminopt(training,groupIndex,...

Error in svmtrain (line 499) [alpha, bias] = seqminopt(training, groupIndex, ...

multisvm中的错误(第20行) models(k)= svmtrain(TrainingSet,G1vAll);

Error in multisvm (line 20) models(k) = svmtrain(TrainingSet,G1vAll);

我一直在尝试在线寻找解决方案,并发现了以下问题: http://www .mathworks.com/matlabcentral/answers/66183

I've been trying to look for a solution online and found this: http://www.mathworks.com/matlabcentral/answers/66183,

建议是因此增加最大迭代次数".问题是,这似乎并不容易做到.我有点新手,但是我试图通过浏览所有这些文件来自己解决这个问题,但没有成功.有谁知道我可以增加迭代次数并解决此问题?

where the advice is "so increase the maximum number of iterations". The problem is, this doesn't seem to be easy to do. I am somewhat of a novice, but am trying to figure this out on my own by looking through all these files, without success. Does anyone know how I can increase the number of iterations and solve this problem?

推荐答案

Svmtrain试图在例如两组.如果找不到正确的行,则会更改line的功能中的某些参数以找到正确的行,这些行将组分开并进行迭代参数的迭代.默认情况下,它尝试查找正确的行15000次.如果我们使用以下代码,则svmtrain将尝试100000次以查找更正的行.但是训练的时间自然会更长.

Svmtrain is trying to find a correct line between e.g. two groups. If it doesn't find correct line, it change some parameters in function of line to find a correct line which separated groups and make an iteration of the iteration parameter. By default it is trying to find a correct line 15000 times. If we use following code, svmtrain will try 100000 times to find a corrected line. But the time of training is naturally longer.

options.MaxIter = 100000;
my_svm_struct = svmtrain((Training, Group, 'Options', options); 

这篇关于使用multisvm增加迭代次数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆