Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does this error mean while running the ksvm of kernlab package in R

I am calling the ksvm method of the kernlab package in R using the following syntax

svmFit = ksvm(x=solTrainXtrans, y=solTrainYSVM, kernel="stringdot", kpar="automatic", C=1, epsilon=0.1)

The x parameter is a data.frame with feature values and the y parameter is a list with various values.

I get the following error while run the above line.

Error in do.call(kernel, kpar) : second argument must be a list

What is it trying to tell me here?

like image 732
London guy Avatar asked Jan 21 '26 04:01

London guy


1 Answers

Try setting kpar = list(length = 4, lambda = 0.5)
Does it help?

like image 141
Massyanya Avatar answered Jan 22 '26 23:01

Massyanya