Re: [R] SVM Param Tuning with using SNOW package

2009-11-18 Thread David Winsemius
On Nov 18, 2009, at 12:35 PM, Max Kuhn wrote: On Tue, Nov 17, 2009 at 6:01 PM, raluca wrote: Hello, Is the first time I am using SNOW package and I am trying to tune the cost parameter for a linear SVM, where the cost (variable cost1) takes 10 values between 0.5 and 30. I have a large

Re: [R] SVM Param Tuning with using SNOW package

2009-11-18 Thread David Winsemius
On Nov 18, 2009, at 4:21 PM, raluca wrote: Hi David, I have no idea what "magic" you did, but running exactly the same code as you, I have the same problem as before, meaning that I get results that are identical from 2 in 2, while I should get diffrent results for each value of cost1

Re: [R] SVM Param Tuning with using SNOW package

2009-11-18 Thread raluca
Hi David, I have no idea what "magic" you did, but running exactly the same code as you, I have the same problem as before, meaning that I get results that are identical from 2 in 2, while I should get diffrent results for each value of cost1 (which is a vector with 10 values running between 0.5

Re: [R] SVM Param Tuning with using SNOW package

2009-11-18 Thread Max Kuhn
On Tue, Nov 17, 2009 at 6:01 PM, raluca wrote: > > Hello, > > Is the first time I am using SNOW package and I am trying to tune the cost > parameter for a linear SVM, where the cost (variable cost1) takes 10 values > between 0.5 and 30. > > I have a large dataset and a pc which is not very powerfu

Re: [R] SVM Param Tuning with using SNOW package

2009-11-18 Thread David Winsemius
I cannot really be sure what you are trying to do, but doing a bit of "surgery" on your code lets it run on a multicore Mac: library(e1071) library(snow) library(pls) data(gasoline) X=gasoline$NIR Y=gasoline$octane NR=10 cost1=seq(0.5,30, length=NR) sv.lin<- function(c) { for (i in 1:NR)

Re: [R] SVM Param Tuning with using SNOW package

2009-11-18 Thread raluca
Hi Charlie, Yes, you are perfectly right, when I make the clusters I should put 2, not 10 (it remained 10 from previous trials with 10 slaves). cl<- makeCluster(2, type="SOCK" ) To tell the truth I do not understand very well what the 2nd parameter for clusterApplyLB() has to be. If the func

Re: [R] SVM Param Tuning with using SNOW package

2009-11-17 Thread cls59
raluca wrote: > > Hello, > > Is the first time I am using SNOW package and I am trying to tune the cost > parameter for a linear SVM, where the cost (variable cost1) takes 10 > values between 0.5 and 30. > > I have a large dataset and a pc which is not very powerful, so I need to > tune the pa

[R] SVM Param Tuning with using SNOW package

2009-11-17 Thread raluca
Hello, Is the first time I am using SNOW package and I am trying to tune the cost parameter for a linear SVM, where the cost (variable cost1) takes 10 values between 0.5 and 30. I have a large dataset and a pc which is not very powerful, so I need to tune the parameters using both CPUs of the pc