<?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 Kemi Awogboro on Medium]]></title>
        <description><![CDATA[Stories by Kemi Awogboro on Medium]]></description>
        <link>https://medium.com/@kawosco?source=rss-33c798f58393------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*G5sBXWJI_7aEMEAZHpOyOQ.jpeg</url>
            <title>Stories by Kemi Awogboro on Medium</title>
            <link>https://medium.com/@kawosco?source=rss-33c798f58393------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 27 May 2026 17:25:36 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kawosco/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[Model Drift]]></title>
            <link>https://medium.com/@kawosco/model-drift-7da4e3746cbb?source=rss-33c798f58393------2</link>
            <guid isPermaLink="false">https://medium.com/p/7da4e3746cbb</guid>
            <category><![CDATA[model-drift]]></category>
            <dc:creator><![CDATA[Kemi Awogboro]]></dc:creator>
            <pubDate>Thu, 18 Aug 2022 15:56:14 GMT</pubDate>
            <atom:updated>2022-08-18T15:56:14.024Z</atom:updated>
            <content:encoded><![CDATA[<p>Model Drift</p><p><strong>What is Model Drift</strong></p><p>‘Change is the only constant in life’ a famous quote by a Greek philosopher Heraclitus. People, culture, societies and notion are constantly changing as the years go by, what was once the state of the art has now become obsolete. Understanding changes and the ability to quickly adapt, is a vital aspect of business. Mobile phones designed 15 years ago are now considered obsolete in value.</p><p>Model drift refers to the degradation of a model’s prediction power due to changes in the environment. This arises essentially when the relationship between the target variable and independent variable changes with time. This drift makes model prediction to become unstable and erroneous with time</p><p>In technical terms, using linear regression concept, we map the independent variable x_i to predict the target variable y:</p><p><em>y=ax+b</em></p><p>where, a is the intercept and <em>b_i</em> corresponds to the coefficients for the variable <em>x_i</em>. The assumption is that the mapping of the independent variable x_i to predict the target variable y is constant, that the coefficients B_i and the intercept a do not change with time and that the relationship governing the prediction of the target variable y will be valid for future data as well. This assumption which might be true at the time the model was developed, may no longer remain true due to changes in underlying condition, so when this scenario occurs, the prediction of the model becomes faulty and thus poses a threat to the business or organization using the model</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/402/1*lUfUKRzARNPeoy_Cn7tRvQ.png" /><figcaption>Figure 1: Model Drift -Image by Author(Canva)</figcaption></figure><p><strong>Why do Model’s drift</strong></p><p>Every deployed model has the possibility of degrading over time due to the following reasons</p><p>1) Variance in deployed data: This is when at deployment, we provide the model with a set of data that is not as clean as the training and testing data used for designing the model</p><p>2) Changes in data integrity: changes in data such as formats, renamed fields, new categories can adversely affect models’ performance.</p><p>3) Data drift: This occurs when the statistical properties of the predictors change. Changes in demographic, market shift, unexpected world epidemic, changes in data pattern due to seasonality etc, could make the training data less relevant to the current situation thus reducing the precision of the model’s result</p><p>4) Concept Drift: When the statistical properties of the target variable changes, the precision of a model prediction can become irrelevant due to changes in the expectation of the end user.</p><p><strong>Solution</strong></p><p>To successfully address model drift simply retrain the model in a scheduled manner , using recent data, as often as you are able to ascertain the model is likely to decay.</p><p>Another way to address model drift is by making the model learn in real time, this is achieved by allowing the model to access data in sequential order as soon as it becomes available rather than training the model with batch data</p><p><strong>References</strong></p><p><strong>[1] </strong>David Weedmark. <a href="https://www.dominodatalab.com/blog/machine-learning-model-deployment">https://www.dominodatalab.com/blog/machine-learning-model-deployment</a> [published 03 November 2021].</p><p><strong>[2] </strong>Christophergs <a href="https://christophergs.com/machine%20learning/how-to-deploy-machine-learning-models/">https://christophergs.com/machine%20learning/how-to-deploy-machine-learning-models/</a> [published 17 March 2019].</p><p><strong>[3] </strong>Thuwarakesh Murallie <a href="https://towardsdatascience.com/3-ways-to-deploy-machine-learning-models-in-production-cdba15b00e">https://towardsdatascience.com/3-ways-to-deploy-machine-learning-models-in-production-cdba15b00e</a> [published 09 Nov 2021].</p><p><strong>[4] </strong>Sushrut Shendre <a href="https://towardsdatascience.com/%20model-drift-in-machine-learning-models-8f7e7413b5633">https://towardsdatascience.com/ model-drift-in-machine-learning-models-8f7e7413b5633</a> [published 13 May 2020].</p><p><strong>[5]</strong> Datatron <a href="https://datatron.com/what-is-model-drift/">https://datatron.com/what-is-model-drift/</a> copyright 2022</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7da4e3746cbb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Model Deployment]]></title>
            <link>https://medium.com/@kawosco/model-deployment-14dc6abfc04d?source=rss-33c798f58393------2</link>
            <guid isPermaLink="false">https://medium.com/p/14dc6abfc04d</guid>
            <dc:creator><![CDATA[Kemi Awogboro]]></dc:creator>
            <pubDate>Thu, 18 Aug 2022 15:36:42 GMT</pubDate>
            <atom:updated>2022-08-18T16:15:16.879Z</atom:updated>
            <content:encoded><![CDATA[<p>Model Deployment</p><p><strong>What is Model Deployment?</strong></p><p>Machine learning model deployment is the process of placing a finished machine learning model into a live environment where it can be used for its intended purpose. Models can be deployed in a wide range of environments, and they are often integrated with apps through an API so they can be accessed by end users.</p><p>The process requires diverse range of skill sets, collaboration between different people on different teams and access to tools that would facilitate efficiency. A data science team develops the model, another team validates it, and engineers are responsible for deploying it into its production environment</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/932/1*46vKzPRU6Zv8ABL5dgf_2w.png" /><figcaption>Figure 1: ML Systems span Many Teams</figcaption></figure><p>Deployment is the third stage of the data science lifecycle (manage, develop, deploy and monitor), This step is crucial as every aspect of a model’s creation is performed with deployment in mind. Models are usually developed in an environment with carefully prepared data sets, where they are trained and tested</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/555/1*hiDoB2lcdNeWSdRp8B9y2g.png" /><figcaption>Figure 2: Deploying Machine Learning Models to production — Photo by Kindel Media from Pexels</figcaption></figure><p><strong>Tools for Model Deployment</strong></p><p>Python language is typically used in the research and production environment because of the rich data science and data processing ecosystem. The scikit-learn pipelines and Sparks Pipelines with MLeap are often used for modelling.</p><p>“Shadow Mode” and “Canary deployment” are two separate ways to deployment. The shadow mode allows you to capture inputs and prediction of your model before releasing, this allows you to analyse the result in house and detect bug without consequences. Whilst the Canary approach allows for gradual release of model to small fraction of end users for testing to minimise mistakes. A web service such as a Flask web framework can also be used to deploy a Model</p><p>Platform as a Service (PaaS) or Infrastructure as a Service (IaaS) as well as (AWS, Google, Microsoft) can be used for deployment</p><p><strong>Steps for deploying a Machine Learning Model into Production</strong></p><p>1) The data science team develops the model by selecting algorithm, setting its parameters, and training it on prepared cleaned data</p><p>2) The model is then tested, reviewed, and validated by another team usually the business unit,1)</p><p>a) They test the model on a set of fresh data to ensure that, result received are comparable with those received initially when the data was being trained.</p><p>b) They review the training documentation to ensure the methodology satisfy the required standard specified by the organisation and that data used to design and test the model corresponds to the requirement of the end users.</p><p>c) Validation is then completed usually by the compliance team who would dictate what data can be used, how the data would be processed, stored, and documented</p><p>3) The model is then passed on to Engineers for deployment into its production environment where there is access to hardware resources and data sources it requires</p><p>a) They test for the type of application that can access the model when completed,</p><p>b) They review required resources for functionality eg (GPU/CPU resources and memory) and how data would be fed to it</p><p>c) They facilitate its accessibility to laptop via API or integrating it to software for end users</p><p>4) The last stage after a successful deployment of a model is Model Monitoring.</p><p>a) The System analyst team is tasked with ensuring model functions as its expected</p><p>b) That supporting software and resources are performing as required</p><p>c) That end users are adequately trained to use the model</p><p>d) The process of monitoring can then be automated to evaluate its performance</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/809/1*f4YfO_KDplEhMPsFBn4OfA.png" /><figcaption>Figure 3: Steps to deploying a model</figcaption></figure><p><strong>References</strong></p><p><strong>[1] </strong>David Weedmark. <a href="https://www.dominodatalab.com/blog/machine-learning-model-deployment">https://www.dominodatalab.com/blog/machine-learning-model-deployment</a> [published 03 November 2021].</p><p><strong>[2] </strong>Christophergs <a href="https://christophergs.com/machine%20learning/how-to-deploy-machine-learning-models/">https://christophergs.com/machine%20learning/how-to-deploy-machine-learning-models/</a> [published 17 March 2019].</p><p><strong>[3] </strong>Thuwarakesh Murallie <a href="https://towardsdatascience.com/3-ways-to-deploy-machine-learning-models-in-production-cdba15b00e">https://towardsdatascience.com/3-ways-to-deploy-machine-learning-models-in-production-cdba15b00e</a> [published 09 Nov 2021].</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=14dc6abfc04d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>