How to use LightGBM and boosted decision trees to forecast sales

An extensive guide to structuring data to predict future sales using machine learning. It walks through how to use python to create lagged variables, rolling means and time-based features. It covers how to perform target encoding, train test splitting for time dependent models and build a gradient boosted tree model predicting next…

Nicklas Ankarstad
Towards Data Science
20 min readJun 9, 2021

--

--

--

FinTech leader writing about building/scaling analytics, machine learning and data science.