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.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to