This github repository is the submission for the Deep Learning From Scratch course from opencampus.sh
We used neural networks as well as primitve approaches to predict the sales of bakeries in Kiel the capitol of Schleswig-Holstein in Germany. The data consisted of 6 different sales groups for the different products, the weather data and the week of KiWo (KiWo is the Kieler Woche, which is the worldwide largest sailing ship festival with around 3 million visitors each year).
After trying a DNN model, an LSTM model, a Fourier Analysis and a simple moving average the outcome was, that the Fourier Analysis had the lowest MAE over all 6 sales groups combined.
MAE over all 6 sales groups:
- Fourier Analysis 54.82 sales/day
- DNN: 55.29 sales/day
- Moving Average: 59.34 sales/day
- LSTM 59.89 sales/day
The approaches are all close together and while Fourier and DNN are on the lower edge and LSTM and Moving Average on the higher edge of the error it shows that the result is not influenced by the complexity of the model, but rather by how good the model can fit the data. Probably more in depth tuning of the LSTM could have led to better results with this model. Also even without any knowledge about Neural Networks a simple approach with a moving average can already help a lot in predicting the sales. The weather data had only very little influence on the loss and accuracy in the prediction, hence is has been removed from the dataset for training. This is maybe also a reason, why the moving average is a good indicator, as it also does not look on the weather data. On the other hand we added the day of the week, as we considered this information to be important, because in Germany for example on sundays the supermarkets are closed but bakeries are open.
Feel free to have a look into the code and you find the presentation in the resources folder.
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Further there is absolute no warranty for the provided code.