Python忽略warning警告
作者:互联网
告警现象
形如下图文的告警信息都可以使用告警屏蔽
添加代码
import warnings
warnings.filterwarnings("ignore")
附录:告警原文:
D:\Python_demo\demo2\venv\lib\site-packages\sklearn\utils\deprecation.py:87:
FutureWarning: Function load_boston is deprecated; `load_boston` is deprecated in
1.0 and will be removed in 1.2.
.......
标签:load,warnings,Python,boston,忽略,warning,deprecated,告警 来源: https://blog.csdn.net/immerseinstudy/article/details/122213156