Code Monkey home page Code Monkey logo

m5-forecasting-tutorial's Introduction

Forecasting the M5 dataset using machine learning

An end-to-end tutorial on using a global forecasting model (i.e., LightGBM) on a retail sales dataset (the M5 competition) using multi-step recursive forecasting.

This tutorial emulates a batch forecasting workflow, breaking the process into multiple steps:

  1. Obtain the raw data.
  2. Create the base dataset containing sales, price, promos etc. by product id and date.
  3. Create a feature engineering pipeline, create the training data, and store the pipeline and training data.
  4. Train the model and store it.
  5. Create a forecast using recursive forecasting.
  6. Plot the forecast, feature importance, and other model diagnostics.

For more on feature engineering for time series forecasting check out this course.

Installation

This tutorial requires:

  • numpy
  • pandas
  • scikit-learn
  • joblib
  • matplotlib
  • sktime
  • jupyter
  • pyarrow
  • lightgbm

These can be installed by from the requirements.txt.

pip install -r requirements.txt

The notebooks were run on Python 3.10.2.

m5-forecasting-tutorial's People

Contributors

kishmanani avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.