Ok. So I'm fairly new to deep learning. When I ran my code I got ValueError: Input 0 of layer sequential is incompatible with the layer: expected ndim=3, found ndim=2. Full shape received: (None, 1)
My dimensions are
X = (6018,)
y = (6018,)
My model is
model = Sequential()
model.add(LSTM(64,input_shape=(1, 2),return_sequences=True))
model.add(LSTM(64,input_shape=(1, 2)))
model.add(Dense(32,activation='relu'))
model.add(Dense(1,activation='softmax'))
model.compile(optimizer='adam', loss = 'categorical_crossentropy',metrics = ['accuracy'])
model.fit(X,y,epochs=25,batch_size=5)
I've already referenced this but when I tried the solution (of course tweaking the numbers) I still got the error. Any help would be appreciated.