claesenm / optunity

optimization routines for hyperparameter tuning
http://www.optunity.net
Other
416 stars 79 forks source link

R Example fails #77

Open Qunal opened 8 years ago

Qunal commented 8 years ago

I just installed Optunity on Windows 10 64 bit. Built the optunity package and installed it. I can see it in R Studio. My R version is 3.2.3 (2015-12-16)

When I run the example I get error

res <- cv.particle_swarm(cv, svm.rbf, logCost = c(-5, 5), logGamma = c(-5, 5), maximize = TRUE)
Error in if (is.na(port) || port == 0) { : 
  missing value where TRUE/FALSE `needed`

Any idea? image

I would not locate these lines in Wrapper/R scripts files Also the MATLAB 2015b example forever hangs on

%% print general manual and obtain list of solvers
solvers = optunity.manual();
Qunal commented 8 years ago

After some digging found launch function in comm.R. Its fails to find a port. I launched standalone.py from the command line as a server and tried to place that port number printed out in the R function. Not succeeding.

areeberg commented 7 years ago

I also got an error running the example with my data.

res <-cv.particle_swarm(cv,svm.rbf,logCost = c(-5, 5), logGamma = c(-5, 5), maximize = TRUE) Error in receive(cons$socket) : Optunity error: can't multiply sequence by non-int of type 'float'

Any solution? Thanks!