ConvergenceWarning: Liblinear failed to converge, increase the number of iterations

前端 未结 4 1832
Happy的楠姐
Happy的楠姐 2020-12-07 15:51

Running the code of linear binary pattern for Adrian. This program runs but gives the following warning:

C:\\Python27\\lib\\site-packages\\sklearn\\svm\\bas         


        
4条回答
  •  醉酒成梦
    2020-12-07 16:23

    I reached the point that I set, up to max_iter=1200000 on my LinearSVC classifier, but still the "ConvergenceWarning" was still present. I fix the issue by just setting dual=False and leaving max_iter to its default.

    With LogisticRegression(solver='lbfgs') classifier, you should increase max_iter. Mine have reached max_iter=7600 before the "ConvergenceWarning" disappears when training with large dataset's features.

提交回复
热议问题