<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Marie Noel Chanthavong on Medium]]></title>
        <description><![CDATA[Stories by Marie Noel Chanthavong on Medium]]></description>
        <link>https://medium.com/@marienoel.chanthavong?source=rss-65262086278a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*55sLPqB_h66AA472.jpg</url>
            <title>Stories by Marie Noel Chanthavong on Medium</title>
            <link>https://medium.com/@marienoel.chanthavong?source=rss-65262086278a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 05:41:54 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@marienoel.chanthavong/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Forecasting Process]]></title>
            <link>https://medium.com/godtlevert/forecasting-process-32271a9efa74?source=rss-65262086278a------2</link>
            <guid isPermaLink="false">https://medium.com/p/32271a9efa74</guid>
            <category><![CDATA[purchasing]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[forecasting]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Marie Noel Chanthavong]]></dc:creator>
            <pubDate>Mon, 12 Dec 2022 13:04:16 GMT</pubDate>
            <atom:updated>2022-12-12T13:04:16.931Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><h4>Why do we need these forecasts?</h4><p>LMK Group is a food tech company which operates in Nordic countries under the brands Linas Matkasse, Godtlevert, Adams Matkasse and Retnemt. We offer large weekly quantities of meal kits to simplify the everyday life of customers. Sustainability is one of our essential values. We have developed several forecasting models to predict the quantities of meal kits from 2 days up to 11 weeks in advance which are used for ordering the raw materials that we need to pack the meal boxes. Our forecasts could help the food producers also know the quantities of ingredients that they need to cultivate and reduce food waste.</p><h3>Forecasting Process</h3><p>The forecasting process includes meal boxes, flex dishes (which are the dishes that the customers choose for themselves), and grocery forecasts. We have come up with both short-term and long-term forecasts. The short-term forecasts are based on the estimated values of products which the customers have chosen in their baskets at the current standing. For the long-term forecasts, we use historical data to make the estimation and/or do machine learning models.</p><h4>How does it work?</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/761/1*PLSLVS30DMg2Fv4RRUWB_g.png" /><figcaption>Forecasting Process</figcaption></figure><p>First, we insert manual forecasts of meal boxes, add-on products or some grocery items having campaign prices which have been done by the Data Analyst team into the table in database which is called the ‘temp’ table in our Analytics Database (ADB).</p><p>In Retool (a low-code platform that makes it fast and easy to build internal tools), we developed an internal user interface (UI) application that can help us run the forecasting process easier. In fact, this UI application connects to ADB and triggers the Store Procedure that we created for executing all existing forecasting models. We have a possibility to run the forecast for a specific week or available weeks.</p><p>This Store Procedure consists of several steps. First, it will archive the old forecasts and then insert the new manual forecasts into the final forecast table in our ADB where we will serve it through an API in PIM later, where PIM is a product information management platform which is the process of managing and enhancing the product information across menu, ingredients and purchasing products.</p><p>Then, the forecasting model of flex dishes is triggered. If the week we trigger the model is from 1 to 19 days (about 0–3 weeks) before the cutoff date, we will use the estimation data (which is the quantity of variations that customers choose at the current standing) and outputs from manual forecast to adjust the estimated value for each flex dish, which is called the short-term model. If not, we will use the long-term model which is based on the Dishes Forecasting Machine Learning model. This model consists of an ensemble of 5 trained models where the blended model uses consensus among estimators to generate final predictions by consuming: ingredients, recipe main ingredients, recipe name, and cooking time.</p><p>For the grocery model, if the week to forecast is the next delivery, we use the estimated value to calculate the proportion of grocery items, and with some adjustments to compute the final estimation for the grocery items by multiplying the calculated ratio earlier with an average number of grocery items per order and an average number of orders having grocery items in the past 2 weeks. If not, we use the historical data to calculate the ratio of groceries and do the same adjustment.</p><p>All outputs will be inserted into the analytics forecast table in ADB. It will be served later by our API endpoint.</p><p>The procurement team can send a request to the API to get the outcome, and then the endpoint will return the response corresponding to the quantity of each dish for a specific week.</p><h3>Deployment and monitoring</h3><p>There are at least 5 models being run every week. Some have been running daily to predict total orders 11 weeks ahead, dishes forecasting has been running once per week to predict the quantity of each flex dish for 11 weeks in advance on Databricks. When making changes to the code, we use unittest and pytest to verify the code before merging changes. For the forecasting process, we run it at least 3 times per week per brand through Retool. PIM makes a request to our internal FastApi application to get the forecasts which have been run. Usually, we run this forecasting process several times per week: one for 11 weeks in advance, the others for the next delivery.</p><p>To monitor models, we created reports in tableau helping us to track the performance of our forecasting models (figure below). The performance of forecasts gets better when we are closer to the cutoff date. We use several statistical metrics to measure our model quality over time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fuygRsSzjvT85RbjmyRWHA.png" /><figcaption>Forecasting follow-up</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=32271a9efa74" width="1" height="1" alt=""><hr><p><a href="https://medium.com/godtlevert/forecasting-process-32271a9efa74">Forecasting Process</a> was originally published in <a href="https://medium.com/godtlevert">Cheffelo  — Tech &amp; Data</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>