Skip to content
Back to formatted view

Raw Message

Message-ID: <OFF43E1AD8.93143CFB-ON85256E19.004E16EB-85256E19.004E6A84@EU.novartis.net>
Date: 2004-01-12T14:15:12Z
From: ryszard.czerminski@pharma.novartis.com
Subject: tune(): how to specify a kernel ?

I would like to use tune() for tuning parameters for svm method, but it is 
not clear
to me how to specify a kernel.

I am trying to use something like this:

> obj <- tune(svm, Species~., data = iris, ranges = list(kernel = 
c('radial', 'linear')))
Error in pmatch(x, table, duplicates.ok) :
        argument is not of mode character

but it generates an error.

Ryszard