https://github.com/bnsreenu/python_for_microscopists/blob/d68e4a5a43f19649de9a8822fcd492c142e11408/180_LSTM_encoder_decoder_anomaly_GE.py#L106 The fit should be done using the `trainX` as a target to have a reconstruction error. Thank you