Giter VIP home page Giter VIP logo

m5_forecasting_accuracy_kaggle's Introduction

M5_Forecasting_Accuracy_kaggle

It contains the code and data for M5 Forecasting - Accuracy competition on Kaggle. The details and data for this competition can be found here: https://www.kaggle.com/c/m5-forecasting-accuracy/overview

store_and_week_wise_lgbm_v1.ipynb

  • In this solution, we have built different models for different (10) stores and different (4) weeks (1-7, 8-14, 15-21, 22-28), so we are building total 40 models for each train_train_day_x (different validation periods for robust evaluation and hyper-parameter tuning).
  • Features used are as following:
    • General base features
    • General price based features
    • General calendar and time based features
    • Lag and rolling mean/std features
    • Target encoding features for categorical variables
  • Lightgbm with tweedie loss is used for modeling.
  • The more implementation details can be found here: https://www.kaggle.com/c/m5-forecasting-accuracy/discussion/163216

simple-lgbm-groupkfold-cv.ipynb

  • This notebook explores how GroupKFold CV strategy in Sklearn can be used for hyper-parameter tuning for time-series data.
  • In this notebook we haven't done any hyper-parameter tuning though, GroupKFold CV has just been used for validating the model's performance but the same methodology can be used for hyper-parameter tuning.
  • You can learn more about GroupKFold CV and how it reduces the possibility of leakage with time-series CV from the Markdown section of the notebook.
  • Custom objective function and validation metric are used which works as a proxy for WRMSSE, competition' evaluation metric.
  • Lightgbm with regression (default) loss is used for modeling.
  • The data for this notebook are available at:

m5_forecasting_accuracy_kaggle's People

Contributors

naquibalam avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  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.