4
我使用MATLAB中svmtrain去與MLP內核這樣的:matlab中的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數據集。