from pandas import read_csv
from sklearn.model_selection import train_test_split
dataset = read_csv(‘data.csv’)
values = dataset.values.astype(‘float32’)
x = values[:, 0:5]
y = values[:, 0:5]
x_train, x_test, y_train, y_test = train_test_split(x, y, test_size=0.2)
x_train = x_train.reshape((x_train.shape[0], 5, x_train.shape[1]))
x_test = x_test.reshape((x_test.shape[0], 5, x_test.shape[1]))
print(x_train.shape, y_train.shape, x_test.shape, y_test.shape)
报错: x_train = x_train.reshape((x_train.shape[0], 5, x_train.shape[1]))
ValueError: cannot reshape array of size 4385 into shape (877,5,5)