运行代码的时候遇到了迭代器max值不够高的问题,反复警告影响美观,目前找不到解决方法,恳请朋友们解答!
LinearSVC(max_iter=5000) #最大迭代次数默认1000,函数无法收敛,增加迭代次数就行
将max_iter增加一些再运行试试, 碰到ConvergenceWarning的情况_瞭望的叶子的专栏-CSDN博客 出现ConvergenceWarning: Liblinear failed to converge, increase the number of iterations. "the number of iterations.", ConvergenceWarning)可尝试将max_iter增加,默认是1000 https://blog.csdn.net/a954680384/article/details/88032760