What does DeprecationWarning mean when running Python

怎甘沉沦 提交于 2019-11-27 08:54:36

问题


I ran a Python program and got a DeprecationWarning, like:

D:\programs\anaconda2\lib\site-packages\sklearn\utils\deprecation.py:70: DeprecationWarning: Function log_multivariate_normal_density is deprecated; The function log_multivariate_normal_density is deprecated in 0.18 and will be removed in 0.20. 
  warnings.warn(msg, category=DeprecationWarning) 

I can't confirm what is wrong about it. What is a DeprecationWarning?


回答1:


In general developers are developing libraries and in developing sometime add o change thing and sometime remove theme. removing is danger because user may used that and if a developer want to remove a thing first have to notify others to don't use this feature or things and after this he can remove. and DeprecationWarning is this notification.



来源:https://stackoverflow.com/questions/44944208/what-does-deprecationwarning-mean-when-running-python

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!