我想打印出分类器的分数,但它不工作。有人能帮我吗?我真的不知道是什么问题,也许是块数组(numpy.arrange)的问题。pandas as pd
from matplotlib import pyplot
from sklearn.svm import SVC
from sklearn.model_selection import trai
包含Health-Plan.的labels
用户传递user_input,该格式为features。因此,代码应该使用DecisionTree of sklearn API为用户预测健康计划。由于features中很少有参数是Strings。如病和性别。我使用LabelEncoder对它们进行编码,以避免错误“ValueError: could not convert string to float”。现在,在使用Label Encoder之后,我得到了以下异常'ValueError: bad