I'm working with this example but am confused on how to make the separate decoder model.
from keras.layers import Input, LSTM, RepeatVector
from keras.models import Model
inputs = Input(shape=(timesteps, input_dim))
encoded = LSTM(latent_dim)(inputs)
decoded = RepeatVector(timesteps)(encoded)
decoded = LSTM(input_dim, return_sequences=True)(decoded)
sequence_autoencoder = Model(inputs, decoded)
encoder = Model(inputs, encoded)
I understand how to make the encoder, but how do we make a separate decoder? I can define all the layers and make the encoder and decoder separately but is there a simpler way to do it like we've done with the encoder model?
decoder = Model(encoder.output,decoded)(Never tried this, but I'll add an answer with what I know that works)