How to pass parameters to a custom kernel function in fitcsvm?

조회 수: 1 (최근 30일)
Sepp
Sepp 2016년 5월 4일
편집: Sepp 2016년 5월 4일
Hello
I'm using the fitcsvm method of Matlab for training a SVM classifier. Using the name-value pair 'KernelFunction', 'myKernel' it is possible to provide a custom kernel implementation. The kernel must be defined in a .m file in the following way
function G = kernel(U,V).
The only way I see for passing parameters to the kernel (like gamma for the Gaussian kernel) is to use global variables which is not so nice in the context of parallel execution.
Is there another possibility for passing parameters to the kernel?

답변 (0개)

카테고리

Help CenterFile Exchange에서 Statistics and Machine Learning Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by