Re: [R] Error using e1071 svm: NA/NaN/Inf in foreign function call

From: David Meyer <>
Date: Thu 28 Apr 2005 - 21:11:16 EST


  1. The error message you get when setting nu=0 is due to the fact that no support vectors can be found with that extreme restriction, and this confuses the predict function (try svm(...., fitted = false): the model returned is empty). In fact, the C++ code interfaced by svm() clearly allows nu = 0 and nu = 1, although these aren't sensible values. I will add a check to the R code and drop Chih-Chen Lin, the author of the C code, a message -- thanks for pointing this out.
  2. The libsvm code is not optimized for polynomial kernels and is known to perform quite badly in that case (in contrast to the RBF kernel for which it is very fast). Do you think you need the whole data set for tuning the parameters?


David mailing list PLEASE do read the posting guide! Received on Thu Apr 28 21:21:03 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:31:27 EST