Python Deprecation Warning Message
发布时间
阅读量:
阅读量
当导入sklearn中的某些模块时会遇到DeprecationWarning(弃用警告),具体形式如下:
在Python代码库sklearn/cross_validation.py文件第44行处有一个DeprecationWarning提示信息:该模块自版本0.18起已弃用,并建议使用model_selection模块中的相关内容进行替代;此外,请注意新版本中的CV迭代器接口与该模块有所不同;此模块将在未来版本中被删除,请及时更新代码以避免受到影响
This module will be removed starting from version 0.21, and its functionality has been incorporated into the model_selection module since version 0.19, where it is integrated into existing functions and services
DeprecationWarning)
主要涉及的是cross-validation和learning curve模块在0.18版本中被retired,在0.20版本中已被model selection取代。因此,在导入时建议使用sklearn.model_selection模块。
被弃用的模块还有下列一些:
全部评论 (0)
还没有任何评论哟~
