I have tried many times and read the answer to the question similar to me, but still did not solve.
Error when checking input: expected acc_input to have 4 dimensions, but got array with shape (200, 3, 1)
model.fit(x=[acc_,gyro_],y=[scaled_labels],batch_size=1,validation_split=0.2, epochs=2,verbose=1,shuffle=False)
The first layer of my network is the Input layer
acc_input_tensor = Input(shape=(200,3,1),name = 'acc_input')
gyro_input_tensor = Input(shape=(200,3,1),name= 'gyro_input')
The input is the acceleration and gyroscope data. 200 refers to 200 sets of data, 3 refers to the acceleration of the measured value of x,y,z. I put the acceleration data and gyro data reshape into (200 * 3 * 1)
acc_ = np.reshape(acc,(200,3,1))
gyro_ = np.reshape(gyro,(200,3,1))
The input is three-dimensional data, the given data input is three-dimensional, why there are four-dimensional requirements? How to modify it?