[prev in list] [next in list] [prev in thread] [next in thread] 

List:       r-help
Subject:    Re: [R] problem with tune.svm
From:       David Meyer <meyer () ci ! tuwien ! ac ! at>
Date:       2003-10-31 23:09:54
[Download RAW message or body]



On Fri, 31 Oct 2003 ryszard.czerminski@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@stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
>


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic