我是这方面的初学者
结果列是因变量。所有的数据都不是Ordinal。(Name列有36个不同的名称。)因为这是分类数据,我尝试了OneHotEncoding,我得到了ValueError: Number of features of the model must match the input
我总是得到100%的准确性。是因为我做的编码吗?con
希望使用决策树算法。但遇到一些错误,因为ValueError:无法将字符串转换为浮点型:'f‘。请帮帮我,我遗漏了哪里。import pandas as pd
import matplotlib.pyplot as plt
from sklearn import tree
from sklearn.model_selection import train_te