Error using custom RBF Kernel
1 次查看(过去 30 天)
显示 更早的评论
I am using a rbf kernel:
function G = myrbfgauss(U,V)
sigma=1.5;
Xny = U-V;
Normxny = Xny'*Xny;
G = exp(-Normxny/(2*sigma^3));
end
With the Matlab example code found on the Machine Learning/Concepts/SVM help file under "Train SVM Classifiers Using a Custom Kernel". I replace the example's sigmoid kernel with the rbf code above and get the following error:
Error using solve Function myrbfgauss errors with the following message: Matrix dimensions must agree.
Can someone please help?
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Classification 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!