Deprecation warnings from sklearn

前端 未结 1 844
太阳男子
太阳男子 2021-02-12 07:04

I am using cross_validation from sklearn,

from sklearn.cross_validation import train_test_split

I get the below warning:

相关标签:
1条回答
  • 2021-02-12 07:23

    Problem:

    The deprecation warning means that the module is deprecated, i.e. no longer supported. You are using a version for which sklearn.cross_validation is not a module any longer.

    Solution:

    from sklearn.model_selection import train_test_split
    

    C/O: This post.

    0 讨论(0)
提交回复
热议问题