e1071 svm() 函数中的最大迭代次数是多少?

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

我知道 e1071 svm() 函数中有一个硬编码的最大迭代次数,但有人能告诉我这个数字有多高吗?

e1071 的 SVM 实现是由 Chih-Jen Lin 开发的 C++ libsvm 库的 R 接口。找出使用的迭代限制的最佳方法是查看源代码 here。第 561 行定义了迭代限制:

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

INT_MAX 的值因编译器而异,因此可以公平地说,在大多数情况下,实际迭代限制是 10000000