tree: 94bd978b21e63a7f8c60f0880bcd631be8bbe1d0 [path history] [tgz]
  1. data_loaders.py
  2. kaggle_submission_df.dot.png
  3. model_pipeline.py
  4. README.md
  5. requirements.txt
  6. run.py
  7. transforms.py
  8. utils.py
examples/model_examples/time-series/README.md

Kaggle M5 Forecasting

Source - https://www.kaggle.com/c/m5-forecasting-accuracy.

This is an example of how one might use Hamilton using the M5 Forecasting Kaggle challenge as an example. The code here is based on Ratan Rohith's notebook that can be found here. The notebook is a beginner level notebook that does some feature engineering, and uses LightGBM to fit a model over folds that then predicts the future. The notebook is a good starting point for anyone want to know the basics of an approach to time series forecasting.

Set up

  1. Set up the python virtual environment and activate it, then install the required python dependencies. pip install -r requirements.txt.
  2. Download the data -- you will need to log in to Kaggle to download the data.
  3. Decompress the data into the same folder as the code.
  4. Run run.py. python run.py.

Notes

Here's what this code executes: kaggle_submission_df