How to resolve raise ValueError(“bad input shape {0}”.format(shape)); ValueError: bad input shape (977, 57)
问题 A dataset has more than 2500 rows and 22 columns including the age column. I have completed all of the processes for SVR. It going on. But I am still having to face an error. That is raise ValueError("bad input shape {0}".format(shape)), ValueError: bad input shape (977, 57) . My input is SupportVectorRefModel.fit(X_train, y_train) . How can I resolve this problem? from sklearn.model_selection import train_test_split from sklearn.svm import SVR X_train, y_train = dataset.loc[:1000], dataset