Mirko
Mirko

Reputation: 89

What is the maximal number of iterations in the e1071 svm() function?

I know that there is a hard coded number of maximal iterations in the e1071 svm() function, but can someone tell me how high this number is?

Upvotes: 1

Views: 592

Answers (1)

slava-kohut
slava-kohut

Reputation: 4233

SVM implementation of e1071 is an R interface to the C++ libsvm library developed by Chih-Jen Lin. The best way to figure out what iteration limit is used is to look at the source code here. Line 561 defines the iteration limit:

int max_iter = max(10000000, l>INT_MAX/100 ? INT_MAX : 100*l);

The value of INT_MAX varies from compiler to compiler, so it would be fair to say that the practical iteration limit is in most cases 10000000.

Upvotes: 2

Related Questions