[R] I need help for svm package kernlab in R

okabes envy721c at naver.com
Thu Sep 13 11:01:07 CEST 2012


I use the svm package kernlab .I have two question.

In R

library(kernlab)

m=ksvm(xtrain,ytrain,type="C-svc",kernel=custom function, C=10)

alpha(m)

alphaindex(m)

I can get alpha value and alpha index about package.


1.

Assumption that number of sample are 20.

number of support vectors are 15.

then rest 5`s alphas are 0? 


2. I want use kernelMatrix

 xtrain=as.matrix(xtrain)

k=KernelMatrix(custom function, xtrain)

it is k equal kernel matrix?

thanks for your attention. 

wait your reply



--
View this message in context: http://r.789695.n4.nabble.com/I-need-help-for-svm-package-kernlab-in-R-tp4642996.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list