R语言SVM如何修改最大迭代上限

Python014

R语言SVM如何修改最大迭代上限,第1张

我也遇到过很多次这个问题,尤其是再用到tune.svm的时候,这是由这个函数内部决定的。我的建议有两点:

减少tuning parameter的数量或者说范围

用Python sklearn去tune 如果非得需要用R 就python tune的差不多带回到R里直接用

希望对你有帮助!

The linear separability of the data is high. Because accuracy of both linear kernel SVM and LDA are high, while accuracy of polynomial kernel SVM with degree 3 and 6 are low.