成功解决sklearn\ensemble\weight_boosting.py:29: DeprecationWarning: numpy.core.umath_tests is an interna

简介: 成功解决sklearn\ensemble\weight_boosting.py:29: DeprecationWarning: numpy.core.umath_tests is an interna

解决问题


sklearn\ensemble\weight_boosting.py:29: DeprecationWarning: numpy.core.umath_tests is an internal NumPy module and should not be imported. It will be removed in a future NumPy release.

 from numpy.core.umath_tests import inner1d




解决思路


发生在sklearn\ensemble\weight_boosting.py文件内,版本升级导致,这是一个丢弃警告,在未来的版本中,numpy.core.umath作为内部numpy模块,不必须再导入。它将在将来的numpy版本中被删除!

弃用警告:numpy.core.umath_tests是一个内部NumPy模块,不应该导入。它将在将来的NumPy发行版中被删除。

 from numpy.core.umath_tests import inner1d





解决方法


该问题是警告信息,不处理亦可运行程序,只需理解一下即可!该库未来的升级ban版本中,会包含在numpy库内,不必再导入!这是一个警告,而不是错误 Error。即使不处理也不会影响程序的运行。主要是因为在未来的numpy版本升级中,重新重构了该函数方法!


相关文章
|
Python
解决ImportError: umap.plot requires pandas matplotlib datashader bokeh holoviews scikit-image and colo
解决ImportError: umap.plot requires pandas matplotlib datashader bokeh holoviews scikit-image and colo
212 0
解决ImportError: umap.plot requires pandas matplotlib datashader bokeh holoviews scikit-image and colo
|
网络虚拟化
在torch_geometric.datasets中使用Planetoid手动导入Core数据集及发生相关错误解决方案
在torch_geometric.datasets中使用Planetoid手动导入Core数据集及发生相关错误解决方案
599 0
在torch_geometric.datasets中使用Planetoid手动导入Core数据集及发生相关错误解决方案
|
PyTorch 算法框架/工具 异构计算
pytorch中的torch.manual_seed()
random.seed(rand_seed)随机数种子,当使用random.seed(rand_seed)设定好种子之后,其中rand_seed可以是任意数字,比如10,那么每次调用生成的随机数将会是同一个。
126 0
sklearn:sklearn.preprocessing中的Standardization、Scaling、 Normalization简介、使用方法之详细攻略
sklearn:sklearn.preprocessing中的Standardization、Scaling、 Normalization简介、使用方法之详细攻略
sklearn:sklearn.preprocessing中的Standardization、Scaling、 Normalization简介、使用方法之详细攻略
from sklearn.cross_validation import train_test_split发生报错
from sklearn.cross_validation import train_test_split发生报错
224 0
from sklearn.cross_validation import train_test_split发生报错
|
PyTorch 算法框架/工具
关于Pytorch中torch.manual_seed()用法
关于Pytorch中torch.manual_seed()用法
成功解决xgboost\core.py:614: UserWarning: Use subset (sliced data) of np.ndarray is not recommended beca
成功解决xgboost\core.py:614: UserWarning: Use subset (sliced data) of np.ndarray is not recommended beca
|
TensorFlow 算法框架/工具 Python
成功解决mnist.py:110: dense_to_one_hot (from tensorflow.contrib.learn.python.learn.datasets.mnist) is de
成功解决mnist.py:110: dense_to_one_hot (from tensorflow.contrib.learn.python.learn.datasets.mnist) is de
成功解决mnist.py:110: dense_to_one_hot (from tensorflow.contrib.learn.python.learn.datasets.mnist) is de
成功解决sklearn\preprocessing\label.py:151: DeprecationWarning: The truth value of an empty array is amb
成功解决sklearn\preprocessing\label.py:151: DeprecationWarning: The truth value of an empty array is amb
成功解决xgboost\core.py", ValueError: feature_names may not contain [, ] or <
成功解决xgboost\core.py", ValueError: feature_names may not contain [, ] or <