逻辑回归max_iter
时间: 2023-08-21 09:14:13 浏览: 141
逻辑回归中的max_iter参数是指迭代的最大次数。当模型在训练过程中没有收敛时,可以通过增加max_iter的值来增加迭代次数,以便更好地拟合数据。默认情况下,sklearn的逻辑回归模型的max_iter参数设置为100。如果在使用逻辑回归时出现警告提示"Increase the number of iterations (max_iter)",说明模型在默认的迭代次数内没有收敛,可以尝试增加max_iter的值来解决这个问题。
#### 引用[.reference_title]
- *1* *3* [sklearn 逻辑回归Increase the number of iterations (max_iter) or scale the data as shown in解决方案](https://blog.csdn.net/weixin_43178406/article/details/127358349)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [逻辑回归介绍及statsmodels、sklearn实操](https://blog.csdn.net/baidu_26137595/article/details/124021327)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文