How to fix Statsmodel warning: “Maximum no. of iterations has exceeded”

后端 未结 2 2138
囚心锁ツ
囚心锁ツ 2021-02-14 20:08

I am using Anaconda and I am trying logistic regression. After loading training data set and performed the regression. Then I got the following warning message.



        
2条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-02-14 20:51

    Check for the levels of all variables. It might be possible that one amongst them would have almost 99% of one category. Hence making it difficult to converge. I resolved it by removing that variable from my dataset.

提交回复
热议问题