The program I developed is a deep learning time series predictor that use a recurrent neural network architecture tailored by long-short term memory cells. The dataset used to train this model represents the monthly milk production in pounds per cow from January 1962 to December 1975 Cryer (1986). This datasetcan be accessed on the following website: Monthly milk production
- Time
- Pounds per cow
You can use pip
or conda
to install the dependencies:
- tensorflow
- matplotlib
- jupyter
- pandas
- seaborn
- scikit-learn
If you want to try this program, download this repo and launch jupyter to run it on your machine. You can also check it out clicking on this link: LSTM Time Series Prediction
-
LOAD AND VISUALIZE THE RAW DATA
Load the dataset and show statistic summaryVisualize the data
-
DATA PREPROCESSING
- Apply standarization to features
- Apply one-hot encoding to labels
- Split data into training and testing sets
-
MODEL ARCHITECTURE
- Define network parameters
- Define network structure
- Define learning rate with different decaying methods
- Set up cost, optimizer, and accuracy function with different configurations
- Define model execution
- Visualize evolution of training and testing accuracy through epoch iteration
- Visualize evolution of learning rate
-
OTHERS [OPTIONAL
- Add log and summary writer
- Add Tensorboard visualization
- Add checkpoints for model restoration
Update README file