SHARE
TWEET

Untitled

a guest Jun 17th, 2019 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. lstm_autoencoder = Sequential()
  2.  
  3. # Encoder
  4. lstm_autoencoder.add(LSTM(timesteps, activation='relu', input_shape=(timesteps, n_features), return_sequences=True))
  5. lstm_autoencoder.add(LSTM(16, activation='relu', return_sequences=True))
  6. lstm_autoencoder.add(LSTM(1, activation='relu'))
  7. lstm_autoencoder.add(RepeatVector(timesteps))
  8.  
  9. # Decoder
  10. lstm_autoencoder.add(LSTM(timesteps, activation='relu', return_sequences=True))
  11. lstm_autoencoder.add(LSTM(16, activation='relu', return_sequences=True))
  12. lstm_autoencoder.add(TimeDistributed(Dense(n_features)))
  13.  
  14. lstm_autoencoder.summary()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top