dict_vec = DictVectorizer(sparse=False)# #sparse=False意思是不产生稀疏矩阵. X_train = dict_vec.fit_transform(X_train.to_dict(orient='record ...
確定! 回上一頁