其实 ,ksvm() 的说明书说得很明白(见下面),我发现本论坛上许多R 使用者,好象是不读说明书的。我们因为对域知识知得不多因而用ML,如我们对ML也不再深入了解,我们真得不用上学就能成先知先觉了??
ksvm(x,data,.....) 或ksvm(x,y=HULL,..........)
x a symbolic description of the model to be fit. When not using a formula x can
be a matrix or vector containing the training data or a kernel matrix of class
kernelMatrix of the training data or a list of character vectors (for use with the
string kernel). Note, that the intercept is always excluded, whether given in the
formula or not.