我正在尝试建立一个预测模型,我得到了以下错误。我怎么解决这个问题呢?module> 9 # Make predictions on test data using the model trained on original data 403
ValueError: Number of features ofModel n_featu
ValueError: Number of features of the model must match the input.Model n_features is 3 and input n_features is 2import pandas as pd
from sklearn.tree import DecisionTreeClassifier
我正在使用笔划的Kaggle数据集,在使用randomforesrtclassifier和RandomSearchCV制作之后。我不明白为什么它会显示n_features 16,这就是让我感到困惑的地方,我刚接触数据科学,所以我甚至不知道我做错了什么 import pandas as pd
df = pd.read_csv("healthcare-dataset-stroke-data.csvAmit\anaconda3\lib\site-packages\sklearn\tree\_classes.py", line