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

前端 未结 4 1827
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:01

    Explicitly specifying the max_iter resolves the warning as the default max_iter is 100. [For Logistic Regression].

     logreg = LogisticRegression(max_iter=1000)
    

提交回复
热议问题