How to plot a nonlinear function in Support Vector Regression?

조회 수: 8 (최근 30일)
Sebastian Kaufmann
Sebastian Kaufmann 2017년 3월 15일
편집: Sebastian Kaufmann 2017년 3월 15일
I want to plot the solved function of the SVM Regression method. The following code works fine with a linear Kernel, but not with nonlinear Kernels like "gauss" or "polynomial":
SVMR = fitrsvm(X,y,'KernelFunction','polynomial');
Y_response =(1/(SVMR.KernelParameters.Scale))*X*SVMR.Beta+SVMR.Bias;
plot(X,Y_response,'b');
i am getting the following error: "Error using * Inner matrix dimensions must agree."
Can somebody maybe help me with this? Would be so kind.
And is the loss function the only way to get a value of the goodness of the fit in SVM regression?
Kind regards, Sebastian Kaufmann

답변 (0개)

카테고리

Help CenterFile Exchange에서 Support Vector Machine Regression에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by