<?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 Vishnu Prathish on Medium]]></title>
        <description><![CDATA[Stories by Vishnu Prathish on Medium]]></description>
        <link>https://medium.com/@vishnuprathish?source=rss-9e46030f7b47------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*D9xf08zq0PmmoJm02N_0zg.png</url>
            <title>Stories by Vishnu Prathish on Medium</title>
            <link>https://medium.com/@vishnuprathish?source=rss-9e46030f7b47------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 21:08:00 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@vishnuprathish/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[Why does your Machine Learning Ops feel inadequate?]]></title>
            <link>https://medium.com/data-science/why-does-your-machine-learning-ops-feel-inadequate-430fdee7d687?source=rss-9e46030f7b47------2</link>
            <guid isPermaLink="false">https://medium.com/p/430fdee7d687</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[ci-cd-pipeline]]></category>
            <category><![CDATA[opinion]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[mlops]]></category>
            <dc:creator><![CDATA[Vishnu Prathish]]></dc:creator>
            <pubDate>Wed, 17 Feb 2021 14:54:40 GMT</pubDate>
            <atom:updated>2022-08-10T03:20:44.498Z</atom:updated>
            <content:encoded><![CDATA[<h4><a href="https://towardsdatascience.com/tagged/opinion">Opinion</a></h4><h3>Why does your MLOps feel inadequate?</h3><h4><em>Causes of fragmentation for Machine learning processes and why many practices are still bespoke.</em></h4><p>Every time I design a new microservice, there is a TODO checklist that I check against. An early item in this list is about setting up CI/CD for the new service. I think about what the artifacts are and how they get formed at various stages. I consider how it eventually gets deployed to production and how it gets monitored post-deployment.</p><p>This situation is not unique to me. Modern software engineering practices implement <a href="https://semaphoreci.com/blog/cicd-pipeline">well-thought CI/CD</a> principles as a norm. However, when I started the MLOps journey for our company, I realized that CI/CD of the kind practiced in software engineering is not a standard in Data Science practices.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*06HrujtZ_uUfU8YJ" /><figcaption>MLOps is very bespoke (Photo by <a href="https://unsplash.com/@jeswinthomas?utm_source=medium&amp;utm_medium=referral">Jeswin Thomas</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a>)</figcaption></figure><p>It was almost hard to believe. Because I thought that human-error induced <a href="https://towardsdatascience.com/rookie-errors-in-machine-learning-bc1c627f2789">model quality problems</a> are pervasive in the industry. Is it because there aren’t enough quality and automation considerations going into a typical ML process? Or does it need an entirely new style of ops toolkit that hasn’t been truly figured out yet? As I discovered later, it turned out to be a combination of both. And many others.</p><p>Here is a summary of those findings.</p><ul><li><strong>Many data science operations are plainly immature — </strong>We<strong> </strong>can’t ignore the obvious. Several data science operations aren’t at a scale to put the necessary thought into Ops. A company I encountered sends every new model from the data scientist’s local Jupyter notebook over <em>slack</em> to the data engineering team, who would copy it into their production environment. While this is an incredibly naive practice overlooking several quality aspects, the rest of this company&#39;s software operations was solid. This practice tells me how overlooked MLOps really is.</li><li><strong>New models need breathing room before getting bogged down with MLOps — </strong>A new ML model is often built to handle an entirely new problem that requires new frameworks around inference to run in production. The building process goes through a lot of experimentation &amp; evaluation - And only upon demonstrating the business success of this model is an inference framework is built around it. As a result, the deployment process is often an afterthought. And whenever this framework gets formulated, it is a very custom process.</li><li><strong>Too many frameworks without a clear winner —</strong> Data science practices are too custom, stringing together several ML frameworks for various sections of the pipeline. And there isn’t a single winner among the top ML frameworks (For example, consider deep learning — Pytorch, MXNet, Tensorflow) yet. The existence of several frameworks makes process standardization incredibly challenging for an external vendor to do.</li><li><strong>Advanced ML pipelines are sometimes just not implemented </strong>— This includes capabilities like monitoring your models in production for drift, automated retraining using live data, enabling centralized data cleaning and feature engineering, etc. Even though these are valuable tools for any model running in production to have, the engineering effort behind them is so large that many orgs do not simply put the effort.</li><li><strong>Cloud AutoML- </strong>Cloud Services that support AutoML(<a href="https://aws.amazon.com/sagemaker/autopilot/">Sagemaker</a>, <a href="https://cloud.google.com/automl">Cloud AutoML</a>, <a href="https://www.datarobot.com/platform/automated-machine-learning/">Datarobot</a>) already come with strong CI/CD capabilities that are inherent to it. I’m not just talking about automated algorithm selection. Any software that can automate the data science pipeline(feature engineering, data processing, algorithm selection, inference, etc. ) must have a reasonable level of CI/CD and engineering behind it. <br>The software to operationalize this model is often built around a standardized inference template usually provided by this same AutoML framework. In fact, you could make the case that if you are working with some form of AutoML, you already have a sort of CI/CD. But often, this is not enough. CI/CD is only one part of a reliable MLOps process. In this case, you are still relying on an individual to get the deployment right. Enough checks and balances aren’t there.</li></ul><h4><strong>Also, Data Scientists aren’t Software Engineers.</strong></h4><blockquote><em>The reason why software engineering has several guardrails in place is because of the underlying assumption that humans make mistakes. It is well understood, theorized and years worth of processes has been built around this. However, the machine learning industry is still playing catchup to this fundamental idea.</em></blockquote><p>Data scientists have a different thought process than software engineers. Developers, every day, are concerned with the operational aspects of their code. They build quality gates and checks all the way into production.</p><p>On the other hand, data scientists delve into complicated math and analysis of data. Code quality, pipelines &amp; automated testing is not exactly on top of their mind when building a new model. Most of the time, it is not even fair to ask them of that.</p><p>However, to get MLOps right, we need classic software engineering in the mix. Often this title gets masqueraded as a <em>Data Engineer</em>. But with MLOps gaining more popularity, there needs to be more nuance to this role. This role is often used in the context of scaling the data that goes into the pipeline(ETL, Spark, etc) and not the ML model-related problems. For example, this person has to think about,</p><ul><li>How to create a reproducible data cleaning and feature engineering pipeline between model training and model inference</li><li>How to track the experiments and which metrics need to be aggregated to a dashboard</li><li>How to monitor models in production by tracking drift. And how to enable live retraining using new data</li></ul><p>These are challenging problems that need both data science and software engineering thought processes. Various specialized roles that study each of these problems at scale need to be incorporated into the title ‘Data Engineer’ or its equivalent.</p><h4>Afterthought</h4><p>The solution to everything I talked about is seemingly apparent — A solid MLOps pipeline for your machine learning process. When this happened to us, we set forth in search of a provider who did MLOps out of the box. After a few months of investigations that proved futile, we had to build it ourselves to fit this use case. Just like everyone else I talked about.</p><p>It does what it is designed to do. But are we ever going to reach a point where we can open source it? Probably not.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*p2xmqBc1T3QM_J2zhWXCZw.png" /><figcaption>CI/CD for ML practice (Image by Author)</figcaption></figure><h4>References</h4><ul><li><a href="https://towardsdatascience.com/7-mlops-smells-that-tells-that-your-ml-process-stinks-2f389c3ebd11">7 MLOps ‘Smells’ that tells that your ML process stinks</a></li><li><a href="https://aws.amazon.com/solutions/implementations/aws-mlops-framework/">AWS MLOps Framework | Implementations | AWS Solutions</a></li><li><a href="https://cloud.google.com/solutions/machine-learning/mlops-continuous-delivery-and-automation-pipelines-in-machine-learning">MLOps: Continuous delivery and automation pipelines in machine learning</a></li><li><a href="https://azure.microsoft.com/en-ca/services/machine-learning/mlops/">Machine Learning Operations - MLOps | Microsoft Azure</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=430fdee7d687" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science/why-does-your-machine-learning-ops-feel-inadequate-430fdee7d687">Why does your Machine Learning Ops feel inadequate?</a> was originally published in <a href="https://medium.com/data-science">TDS Archive</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Amazon is reinventing MLOps]]></title>
            <link>https://medium.com/analytics-vidhya/amazon-is-reinventing-mlops-57f36c0b2d0a?source=rss-9e46030f7b47------2</link>
            <guid isPermaLink="false">https://medium.com/p/57f36c0b2d0a</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[mlops]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Vishnu Prathish]]></dc:creator>
            <pubDate>Sat, 16 Jan 2021 12:47:09 GMT</pubDate>
            <atom:updated>2021-02-16T16:49:08.373Z</atom:updated>
            <content:encoded><![CDATA[<h3>Amazon is reinventing MLOps. And Nobody’s catching up.</h3><h4>Key AWS services shaping Machine Learning landscape in 2021</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*XnhxAYFgb_MK8STL" /><figcaption>Photo by <a href="https://unsplash.com/@christianw?utm_source=medium&amp;utm_medium=referral">Christian Wiediger</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>It’s not news that AWS has the <a href="https://www.geeksforgeeks.org/top-cloud-computing-platforms-for-machine-learning/#:~:text=There%20are%20many%20cloud%20computing,Google%20Cloud%2C%20and%20IBM%20Cloud.">broadest set</a> of Machine Learning capabilities among the big three cloud providers. With the public availability of <a href="https://aws.amazon.com/blogs/aws/amazon-sagemaker-studio-the-first-fully-integrated-development-environment-for-machine-learning/">Sagemaker Studio in early 2020</a>, they created a fully integrated ML Dev environment – a first-of-it’s-kind.</p><p>Anchoring an IDE at the center of all ML offerings is a smart move — provided your surrounding services fill the key ops gaps correctly. If done well, Amazon has the opportunity to once-and-for-all reshape the way Machine Learning is done in the industry.</p><p>Even before Sagemaker Studio, AWS had a handful of services geared towards MLOps. However, <a href="https://reinvent.awsevents.com/">Re:invent 2020</a> has raised the bar even higher. They’ve released a series of products/services that fill most of the known gaps.</p><p>Now, did they do it well? Have they built the right tools for the right audience? We won’t know for a few years. But AWS sure has a front-row position for that race. Now, let’s examine some critical new services that will help understand the edge AWS has in this game.</p><h3>AWS’s Existing MLOps Suite</h3><p>Amazon’s existing offerings are firmly based on Sagemaker Studio at its core. It provides a first-of-its-kind Integrated Development Environment for ML development. Here are other features that work on top of it that already makes it very appealing:</p><ul><li><a href="https://docs.aws.amazon.com/sagemaker/latest/dg/notebooks.html">Sagemaker studio notebooks </a>will provide serverless Jupyter notebooks replacing your local ones. It also supports local mode. But I strongly urge you to set up your modeling dev environments around centralized notebooks.</li><li><a href="https://aws.amazon.com/sagemaker/autopilot/">Sagemaker Autopilot</a> brings <a href="https://en.wikipedia.org/wiki/Automated_machine_learning">AutoML</a> into AWS, taking out all the heavy lifting from the ML process.</li><li><a href="https://aws.amazon.com/blogs/aws/amazon-sagemaker-experiments-organize-track-and-compare-your-machine-learning-trainings/">Sagemaker Experiments </a>allows you to save and trace your training experiments. It also allows comparing one with the other allowing one to pick the best model from a table of experimental results manually.</li><li><a href="https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning.html">Sagemaker Model tuning</a> allows you to leverage the cloud to automate Hyperparameter Optimization.</li><li><a href="https://docs.aws.amazon.com/sagemaker/latest/dg/multi-model-endpoints.html">Multimodel endpoints </a>will reduce your inference cost significantly.</li><li><a href="https://docs.aws.amazon.com/sagemaker/latest/dg/model-monitor.html">Model monitor</a> allows you to track metrics in production, making it easy to track Model drift.</li></ul><h3>What&#39;s new in 2021?</h3><p>Despite being the leading ops provider for ML services, AWS still couldn’t claim to have a well-connected development environment for all Machine Learning purposes. There were crucial gaps in several areas of MLOps.</p><blockquote>There was no coherent CI/CD pipeline that could tie them together. Without it, it felt like a series of disparate services. The individual offerings across various phases of the ML process (Data Prep, Training, Validation, Inference, Monitoring) also weren&#39;t complete.</blockquote><p>But that’s changing. With new services being released in re: invent 2020(in December and a few releases before that), AWS is opening the year, filling most gaps and leaving most of the other providers far behind.</p><p>Here are some.</p><h4>Data Wrangler: Zero code Data Preparation</h4><p>AWS Sagemaker <a href="https://aws.amazon.com/sagemaker/data-wrangler/">Data Wrangler</a> (not <a href="https://github.com/awslabs/aws-data-wrangler">this</a> one) provides a clean Jupyter style IDE for machine learning data preparation. It is directly built on Sagemaker Studio, hence uses all the powerful features of the studio. Like its data visualizations.</p><p>Even though, technically a no-code tool, Data Wrangler is very much customizable with code. There are over 300 built-in automatic transformations you can apply to your training data. You can export workflow with a single click to a Sagemaker notebook and build in-place models. It also supports several data stores directly – including Snowflake, MongoDB, and Databricks.</p><p>Data Wrangler fixes a large gap Amazon had on Data Preparation for ML. They claim that by simplifying data preparation this way, <a href="https://www.datanami.com/2020/07/06/data-prep-still-dominates-data-scientists-time-survey-finds/">hours spent on data prep</a> gets significantly cut down.</p><h4>Sagemaker Data Brew: Same thing, but <a href="https://julsimon.medium.com/data-preparation-aws-glue-data-brew-or-amazon-sagemaker-data-wrangler-d8e76d1510cb">done differently</a></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QI4jaziU1hSi6cI-67OLhg.png" /><figcaption>Sagemaker Data Brew</figcaption></figure><p><a href="https://aws.amazon.com/blogs/big-data/preparing-data-for-ml-models-using-aws-glue-databrew-in-a-jupyter-notebook/">Data Brew</a> is also no code data preparation tool. But the two tools work with two different audiences in mind. While data wrangler is geared exclusively for ML, data brew is focused on general-purpose exploratory data analysis (EDA). Also, Data Brew is a UI centric tool.</p><p>EDA is often a prerequisite for ML, so there is no reason they can’t go hand in hand. Data brew makes the Job much more straightforward with one click profiling and a thoughtful interface geared for someone who doesn’t code.</p><p>Feature Engineering can be done in both tools. However, only data wrangler supports exporting feature space to AWS Feature store, making this tool all the sweeter.</p><p>Another gap. Fixed.</p><h4>AWS Feature Store: Feature Engineering @ scale</h4><p>This is a big release solving a critical <a href="https://towardsdatascience.com/real-time-feature-engineering-with-a-feature-store-2d51ce925734">feature engineering disconnect</a>. Many ML practices have a disparity between offline (Batch) and online (real-time) feature engineering. Complex feature engineering transformations and new features built during batch don’t easily translate to inference/prediction pipeline very well.</p><p><a href="https://aws.amazon.com/sagemaker/feature-store/">Feature store</a> solves this problem by putting an exclusive feature-space specific repository in between these two points. Everything you do on raw data in your Sagemaker studio during training can be exported to the feature store, and you can be guaranteed that it gets correctly replicated during inference.</p><p>In addition to fixing this online-offline problem, it also supports feature discoverability, sharing, and feature reuse. The design also considers latency — which is a must-do at scale.</p><h4>Sagemaker Pipelines: CI/CD for your ML Process</h4><p>To me, this service was the biggest ops release of the year.</p><p><a href="https://towardsdatascience.com/7-mlops-smells-that-tells-that-your-ml-process-stinks-2f389c3ebd11">Although a significant p</a>rerequisite for scalable ML, there is no reliable CI/CD process/framework out there that works well. Everyone either has a sub-optimal MLOps process, OR they have built their own version (including myself) of CI/CD.</p><p>The problem with custom CI/CD frameworks for ML is that they aren’t generalizable and hence can not be easily open-sourced. Many domain knowledge inevitably gets coded into it — both to cut short the development time and integrate better with existing services. AWS intends to fix that problem with a general-purpose CI/CD framework for ML.</p><p>Sagemaker Pipelines allows you to create, visualize, and manage ML workflows. It gives you the capability to create separate development and production environments and track them. Environments allow you to do artifact promotion. It also comes with a model registry that allows you to track and choose the right model for deployment.</p><p>One not-so-obvious effect of pipelines is that it also weaves together every other Sagemaker service intended for ML. This is what gives a true win for AWS as it enables a true end to end ML.</p><h3>Other related stuff from re: invent</h3><h4>Sagemaker Clarify:</h4><p>Bias detection across e2e Sagemaker workflow. A big one for B2C companies.</p><h4>Sage maker debugger improvements</h4><p>Monitoring and deep profiling of resource utilization during training. Especially on Deep Neural Nets.</p><h4>ML on Edge</h4><p>Built on top of AWS <a href="https://aws.amazon.com/sagemaker/neo/">Neo</a>, <a href="https://aws.amazon.com/sagemaker/edge-manager/">Sagemaker edge manager</a> introduces model management for edge devices. Particularly useful if you are in the IoT industry.</p><h4><strong>Database ML Capabilities</strong></h4><p>Not quite MLOps, but Amazon’s new database ML services does draw a common theme with it- build a smooth production-grade ml process that removes the need for Ops altogether.</p><ul><li>Amazon Redshift ML – Integrates Sagemaker Autopilot into Amazon Redshift</li><li>Amazon Neptune ML – integrated Graph ml</li><li>Amazon Aurora ML — Integrates ML right into the Postgres using SQL queries.</li><li>Amazon Athena ML — Provides pre-trained models on Athena.</li></ul><h3>How do others fare?</h3><p><a href="https://azure.microsoft.com/en-ca/services/machine-learning/">Azure Machine Learning</a> and <a href="https://cloud.google.com/ai-platform">Google Cloud AI platform </a>are the top two MlOps providers best positioned among the top cloud providers. Both have robust pipelining and CI/CD capabilities. However, the Google AI pipeline is still in beta while its AWS analog is already General Availability. <a href="https://studio.azureml.net/">Azure Machine Learning Studio</a> feels very similar to Sagemaker, but not quite as many services are built under the umbrella.</p><p>The model the other providers follow does not include an integrated IDE at the center of it.<a href="https://studio.azureml.net/"> Azure ML Studio </a>seems to be an attempt at this. However, it is significantly limited in the feature set.</p><h3>Thanks for reading</h3><p>It does seem that Amazon is significantly more invested in providing better data science operations solutions than the other leading providers. Does that firmly establish their spot as the most integrated MLOps suite out there? I think so. The 3–5 year head-start (or more? I can’t find a reference here) that Amazon had in developing cloud solutions shows. However, it is a little too early to decide who is gonna win the MLOps game.</p><h4>References</h4><ul><li><a href="https://press.aboutamazon.com/news-releases/news-release-details/aws-announces-six-new-amazon-sagemaker-capabilities-including">AWS Announces Six New Amazon SageMaker Capabilities, Including the First Fully Integrated Development Environment (IDE) for Machine Learning (Amazon SageMaker Studio) | Amazon.com, Inc. - Press Room</a></li><li><a href="https://aws.amazon.com/sagemaker/feature-store/">Amazon SageMaker Feature Store for machine learning (ML) - Amazon Web Services</a></li><li><a href="https://techcrunch.com/sponsor/microsoftazure/why-firms-are-welcoming-mlops-into-the-fold-of-software-development/">Why firms are welcoming MLOps into the fold of software development</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=57f36c0b2d0a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/analytics-vidhya/amazon-is-reinventing-mlops-57f36c0b2d0a">Amazon is reinventing MLOps</a> was originally published in <a href="https://medium.com/analytics-vidhya">Analytics Vidhya</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[7 MLOps ‘Smells’ that tells that your ML process stinks]]></title>
            <link>https://medium.com/data-science/7-mlops-smells-that-tells-that-your-ml-process-stinks-2f389c3ebd11?source=rss-9e46030f7b47------2</link>
            <guid isPermaLink="false">https://medium.com/p/2f389c3ebd11</guid>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[mlops]]></category>
            <category><![CDATA[pipeline]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Vishnu Prathish]]></dc:creator>
            <pubDate>Wed, 30 Dec 2020 08:18:20 GMT</pubDate>
            <atom:updated>2021-04-15T15:12:00.826Z</atom:updated>
            <content:encoded><![CDATA[<h3>7 MLOps ‘Smells’ that show where your ML process lacks</h3><h4>Bad practices and other symptoms in your Machine Learning process that indicates a deeper problem</h4><p>Code <a href="https://martinfowler.com/bliki/CodeSmell.html">smells</a> are a common way of identifying hidden problems in your code using a surface level inspection. Here are some practices that show similar smells in your Machine learning process. They increase the probability of hidden errors in your ML practice over the long term.</p><h4><strong>You are directly manipulating model artifacts.</strong></h4><blockquote>After training is complete, data scientists sometimes <em>send</em> models into standard locations such as <a href="https://aws.amazon.com/s3/">S3</a> bucket. This is then picked up by the production inference framework. Or even picked up manually by another team for further processing.</blockquote><p>This is a single example of how models artifacts get manipulated by-hand in a data science company. There are several other versions of this — that could be happening to you. Beyond the scalability issues of this practice, it exposes a lack of fundamental MLOps thinking in your Machine Learning process.</p><p>Fix this by having a CI/CD pipeline for managing your model artifacts. <a href="https://mlflow.org/">MLFlow</a> or <a href="https://aws.amazon.com/sagemaker/pipelines/">Sagemaker Pipelines</a> provides a good one.</p><h4><strong>You have difficulty reproducing data transformations for inference.</strong></h4><p>Sometimes there is a large number of transformations done on data before training. This could be because of the unreliability of your source data. Hence your data prep (cleaning and anomaly removal) phase is relatively long. Or this could be the result of complex <a href="https://en.wikipedia.org/wiki/Feature_engineering">Feature engineering</a> steps that you have to undergo. Either way, since this is done on batch mode for training, they need to be reproduced correctly for inference as well.</p><p>But inference in production is a real-time process. Data needs to fit the model exactly how it was intended. If you have difficulty making this work at scale, that would be indicative of a deeper problem. A good engineering pipeline is required to be able to correctly translate all these transformations to real-time.</p><h4><strong>You use local notebooks.</strong></h4><p>Local Jupyter notebooks (Server running on your local machine) are a single potential point of data and code loss. They are also often misplaced and not shared correctly between engineers and data scientists. Code written this way is often not version controlled.</p><p>Introducing a git repo can contain this problem. But it is still the responsibility of data scientists to version control their code. Using <a href="https://aws.amazon.com/sagemaker/">Amazon SageMaker Studio </a>or <a href="https://jupyter.org/hub">Jupyterhub</a> and asking the team can help with this issue.</p><h4><strong>Your model building process lacks standards, patterns, and custom libraries.</strong></h4><p>Another side effect of having a local Jupyter notebook is that design patterns in them evolve independently. And often in different directions.</p><p>This also creates a situation in which lots of code gets duplicated and not unit tested correctly. For example, two data scientists might use two different methods (both being correct) to remove a particular type of anomaly. While it might not be an immediate issue, you are losing an opportunity to standardize by building a central data cleaning repo for your org, which will pay off in the long run.</p><p>A standardized notebook repo with functions built as supporting libraries is hence required. This standardization includes both organizational code policies as well as a predefined structure of notebook. The structure can be separated by phases of data science like wrangling, feature building, training, evaluation, etc.</p><h4><strong><em>You do not have real-time drift detection mechanisms in place.</em></strong></h4><p>Data and concept drift is a common problem. Irrespective of the method used, <strong><em>generically</em></strong> <strong><em>and automatically </em></strong>tracking drift requires a strong understanding of your feature space. When several model types are built, this understanding needs to be generalized and templated. This task largely falls with a data engineer and requires a good pipeline to work correctly.</p><p>Not having a drift detection pipeline might not seem like a big deal if you do not have real-time retraining needs. However, having this monitor in place will expose the fundamental flaws in your MLOps process. Processes that ‘just worked’ previously will start to fall apart exposing hidden issues.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/279/1*w81_oP_FyFGzIOdYLbyf7w.png" /></figure><h4><strong>Your model versioning, experiment tracking, retraining, and monitoring process is manual.</strong></h4><p>If models aren’t versioned and previous experiments aren’t saved you will have zero traceability when things go wrong. Model Monitoring also tracks for latency issues, inference errors, and anomalies. Automated model retraining can improve your models detecting drifts. While the benefits of having these features are obvious, not having them (or having a very manual version of it) indicates an immature ML practice.</p><h4>Thank you for reading</h4><p>It is important to note that none of this means you have a ‘bad’ ML process. Most data science companies start out by building a model to solve a problem at hand. Mostly in a local Jupyter notebook without having any checks and balances I talked about today. But as you mature and scale, some of these needs to be automated.</p><p>Unfortunately, these practices stay and are still very common even with the MLOps industry making big strides over the past couple of years.</p><p>If you have made it this far, I have one tip for you — New Data Science practices can use one of the cloud ML suites end-to-end (Sagemaker from Amazon, AzureML, CloudML, <a href="https://www.datarobot.com/">Datarobot</a>) to largely avoid everything I just described. However, most cloud providers are still a long way out from fully figuring out ML Pipelines. You will have to mature your practice along with them and worry about vendor lock-in.</p><p>Let me know in the comments if you can think of more smells that I have missed.</p><h4>References</h4><p>Look for some MLOps best practices here:</p><p><a href="https://neptune.ai/blog/mlops-10-best-practices">MLOps: 10 Best Practices You Should Know - neptune.ai</a></p><p>On Amazon:</p><ul><li><a href="https://aws.amazon.com/sagemaker/feature-store/">Amazon SageMaker Feature Store for machine learning (ML) - Amazon Web Services</a></li><li><a href="https://aws.amazon.com/sagemaker/">The center for all your data, analytics, and AI - Amazon SageMaker - AWS</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2f389c3ebd11" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science/7-mlops-smells-that-tells-that-your-ml-process-stinks-2f389c3ebd11">7 MLOps ‘Smells’ that tells that your ML process stinks</a> was originally published in <a href="https://medium.com/data-science">TDS Archive</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>