I've tried "You can add CNN model first(with input shape=(30,90,1622)), and use LTSM model to encapsulate CNN model."
x_train, x_test, y_train, y_test=train_test_split(x, y, test_size=0.05)
x_train.shape ---->(85, 30, 1662)
model = Sequential()
model.add(TimeDistributed(Conv2D(3, (2,2), activation='relu', padding='same', input_shape=
(30,90,1622))))
model.add(TimeDistributed(MaxPooling2D(pool_size=(2,2))))
model.add(TimeDistributed(Flatten()))
model.add(LSTM(64, return_sequences=True, activation='relu'))
model.add(LSTM(128, return_sequences=True, activation='relu'))
model.add(LSTM(64, return_sequences=False, activation='relu'))
model.add(Dense(64, activation='relu'))
model.add(Dense(32, activation='relu'))
model.add(Dense(actions.shape[0], activation='softmax'))
but am getting the error:
ValueError: Input 0 of layer conv2d_3 is incompatible with the layer: : expected min_ndim=4,
found ndim=2. Full shape received: (None, 1662)