用sklearn进行KNN分类时,出现ValueError: Found input variables with inconsistent numbers of samples: [19, 7]错误。
X,y=make_forge()
X_train,y_train,X_test,y_test=train_test_split(X,y,random_state=0)
print("X.shape:{}".forma
用sklearn进行KNN分类时,出现ValueError: Found input variables with inconsistent numbers of samples: [19, 7]错误。
X,y=make_forge()
X_train,y_train,X_test,y_test=train_test_split(X,y,random_state=0)
print("X.shape:{}".forma