<?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 Mitali Agrawal on Medium]]></title>
        <description><![CDATA[Stories by Mitali Agrawal on Medium]]></description>
        <link>https://medium.com/@agrawal.mitali?source=rss-9a9c34e05b6e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*d2XP8tB7l8z8hsyGj59I2Q.jpeg</url>
            <title>Stories by Mitali Agrawal on Medium</title>
            <link>https://medium.com/@agrawal.mitali?source=rss-9a9c34e05b6e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 22:19:53 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@agrawal.mitali/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[MLOps: Monitoring phase]]></title>
            <link>https://medium.com/sogetiblogsnl/mlops-monitoring-phase-df523cccb025?source=rss-9a9c34e05b6e------2</link>
            <guid isPermaLink="false">https://medium.com/p/df523cccb025</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[mlops]]></category>
            <category><![CDATA[monitoring]]></category>
            <dc:creator><![CDATA[Mitali Agrawal]]></dc:creator>
            <pubDate>Fri, 19 Aug 2022 07:03:04 GMT</pubDate>
            <atom:updated>2022-08-19T07:03:04.098Z</atom:updated>
            <content:encoded><![CDATA[<p><em>A path to build reliable, robust, and consistent ML models</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Iw2tml2qkysOUNoLrVWIlw.png" /></figure><h3>Introduction</h3><p>We recently published five blogs of a six-part series about the importance and necessity of having a solid MLOps implementation where we looked at the different phases of MLOps namely, Problem Formulation, DataOps, Modeling, and CI/CD. In this final blog post we aim to elaborate on a quintessential MLOps phase that is the crown of the entire process — Monitoring.</p><p>We illustrate the importance of Monitoring and introduce the players involved in this part. We then discuss the main activities and expand on some design principles to keep in mind while setting up this part of the MLOps process. Finally, we look at the principles that govern the monitoring to understand this phase in a broader context.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/861/1*E3Wq53qR0CLk-iEVe5jYfw.png" /><figcaption><strong>Figure 1</strong>: High level overview MLOps — phases and the involved players with an emphasis on Monitoring.</figcaption></figure><h3>The why and the who of monitoring</h3><p>Why did we call this phase the crown of the entire ML pipeline? Because this is where we get to see and analyze the outputs of our ML model. Monitoring is where the seeds of improvement lie for the experimental nature of ML algorithms. But ML pipelines come with their own technical debts, i.e., long-term costs incurred by moving quickly in development. From the ML side, while training and deploying ML models is relatively cheap and can follow fast release cycles, the maintenance is difficult and expensive. Like any other software pipeline, they need a health check on interacting services, cloud deployments, system performance, network traffic, latency, and so on, which are not discussed in this blog. In this blog, we want to focus on the ML debts, i.e., model and data, and additional <a href="https://proceedings.neurips.cc/paper/2015/file/86df7dcfd896fcaf2674f757a2463eba-Paper.pdf">hidden technical debt</a> ML has in terms of unpredictable behavior in production over time.</p><p><strong>Data-dependency</strong> is a critical aspect where the ML pipeline differs from traditional software. The data is continuously subject to change, and business requirements also constantly shift. This instability in input data can lead to model decay which is the hidden technical debt of ML, the risk of <strong>concept</strong> and <strong>data</strong> <strong>drift</strong>. AI models are only as good as their ability to simulate real-world phenomena to predict an output. As AI is increasingly being used in decision processes, it is unacceptable for the model to drift thereby giving less relevant predictions.</p><p><strong>Entanglement</strong> is another technical debt. The ML models use multiple input signals, entangling them to calculate meaningful features. So, if the distribution of any input signal changes, its feature weights will change, which can change the weights of all other remaining features. This scenario is also called CACE: changing anything changes everything issue. Hence even some silent ‘improvements’ or small hardware ‘calibrations’ can lead to sudden ramifications for the model. Therefore, it is important to make sure we know what to monitor and how to mitigate the technical debt of ML.</p><p>The <strong>key players</strong> in this phase are the <em>data analysts</em>, <em>data analytics architects</em>, and <em>risk managers</em>. The data-analytics architect advises the right technologies to analyze and visualize the data from the wide range available on the modern market, from commercial to open source. Furthermore, the analytics architect evaluates non-functional attributes, such as security, utility, and stability. Thus, within MLOps, the analytics architect demands an overview of the models and their related data resources. Since the data can be multi-dimensional, data analysts often manipulate and aggregate the data before performing fundamental analysis or monitoring. The risk manager’s task is to assess — from beginning to end of the MLOps process — whether the ML model carries a risk for the organization from a regulatory or privacy aspect.</p><p>Although data analysts have the technical skills to manipulate and visualize the data, they often lack a deeper understanding of their business domain. For this reason, <em>Data Scientists</em> and <em>SMEs </em>are needed in this phase as well who provide the team with the proper context and data understanding. During the monitoring process, they closely observe whether the ML model’s outputs make sense. The SME must grasp the model evolution from a business perspective. Furthermore, the SME has a sharp eye to identify ML technical debts and adjust the team’s course where needed. This way, SMEs have a mechanism for providing feedback to the data scientists to improve the model performance. Thus, monitoring is required to observe and understand the ML model results and the data. It ensures consistency and robustness of the ML system and instills trust in the user.</p><h3>Activities in monitoring</h3><p>How we store the data impacts how we query it, even for analysis and monitoring. Our previous blogs from this series also illustrate fundamental principles that ensure smooth data handling at this last stage of the MLOps pipeline. The activities in the monitoring phase are described below:</p><p><strong>· Creating dashboards:</strong> Model analysis often involves high-dimensional visualization and use-case-specific data-slicing. A dashboard consists of the visualizations of all the essential metrics that need constant monitoring. It provides vital insights for detecting changes in model behavior over time, influencing business decisions and model improvements.</p><p><strong>· Analytics metrics: </strong>Metrics like data stability (i.e., distribution over time), model performance, and operations metrics. These three categories encompass all the relevant parts of an MLOps setup; hence, appropriate thresholds are defined for a healthy ML system.</p><p><strong>· Creating alerts:</strong> For active monitoring, a mechanism must exist to raise the alarm when a failure happens. A failure occurs whenever an observation value reaches the defined threshold. An alert is usually an automated message sent to the task owner whenever a failure occurs.</p><p><strong>· Feedback loops:</strong> To put it simply, you place the model in production, measure all relevant metrics, and use them to improve the model iteratively in a cycle. Providing feedback is the primary motivation for monitoring — improvement over time.</p><p><strong>· Creating training triggers:</strong> Automatic retraining of the model. How do we trigger the retraining? If the performance changes are quantified, and specific thresholds are applied based on the use case, triggers can be created to re-train and fine-tune the model hyper-parameters using the old data as well as the new data collected since the model was put to production.</p><p><strong>· Data-logging: </strong>Logging and documentation for all software development come under good coding practices, which can be a lifesaver in debugging. Furthermore, it can provide valuable information to fine-tune ML algorithms better. Alerts can also be created by automated parsing of data log files.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/866/1*lQ3aR9yEXbWFbHyp66wIcQ.png" /><figcaption><strong>Figure 2</strong>: An overview of DevOps activities (including monitoring) and illustrated interaction with other MLOps players.</figcaption></figure><p>To implement the above steps for the efficient monitoring of ML models, some reliable enterprise solutions already exist: <a href="https://docs.microsoft.com/en-us/azure/machine-learning/monitor-azure-machine-learning">Azure</a>, <a href="https://aws.amazon.com/sagemaker/model-monitor/">AWS</a>, and <a href="https://cloud.google.com/vertex-ai/docs/model-monitoring">Google Vertex AI</a> monitoring services. These platforms provide active monitoring to detect feature and data skews/drifts, creating dashboards and alerts etc. Although these pipelines can also be set up by data-analysts using Microsoft <a href="https://powerbi.microsoft.com/en-au/power-bi-and-azure/">Power BI</a>, <a href="https://neptune.ai/home">Neptune</a>, or <a href="https://www.tableau.com/data-insights">Tableau</a>, and guidance from data scientists to include the domain-specific visualizations can be a bonus.</p><p>While implementing these functional monitoring steps, it is important to recall the principles which govern the design principles of this phase: reliability, robustness, and consistency.</p><p><strong>Reliability principle</strong></p><p>Reliability focuses on assessing and governing how trustworthy and fail-safe the ML system is, rather than how well it performs “on paper”. Under the monitoring phase’s reliability principle, we must ensure that the models placed in production don’t produce any technical debt such as availability, system performance, security, data drift, latency, etc. Since the reliability of ML systems depends on data and code, both aspects must be thoroughly scrutinized in monitoring and debugging. Tracking system behavior and model performance in real-time, with automated alerts for any threshold violation, ensures long-term ML system reliability. Apart from this, we can choose to continuously monitor and validate the extracted features to create valuable logs for analysis and improvements. All the up-stream producers of the data (used for data filtering and manipulation) should be monitored after every pre-processing step for added reliability.</p><p>Since the ML models can negatively impact the downstream processes, it can be wise to continuously assess the impact of the model staleness to ensure reliability. Models should be tweaked and retrained over time to address the changing data and business needs. This can lead to <a href="https://towardsdatascience.com/technical-debt-in-machine-learning-8b0fae938657#:~:text=Correction%20cascades%20happen%20when%20the,is%20called%20a%20correction%20cascade.">correction cascades</a> resulting in improvement deadlocks. One way of achieving reliability is to avoid correction cascades by doing small A/B testing with older model versions on current data. Older model versions are sometimes more generalized and can perform better on the changing data. Re-visiting ML model versions for fresh improvements can help break the improvement deadlock of models. Another way to ensure the reliability of the whole ML system is to have rollback procedure ready, especially when deployment dependencies are high, to deploy-back the older version of model in case of failures.</p><p>It is always nice to have a rubric handy for ensuring reliable development of ML systems in production environment, which is exactly what a team from Google documented and can be found <a href="https://storage.googleapis.com/pub-tools-public-publication-data/pdf/aad9f93b86b7addfea4c419b9100c6cdd26cacea.pdf">here</a>.</p><p><strong>Robustness</strong></p><p>This principle is tightly connected to the previous one, but it is also essential to look at the overall model performance over time and on unseen data. A robust ML algorithm will have a low testing error, i.e., low bias, even under unforeseen system changes. Following the continuous testing phase described in our previous blog ensures robustness through a test strategy. The test results and final tested model versions create ground truth subsets of data to validate against. The ground truth labels are then used to perform targeted analysis to ensure robust ML model performance.</p><p>One way is to analyze the prediction bias. In a healthy ML system, predicted labels’ distribution is equal to observed labels’ distribution. In case of multiple input data sources, data entanglement leads to hidden feature dependencies across such multi-dimensional data. Continuous visualization across data slices, like different data sources, across different feature space, often provides valuable insights in creating robust models. Another way to increase model robustness is by monitoring that the model performance is similar for all these data sources. Testing ML models with <a href="https://storage.googleapis.com/pub-tools-public-publication-data/pdf/aad9f93b86b7addfea4c419b9100c6cdd26cacea.pdf">considerations of inclusion</a> (in training data) can also positively impact the robustness of the ML system.</p><p><strong>Consistency</strong></p><p>A consistent pipeline will perform as expected over time. We need to re-train ML models because of their data-dependent nature, to minimize the risk of concept and data drift. The statistical distribution of data and corresponding features can change with time, and COVID is a perfect example, where all prediction models were affected drastically. The data shift may be prominently visible in the monitoring of accuracy and performance metrics of the model or can be hidden in the underlying shift of configuration assumptions. Thus, statistical tools like <a href="https://www.sas.com/nl_nl/company-information/vision-mission.html">SAS</a> is widely used to check and analyze data and detect data-drift using techniques like <a href="https://medium.com/geekculture/monitoring-feature-draft-in-models-e5798b1a3c39">Kolmogorov-Smirnov and chi-squared tests</a>.</p><p>One common way to deal with data dependencies is to create the versioned copy of input data over different periods and freeze the feature mappings until updated mappings are made available per the changing data. Versioning is, however, prone to model staleness and requires frequent re-trained model deployments, thus making it a costly solution. <a href="http://rstudio.com/products/rstudio/">RStudio</a> is another widely used open-source tool, which helps data scientists and analysts to work together, integrate dashboards and analyze hidden trends in the input signal.</p><p><strong>Conclusion</strong></p><p>In this blog, we complete the ML pipeline cycle and focus on a crucial phase of MLOps — Monitoring. Monitoring is required to ensure the reliability, robustness, and consistency of ML models and to analyze the model performance and data to improve the system. In this blog, we saw the importance of monitoring and how people with different expertise again come together during this last phase to enable the operations and analytics in the ML pipeline. We also saw the list of essential activities involved in monitoring and the principles that play a vital role in designing these activities. This blog also concludes the six-blog series, which highlights all the critical phases in the MLOps cycle. Ultimately, every step in the MLOps process builds the way for more trusted, transparent and performant AI models at scale.</p><p>But does the decision-making end here? We wish it were that easy! There is one more hidden aspect in ML systems — which differs entirely from traditional software development. That is the different maturity levels in which an ML project can be. Although our next post does not directly dictate the MLOps principles as this blog series does, it focuses on different ML development environments in different development stages. So, stay tuned for some fun relatable examples to understand how MLOps infrastructure and design choices vary with different maturity levels an ML system can have!</p><p>Jump to part 1 of our MLOps series:</p><p><a href="https://medium.com/sogetiblogsnl/mlops-for-those-who-are-serious-about-ai-a415d257cf4e"><strong>MLOps: For those who are serious about AI</strong></a></p><p><a href="https://medium.com/sogetiblogsnl/mlops-for-those-who-are-serious-about-ai-a415d257cf4e">https://medium.com/sogetiblogsnl/mlops-for-those-who-are-serious-about-ai-a415d257cf4e</a></p><p>Jump to part 2 of our MLOps series:</p><p><a href="https://medium.com/sogetiblogsnl/mlops-the-importance-of-problem-formulation-ee438f9987e"><strong>MLOps: the Importance of Problem Formulation</strong></a></p><p><a href="https://medium.com/sogetiblogsnl/mlops-the-importance-of-problem-formulation-ee438f9987e">https://medium.com/sogetiblogsnl/mlops-the-importance-of-problem-formulation-ee438f9987e</a></p><p>Jump to part 3 of our MLOps series:</p><p><a href="https://medium.com/sogetiblogsnl/mlops-dataops-phase-f2b288b41364"><strong>MLOps: DataOps phase</strong></a></p><p><a href="https://medium.com/sogetiblogsnl/mlops-dataops-phase-f2b288b41364">https://medium.com/sogetiblogsnl/mlops-dataops-phase-f2b288b41364</a></p><p>Jump to part 4 of our MLOps series:</p><p><a href="https://medium.com/sogetiblogsnl/mlops-modeling-phase-26ccc4f50002"><strong>MLOps: Modeling phase</strong></a></p><p><a href="https://medium.com/sogetiblogsnl/mlops-modeling-phase-26ccc4f50002">https://medium.com/sogetiblogsnl/mlops-modeling-phase-26ccc4f50002</a></p><p>Jump to part 5 of our MLOps series:</p><p><a href="https://medium.com/sogetiblogsnl/mlops-ci-cd-phase-39adee3923d2"><strong>MLOps: CI/CD phase</strong></a></p><p><a href="https://medium.com/sogetiblogsnl/mlops-ci-cd-phase-39adee3923d2">https://medium.com/sogetiblogsnl/mlops-ci-cd-phase-39adee3923d2</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=df523cccb025" width="1" height="1" alt=""><hr><p><a href="https://medium.com/sogetiblogsnl/mlops-monitoring-phase-df523cccb025">MLOps: Monitoring phase</a> was originally published in <a href="https://medium.com/sogetiblogsnl">Sogeti Data &amp; AI | Netherlands</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[MLOps: CI/CD phase]]></title>
            <link>https://medium.com/sogetiblogsnl/mlops-ci-cd-phase-39adee3923d2?source=rss-9a9c34e05b6e------2</link>
            <guid isPermaLink="false">https://medium.com/p/39adee3923d2</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[mlops]]></category>
            <category><![CDATA[ci-cd-pipeline]]></category>
            <dc:creator><![CDATA[Mitali Agrawal]]></dc:creator>
            <pubDate>Mon, 18 Jul 2022 14:05:17 GMT</pubDate>
            <atom:updated>2022-07-18T14:05:17.186Z</atom:updated>
            <content:encoded><![CDATA[<p><em>This is where ML meets DevOps</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*RAdy1XQM4P9bX6zNKVbJ_Q.png" /></figure><p>We recently published four blogs of a six-part series about the importance and necessity of having a solid MLOps implementation, Problem Formulation, DataOps, and Modeling. In this fifth blog post, we aim to elaborate on a phase where DevOps and ML come together: Continuous Integration (CI) and Continuous Deployment (CD).</p><p>In our last blog we went in-depth into the components of the modeling phase in the ML development cycle. In this blog we see the ML lifecycle management problem from the bigger perspective, illustrate the importance of CI/CD, and introduce the players involved in this part. We then discuss the main activities within CI/CD and expand on some design principles to keep in mind while setting up this part of the MLOps process. Finally, we consider the importance of this phase in a broader context.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/943/1*E3WAKN_w7yL8zdKVhv1v9Q.png" /><figcaption>Figure 1: High level overview MLOps — phases and the involved players with an emphasis on CI/CD</figcaption></figure><h3>The why and the who of CI/CD</h3><p>The purpose of MLOps is ensuring proper lifecycle management of Machine Learning model development with an end goal of scalability. As illustrated in the previous four blog posts, lifecycle management of ML and that of traditional software has some fundamental differences. The fact that we run through the ML lifecycle with people from different disciplines offers a consecutive challenge. Data engineers, domain/business experts, data scientists, IT teams: no two of them use the exact same tools or have the same skillsets. Therefore, it’s important to establish a toolset to enable the software engineers and the data scientists and engineers to work in an automated and streamlined way. CI/CD does just that, enabling the DevOps principles within MLOps, ensuring automated testing, deployment, and monitoring.</p><p>The people relevant to this process, next to data scientists, are software engineers and analytics architects. The software engineer takes care of placing the ML model in the organization’s application landscape. Starting from the model development phase, they closely collaborate with the data scientist to ensure that the model smoothly integrates with the application CI/CD pipelines, that the code is healthy and the serving efficient. To create meaningful monitoring dashboards and for efficient analysis of the model performance, input data, and other logged meta-data, Analytics Architect can advise the team.</p><h3>The activities within CI/CD</h3><p>Since CI/CD enables the DevOps principles within MLOps, the activities in this phase of MLOps are in line with the pillars of DevOps — <strong>continuous testing, continuous integration, continuous deployment, and continuous improvement</strong>, with a nuance of continuous verification of data and models in each:</p><ul><li><strong>Continuous Integration </strong>(CI): apart from testing and validating model code components, CI is about testing and validating data correctness, skewness, data schemas, and calculated feature values. CI enables the team to deliver new application features to their customers faster and more frequently.</li><li><strong>Continuous Deployment</strong> (CD): is not about deploying software as a service or a package, but deploying a ML system, consisting of data pre-processing steps. So, for automating continuous deployment, the service must be able to automatically build, test, prepare, and deploy new ML software on edge, or cloud. It should also provide flexibility to rollback to a previous version in case of poor model performance or unexpected behavior.</li><li><strong>Continuous Testing</strong> (CT): since ML development is an experimental process, it is important to save time and automate the retraining and testing of models, to ensure frequent deployments. With frequent automated testing, teams can discover bugs at an early stage before the code grows more complex.</li><li><strong>Continuous Monitoring </strong>(CM): Monitoring of model performance as well as checking the input data continuously, is a crucial step in model maintenance stage. If left unobserved, the data can shift, model can get skewed, and performance of the model can drop. It is thus important to log the meta-data and model performance to do statistical analysis of model performance over time. This pillar makes up a phase of MLOps — Monitoring, which will be the subject of our final blog post.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*c1r7R5HQjI_v1itIBjaJLw.png" /><figcaption>Figure 2: The DevOps activities and principles</figcaption></figure><p>Enterprise solutions to enable these activities are already available on <a href="https://www.azuredevopslabs.com/labs/vstsextend/aml/">Azure</a>, <a href="https://aws.amazon.com/blogs/machine-learning/build-a-ci-cd-pipeline-for-deploying-custom-machine-learning-models-using-aws-services/">AWS</a> and <a href="https://cloud.google.com/architecture/mlops-continuous-delivery-and-automation-pipelines-in-machine-learning">GCP</a>. For open-source tools, read on in the following text where we dive into these activities in more detail.</p><p><strong>Continuous Integration</strong></p><p>Before deploying ML to production, it is important to make sure that the code passes all comprehensive unit tests and integration tests. This is done to have the metrics to track the quality of code being pushed into production. These tests are automated as a part of continuous integration (CI). Thorough testing of CI pipeline can be done by using a shadow environment, which is an environment aimed to provide same dependencies and data as in the production environment. Triggers are created as soon as new source code is generated, initiating CI pipeline to build the package with all relevant dependencies and test all the components of application’s functionality.</p><p>CI provides easily managed model versions, data versions, and promotes easy experimentation, hyper-parameter tuning, model retraining, model reproducibility and testing. Creating code which can be easily integrated into existing legacy code, also shares many similarities from DevOps architecture and practices. Just like any traditional software, good architectural design choices and coding standards can help in smooth integration. Software engineers often have deeper knowledge of how to create reusable, efficient, and scalable code. DevOps practices, like having documented rules from software architects for best-coding practices, documentation and use of dependent APIs, having code reviews before pushing new code in automated CI pipelines are few things one can incorporate for increasing efficiency of this phase.</p><p>To mask the complexity of managing and testing different model versions, <a href="https://mlflow.org/">MLFlow</a> tool with tracking server can be used. It can be used to define the metrics and unit tests for the code being deployed or tested. It also provides logging options on localhost or server, which provides the developers flexibility to quickly test and compare the results of multiple models.</p><p><strong>Continuous Deployment</strong></p><p>Once the code is thoroughly tested, it is ready to be deployed to the target environment. Deployment types are dependent upon what kind of new code/service is being brought in the environment. In this stage compatibility of the code with all other modules must already work. If the new code change is a retrained model or some new assisting feature, then the most common deployment technique is <strong>canary deployment</strong>. In it, a small portion of the traffic is diverted towards the new algorithm being rolled out. Logs and dashboards are continuously monitored and if the statistics are as per requirements, greater chunk of traffic is shifted and so on. In such deployments, the negative impact of a poor performing ML model can be minimized. Another common type of deployment pattern is deploying multiple models in production and perform <strong>A/B testing</strong>. This helps analyze the behavior of different solution algorithms coded in the model under different scenarios and select the best performing model. If the model is retrained or replaced with a newer algorithm, <strong>blue green</strong> deployment techniques are often used. In it, the traffic is either routed to the old software version (blue version) or is routed towards new code version (green version). This distributes the traffic amongst old and new versions of the applications, and when the team feels the new code is stable, the entire traffic is rerouted towards the new green software version.</p><p>The blue green deployment is a type of progressive deployment where the main aim is to gradually roll out the changes, while having the live application as a secure backup. In progressive deployments multiple versions of software services are deployed like A/B testing, and the traffic is gradually shifted by servers or load balancers. These steps ensure there is zero downtime in critical applications serving live traffic, and that the rollback is easy providing high reliability.</p><p>To manage these different deployments and track them, containers offer an easy solution. Containers like <a href="https://www.googleadservices.com/pagead/aclk?sa=L&amp;ai=DChcSEwjogLb5nPj4AhXN2dUKHf6HDEwYABABGgJ3cw&amp;ohost=www.google.com&amp;cid=CAESa-D2aZxCIqeeATtQ-mZliJGPzwcnaboXEKfl6WFfRlYNI8za2q7WcCSWZRbHONl_8EUECnFlfj7qOJwb_0HXjzYerx_XPagyIcmin1Nq0S_tW2YMBBEmYA2uDplCVNvrOb_FcQ-cWSh0oDxw&amp;sig=AOD64_3Awdq8wE2jezpL8cIGwfpCq6WznA&amp;q&amp;adurl&amp;ved=2ahUKEwjtvqr5nPj4AhXTM-wKHRRzD9YQ0Qx6BAgEEAE">Docker</a> wrap the model code and all the dependencies in a package which is then ready to be deployed on the server. They use REST APIs to provide reusable or dedicated model servers. According to the project and cost requirements containers offer a variety of functionalities, scalability being one of them. Using containers, developers can easily monitor the resources required by the application and scale vertically or horizontally whenever required.</p><p><strong>Continuous Testing</strong></p><p>Once the new software code is deployed in the production pipeline, automated data and model analysis and tests should be performed. In this step, extensive tests must be done to check if the model performance is same as expected under different scenarios specially the edge cases. It involves testing of code and its integration as software with other dependent applications. It is a framework which ensures that with every new deployment, there is no added risk into the system. We discussed the types of tests which can be used to validate models and data in the ML pipelines, like unit tests, robustness tests, acceptance tests in our previous blog. The essence of doing continuous testing is to promote and support experimentation of ML algorithms. With automated continuous testing and deployments, data scientists have the flexibility to test several hypotheses tailored to specific domain problems and provide innovative, efficient solutions.</p><p>Similar tools like MLFlow or setting up automated pipelines like <a href="https://www.tensorflow.org/tfx">Tensorflow Extended (TFE)</a>, <a href="https://www.kubeflow.org/">Kubeflow</a> and <a href="https://go.seldon.io/seldon-deploy?gclid=CjwKCAjw_b6WBhAQEiwAp4HyIOV9oMGgB3bKQ-jip7SQD-3t2PGP2yCRn-I7POIw0dsYeKVEUkpx9hoCtxEQAvD_BwE">Seldon Deploy</a> can be used to easily deploy ML model and code modules. These self-contained pipelines hide the underlying complexity and wrap it into a function which can be used to define extensive tests for model code analysis.</p><h4>Conclusion</h4><p>Orchestrating a Machine Learning pipeline can be overwhelming because the design choices we make must ensure that the negative impact of the deployment process is none. In this blog we saw the important factors one must consider while developing a scalable, resilient, and robust ML pipeline in line with DevOps. These tips help the team to better manage the ML pipelines, so that debugging, tracking, and testing can be done frequently leading to the delivery of a quality service.</p><p>Once we have successfully deployed the ML service in the system, either on cloud or edge, we must continuously monitor the performance of the model and quality of incoming data. The tracking and logging techniques we discussed can be used to provide valuable insights for model advancement and data evolution. Therefore, monitoring services work hand in hand with CI/CD services to ensure that the model performance does not drop. The next blog post elaborates this ‘Monitoring’ stage in the ML pipeline and how it can be used with CI/CD modules to create an end-to-end reliable service.</p><p>Jump to part 1 of our MLOps series:</p><p><strong>MLOps: For those who are serious about AI</strong><br><a href="https://medium.com/sogetiblogsnl/mlops-for-those-who-are-serious-about-ai-a415d257cf4e">https://medium.com/sogetiblogsnl/mlops-for-those-who-are-serious-about-ai-a415d257cf4e</a></p><p>Jump to part 2 of our MLOps series:</p><p><a href="https://medium.com/sogetiblogsnl/mlops-the-importance-of-problem-formulation-ee438f9987e"><strong>MLOps: the Importance of Problem Formulation</strong><br><em>Original article…</em>medium.com</a></p><p>Jump to part 3 of our MLOps series:</p><p><a href="https://medium.com/sogetiblogsnl/mlops-dataops-phase-f2b288b41364"><strong>MLOps: DataOps phase</strong><br><em>Treat your data as an asset in an MLOps cycle</em>medium.com</a></p><p>Jump to part 4 of our MLOps series:</p><p><strong>MLOPS: Modeling phase</strong></p><p><a href="https://medium.com/sogetiblogsnl/mlops-modeling-phase-26ccc4f50002">MLOps: Modeling phase</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=39adee3923d2" width="1" height="1" alt=""><hr><p><a href="https://medium.com/sogetiblogsnl/mlops-ci-cd-phase-39adee3923d2">MLOps: CI/CD phase</a> was originally published in <a href="https://medium.com/sogetiblogsnl">Sogeti Data &amp; AI | Netherlands</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>