Bad results obtained for LS-SVM regression. Any help?
5 次查看(过去 30 天)
显示 更早的评论
Hello. Although I read many times the tutorial for this LS-SVM toolbox http://www.esat.kuleuven.be/sista/lssvmlab/ , I'm still having very bad results when I use it for regression.
Here is the code I execute:
% Initialisation of the model
model = initlssvm(X,Y,'f',[],[],'RBF_kernel','o');
% Tuning of the model, optimizing the choice of gam and sig2
model = tunelssvm(model,'simplex','crossvalidatelssvm',{10,'mae'});
% Training
model = trainlssvm(model);
% Prediction of results
Yt=simlssvm(model,Xt)
The results obtained are far different from the initial ones. I really don't understand what I do wrong. Any one help me, please ? Thank you!
2 个评论
Gustavo
2013-10-22
When you use the 'o' in initlssvm you are not normalizing the data, which is quite important in many cases for regression. Can you try without it?
SANA
2018-4-5
My results are worse, but you can try giving different values of sig2 and gam in line: model = initlssvm(X,Y,'f',[gam],[sig2],'RBF_kernel','o'); This may solve the problem. I am getting a warning: *****> In crossvalidatelssvm (line 96) In tunelssvm>simanncostfun2 (line 485) In tunelssvm>@(x)simanncostfun2(x,model,costfun,costargs) (line 168) In csa (line 79) In tunelssvm (line 168) In tunelssvm (line 132) Warning: Matrix is close to singular or badly scaled. Results may be inaccurate. RCOND = 5.551115e-17. Any idea how to fix this?
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Oceanography and Hydrology 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!