下面的Keras博客提到了LSTM自动编码器的高级别。
https://blog.keras.io/building-autoencoders-in-keras.html
但是只给出了一个准系统参考码&它不完整。
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)
问题