svmtain() is a function in MATLAB for SVM learning. The help doc is here:
http://www.mathworks.com/help/bioinfo/ref/svmtrain.html
How can I use it with a custom kernel? In the help doc, it says:
@kfun— Function handle to a kernel function. A kernel function must be of the formfunction K = kfun(U, V)The returned value,
K, is a matrix of size M-by-N, whereUandVhaveMandNrows respectively.
It mentions nothing about what U and V are and what M and N mean. I just don't know how to use it in the right format. Can anyone tell me what U and V are and what M and N mean? For example, the training data are 5-dimensional vectors and the kernel function is the sum of the length of the vectors. How can I write the kernel function?
Thank you!