Goal of this project is to build and train a Long Short Term Memory based Autoencoder model to detect anomalies (i.e. sudden price changes) in the S&P 500 index data.This is implemented using Keras API with Tensorflow 2.0 as backend.
Source - https://www.kaggle.com/pdquant/sp500-daily-19862018
Dataset includes two columns with one containing a daily timestamp and the second with the raw, un-adjusted closing prices for each day.
- numpy
- pandas
- Keras
- Tensorflow 2.0
- matplotlib
- seaborn
Autoencoder model was trained for 100 epochs and loss distribution was plotted to obtain a suitable threshold value (0.65) for identifying an anomaly. Test loss ~ 0.098