我尝试运行以下Python脚本:
```import pandas as pd from sklearn.model_selection import train_test_split from sklearn.ensemble import RandomForestClassifier from sklearn.metrics import accuracy_score from sklearn.metrics import confusion_matrix```
但是它给我以下错误。
警告(来自警告模块): “C:\\Users\\Dipali\\AppData\\Local\\Programs\\Python\\Python37-32\\lib\\site-packages\\sklearn\\ensemble\\weight_boosting.py”中的第29行从“numpy.core.umath_tests”导入inner1d DeprecationWarning: numpy.core.umath_tests是内部NumPy模块,不应导入。 在未来的NumPy版本中将删除它。
我需要怎么做?
```import pandas as pd from sklearn.model_selection import train_test_split from sklearn.ensemble import RandomForestClassifier from sklearn.metrics import accuracy_score from sklearn.metrics import confusion_matrix```
但是它给我以下错误。
警告(来自警告模块): “C:\\Users\\Dipali\\AppData\\Local\\Programs\\Python\\Python37-32\\lib\\site-packages\\sklearn\\ensemble\\weight_boosting.py”中的第29行从“numpy.core.umath_tests”导入inner1d DeprecationWarning: numpy.core.umath_tests是内部NumPy模块,不应导入。 在未来的NumPy版本中将删除它。
我需要怎么做?