当前位置:   article > 正文

【Python报错解决方案】DeprecationWarning: `np.float` is a deprecated_deprecationwarning: `np.float` is a deprecated ali

deprecationwarning: `np.float` is a deprecated alias for the builtin `float`

报错amoconda libsite-packages sklearn linear model least ngl.py30: Deprecationmarming: mp.float is a deprecated alias for the builtinfloat , To silence this warning, wse flat by itself. Doing this will not modify amy behavior and is safe. If you specifically wanted thenumpy scalar type, use np. float64 here.

解决方法1:升级scikit-learn版本

conda update scikit-learn

解决方法2:

在Anaconda Prompt里
(1)pip uninstall Scikit-learn
(2)pip install Scikit-learn

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/AllinToyou/article/detail/541695
推荐阅读
相关标签
  

闽ICP备14008679号