Difference fitrkernel and fitrsvm
이전 댓글 표시
Hello,
I'm looking at the different fitr-models and I'm wondering where the difference is between the default fitrkernel and fitrsvm with gaussian kernel. Both have the same hyperparameters. Fitrkernel is a gaussian kernel model, that uses an svm as a linear regression model and fitrsvm is an svm with a gauss kernel. Isn't that redundant?
Furthermore I do not understand the exact function of the hyperparameter "KernelScale" in both models. Are there any papers explaining the parameter used in Matlab?
Best regards,
Dimitri
답변 (1개)
Don Mathis
2018년 11월 30일
0 개 추천
The basic difference is that fitrsvm fits an exact SVM model, in the sense that it uses the exact kernel function and solves the "dual" problem. fitrkernel solves the "primal" problem using an explicit finite-sized feature space, which results in an approximation of the kernel function. For large datasets, the kernel approximation can be much faster and give good enough results.
"The software divides all elements of the predictor matrix X by the value of KernelScale. Then, the software applies the appropriate kernel norm to compute the Gram matrix."
댓글 수: 1
카테고리
도움말 센터 및 File Exchange에서 Support Vector Machine Regression에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!