【发布时间】:2012-12-15 20:39:43
【问题描述】:
我在 matlab 中使用带有 MLP 内核 的 svmtrain,如下所示:
mlp=svmtrain(train_data,train_label,'Kernel_Function','mlp','showplot',true);
但我收到此错误:
??? Error using ==> svmtrain at 470
Unable to solve the optimization problem:
Exiting: the solution is unbounded and at infinity;
the constraints are not restrictive enough.
是什么原因?我尝试了其他内核,没有任何错误。 甚至我尝试了svmtrain - unable to solve the optimization problem的答案如下:
options = optimset('maxiter',1000);
svmtrain(train_data,train_label,'Kernel_Function','mlp','Method','QP',...
'quadprog_opts',options);
但我又遇到了同样的错误。 我的训练集是一个简单的 2 类数据点的 45*2 数据集。
【问题讨论】: