我有要分类的文本,所以我对它们进行了编码。在线上
classif = OneVsRestClassifier(SVC(kernel = 'linear'))
classif.fit(X, Y)
我的{
当我尝试运行clf.predict(test)
时,即使test
是(56,96),我也会得到错误ValueError: X.shape[1] = 96 should be equal to 2, the number of features at training time
。这两个功能是从哪里来的?MyY
标签是2D数组,但MyX
有96列
目前没有回答
相关问题 更多 >
编程相关推荐