THEAQING 2018-11-30 11:53 采纳率: 100%
浏览 4443
已采纳

Python sklearn LogisticsRegression运行警告问题。

运行Python sklearn LogisticsRegression产生两个警告:

    FutureWarning: Default solver will be changed to 'lbfgs' in 0.22. Specify a solver to silence this warning.

            FutureWarning: Default multi_class will be changed to 'auto' in 0.22. Specify the multi_class option to silence this warning.

            想知道具体产生的原因,和去除方式。不要和我说屏蔽掉警告啊。
  • 写回答

1条回答 默认 最新

  • threenewbee 2018-11-30 12:00
    关注

    调用LogisticRegression的时候,你指定下multi_class参数,你没有这个参数就有警告。

    文档:https://scikit-learn.org/stable/modules/generated/sklearn.linear_model.LogisticRegression.html

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?