This repository contains reproducable demo for our CSR and CNN models.
- numpy
- pandas
- scipy
- sklearn
- tensorflow
- tslearn
- csr.py - Python implementation of our CSR model
- cnn.py - Python implementation of our CNN model
- train-forecasts.7z - Compressed set of demand forecasts used to train the models
- test-forecasts.7z - Compressed set of demand forecasts used to test the models
- First unzip the compressed data files
- To run the csr model
python csr.pythis will execute with k = 300. You can pass -k argument to change the value of k.
e.g.python csr.py -k 100
We used euclidean distance for k-means clustering by default. You can change it to dtw by passing-dtwparameter
e.g.python csr.py -k 100 -dtw - To run the cnn model
python cnn.py