I am attempting to construct a Keras model that intakes a sequence of vectors and outputs the most likely next vector in the sequence. I have followed a few tutorials, but nothing is quite seeming to work. My accuracy is always extremely low, sometimes even 0, and loss increases.
My model is as follows.
model = keras.Sequential()
model.add(layers.LSTM(300, return_sequences=True))
model.add(layers.LSTM(500, return_sequences=True, activation="sigmoid"))
model.add(layers.Dropout(0.2))
model.add(layers.LSTM(300, return_sequences=False))
model.add(layers.Dropout(0.2))
model.add(layers.Dense(300, activation="relu"))
model.add(layers.Activation("softmax"))
model.build((None, 641, 300))
model.summary()
model.compile(optimizer="rmsprop", loss=tf.keras.losses.MeanSquaredError(), metrics=['accuracy'])
Is this proper usage of LSTM? The code runs fine, no errors, but the model simply doesn't train.