From d2cc3779de7b0b3c51b6e13d48746b95b6715d18 Mon Sep 17 00:00:00 2001 From: mustapha ajeghrir <66799406+Mustapha-AJEGHRIR@users.noreply.github.com> Date: Fri, 29 Jul 2022 21:46:41 +0200 Subject: [PATCH] Update 180_LSTM_encoder_decoder_anomaly_GE.py The fit should be done using the trainX as a target to have a reconstruction error. Thank you --- 180_LSTM_encoder_decoder_anomaly_GE.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/180_LSTM_encoder_decoder_anomaly_GE.py b/180_LSTM_encoder_decoder_anomaly_GE.py index 12bf89069..4df792319 100644 --- a/180_LSTM_encoder_decoder_anomaly_GE.py +++ b/180_LSTM_encoder_decoder_anomaly_GE.py @@ -103,7 +103,7 @@ def to_sequences(x, y, seq_size=1): model.summary() # fit model -history = model.fit(trainX, trainY, epochs=10, batch_size=32, validation_split=0.1, verbose=1) +history = model.fit(trainX, trainX, epochs=10, batch_size=32, validation_split=0.1, verbose=1) plt.plot(history.history['loss'], label='Training loss') plt.plot(history.history['val_loss'], label='Validation loss')