[R] problem with tune.svm

David Meyer meyer at ci.tuwien.ac.at
Sat Nov 1 00:09:54 CET 2003



On Fri, 31 Oct 2003 ryszard.czerminski at pharma.novartis.com wrote:

> > rng <- list(gamma = 2^(-1:1), cost = 2^(2:4))
> > rng
> $gamma
> [1] 0.5 1.0 2.0
> 
> $cost
> [1]  4  8 16
> 
> > obj <- tune.svm(pIC50 ~ ., data = data, ranges = rng)
> Error in tune(svm, train.x = x, data = data, ranges = ranges, ...) :
>         formal argument "ranges" matched by multiple actual arguments

The function `tune.svm' has no `range' argument, use `gamma' and `cost'
separately. The idea is to make `tune.foo' a `vectorized' function of
`foo' in the parameters. If you want to preconstruct a list, use

tune(svmobj, ranges = ...)

instead.

g.,
-d

> 
> Ay idea why ???
> 
> Ryszard
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
>




More information about the R-help mailing list