3

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?

smci
  • 32,567
  • 20
  • 113
  • 146
London guy
  • 27,522
  • 44
  • 121
  • 179

1 Answers1

1

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

AbcAeffchen
  • 14,400
  • 15
  • 47
  • 66
Massyanya
  • 2,844
  • 8
  • 28
  • 37