# Grupo Bimbo Inventory Demand




<p><a href = "https://www.kaggle.com/c/grupo-bimbo-inventory-demand"><img src="/projects/grupo-bimbo-inventory-demand_files/grupo-bimbo-competition.jpg" title="Grupo Bimbo competition" 
style="float:right; width:300px; margin-left:10px; margin-bottom:10px" 
/></a></p>
<div id="the-challenge" class="section level1">
<h1>The Challenge</h1>
<p>In June 2016, Grupo Bimbo challenged Kagglers to accurately forecast inventory demand based on historical sales data of over 100 products supplied to over a million stores across 45,000 routes in Mexico. The <a href="https://www.kaggle.com/c/grupo-bimbo-inventory-demand">competition</a> was hosted by <a href="https://www.kaggle.com/">Kaggle</a>, spanned three months, and included 1,969 teams.</p>
</div>
<div id="the-solution" class="section level1">
<h1>The Solution</h1>
<p>I finished 58th out of 1,969 teams (top 3%).</p>
<p>This competition was particularly challenging due to 1) the massive training dataset (80 Million rows) and 2) the nature of forecasting which requires careful model construction. My best model used Tianqi Chen’s very popular implementation of Gradient Boosting – <a href="https://github.com/dmlc/xgboost">XGBoost</a>. With its parallel processing capability I was able to iterate through multiple feature ideas before settling on about 60 for my final model which took roughly five hours to run on my Macbook Pro (16GB Ram).</p>
</div>

