<?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[MLOps.community - Medium]]></title>
        <description><![CDATA[The MLOps Community fills the swiftly growing need to share real-world Machine Learning Operations best practices from engineers in the field. - Medium]]></description>
        <link>https://medium.com/mlops-community?source=rss----eefba8917b5---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>MLOps.community - Medium</title>
            <link>https://medium.com/mlops-community?source=rss----eefba8917b5---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 25 Nov 2026 02:15:01 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/mlops-community" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com" rel="hub"/>
        <item>
            <title><![CDATA[Does Data Engineering Generate Business Value?]]></title>
            <link>https://medium.com/mlops-community/does-data-engineering-generate-business-value-65e5f989561b?source=rss----eefba8917b5---4</link>
            <guid isPermaLink="false">https://medium.com/p/65e5f989561b</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[data-team]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[business-value]]></category>
            <category><![CDATA[big-data]]></category>
            <dc:creator><![CDATA[Neylson Crepalde]]></dc:creator>
            <pubDate>Thu, 27 Jan 2022 17:55:18 GMT</pubDate>
            <atom:updated>2022-01-27T17:55:17.885Z</atom:updated>
            <content:encoded><![CDATA[<h4>Quick answer: NO. But I have to explain that.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Fagk0fDsmDuXEfnL3_Kl-A.jpeg" /></figure><p>If you are somewhat familiar with data projects, you probably noticed that today we briefly have three main roles on data teams:</p><ul><li>A Data Engineer, responsible for data acquisition, processing, and availability;</li><li>A Data Analyst, responsible for connecting business problems with historical data analysis. They are worried about understanding &quot;what happened&quot;;</li><li>A Data Scientist, responsible for hypothesis testing and predicting the future.</li></ul><p>It is also already known that most of a data team’s time is spent on data cleansing, transforming, and structuring. That is the main reason why data engineers are so sought after. Given the volume of data organizations deal with, the vast amount of different sources/structures, and the incredible velocity with which this data is expected to be delivered, data engineering tasks are not trivial at all. They are complex, time-consuming, and demand highly skilled professionals (which, by the way, are hard to find these days).</p><p>I have been working with several data teams in various projects in different industries in the past few years. During this time, I have realized some challenges regarding data engineering. One of them is that <strong>business users usually have a hard time perceiving value on data engineering deliverables. </strong>What business value does a data pipeline (one of the main deliverables created by data engineers) generate by itself? It is a tricky question.</p><h3>Some words on the matter</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*KbKMe2p-sBwE8yHN" /><figcaption>Photo by <a href="https://unsplash.com/@tomhermans?utm_source=medium&amp;utm_medium=referral">Tom Hermans</a> on <a href="https://unsplash.com?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>After some research on the topic, two medium posts caught my attention. <a href="https://medium.com/quantumblack/the-changing-role-and-importance-of-data-engineering-9a70b8d8fd52">The first one</a> by Quantum Black&#39;s team on the role and importance of data engineering. After discussing four archetypes of data engineering maturity level among organizations, they state that</p><blockquote>In all of these archetypes, data engineering plays a critical role; it is often the make or break factor in organisations achieving their North Star (highest level) in analytics.</blockquote><p>Further on, on the importance of data engineers, they state that</p><blockquote>Data engineers can “unlock” data science and analytics in an organisation, as well as build well curated, accessible data foundations.</blockquote><p>In <a href="https://towardsdatascience.com/why-your-company-needs-a-data-engineer-51735a1e5cf0">this second post</a>, <a href="https://medium.com/u/4fae13346549">Lewis Gavin</a> describes data engineers as “Data Science enablers”. He argues that 60% to 70% of time in data’s team is non-productive, and spent on data cleansing, structuring, ETL processes, and so on. This amount of time should be absorbed by Data Engineers, specialists in the matter, so analysts and scientists could focus on their primary tasks. To him,</p><blockquote>To get to the moon faster you don’t need more astronauts. You need people to build the rocket that will let the astronaut do their job.</blockquote><p>Thus more data engineers are needed than scientists or analysts. On leaving data processing tasks to data engineers, he also argues that</p><blockquote>Not only will this improve the efficiency of your Data Science team but their output too. Your data is an asset and should be treated as such. Having an engineer build reliable, scalable and repeatable practices into your data platform is essential for any company looking to use analytics for growth.</blockquote><h3>Searching for an answer</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*erEG1lJsz4_mPoYN" /><figcaption>Photo by <a href="https://unsplash.com/@linkedinsalesnavigator?utm_source=medium&amp;utm_medium=referral">LinkedIn Sales Solutions</a> on <a href="https://unsplash.com?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>In order to understand the business value generated by data engineering and how this is perceived by business users, I and my team interviewed several engineers with different seniority levels, product managers, agile coaches, data projects sponsors, tech executives within and outside our organization. This is what we have found out:</p><p>Data engineers, in general, state that their tasks generate a lot of value. Indeed, they make it possible to access some data, integration between different systems or data sources, consistency, and regularity in the data processing. Even so, it is common ground that these possibilities are complex for the business users to perceive, specially because the main interface they use to deal with data is usually a spreadsheet or a dashboard or something else that engineers did not make.</p><p>Usually, when projects have a more technical approach (aiming to reduce data processing time or a number of calculation errors in an analytical dataset or even optimize cloud resources cost), the value perception on data engineering comes easier. This also happens when data pipelines are connected to automated decisions opening the possibility to what prof.<a href="https://www.linkedin.com/in/claudio-lucio-vl/"> Claudio Lucio</a> calls “actionable insights”. The idea comes from an old term used by Gartner <a href="https://www.gartner.com/en/information-technology/glossary/bam-business-activity-monitoring">Business Activity Monitoring — BAM</a> and , in fact, it emphasizes that data projects are inner related to decision making and not only dashboards. In this sense, in a data engineering phase there are many opportunities to provide users a better decision making. Automated alerts based on a customer&#39;s last purchase (simple alerts, not recommendation systems) or the most purchased item in the last 6 months, or just a warning that some equipment have strangely behave are just some examples. The sky is the limit with this.</p><h3>Last words</h3><p>Once, I heard from a tech executive: “If I could, I would extinguish the data engineering job. Why? Data engineers are expensive, really hard to find, their tasks take a lot of time, and the <strong>value</strong> only comes after”.</p><p>Although the sentence can sound a bit too radical, it illustrates the point: <strong>quality-assured data</strong> is the main deliverable provided by the data engineers. Data by itself will not fix a problem, improve a process, or help focus attention on a valuable target, <strong>but it enables all these possibilities.</strong></p><p>There is no data science or data intelligence whatsoever if you don&#39;t have trusted data. So,</p><blockquote>Data engineering is a necessary condition for generating business value but not a sufficient condition.</blockquote><p>In other words, data engineering does not generate business value by itself. Nevertheless, you simply cannot generate data value without engineering.</p><p>Prof. <a href="https://www.linkedin.com/in/claudio-lucio-vl/">Claudio Lucio</a> contributed to this text.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=65e5f989561b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/mlops-community/does-data-engineering-generate-business-value-65e5f989561b">Does Data Engineering Generate Business Value?</a> was originally published in <a href="https://medium.com/mlops-community">MLOps.community</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to evaluate MLOps Platforms]]></title>
            <link>https://medium.com/mlops-community/how-to-evaluate-mlops-platforms-c98cf7874cca?source=rss----eefba8917b5---4</link>
            <guid isPermaLink="false">https://medium.com/p/c98cf7874cca</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[mlops]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Ryan Dawson]]></dc:creator>
            <pubDate>Wed, 22 Dec 2021 16:12:52 GMT</pubDate>
            <atom:updated>2022-01-19T12:07:33.762Z</atom:updated>
            <content:encoded><![CDATA[<h3>How do you evaluate MLOps platforms?</h3><p>Companies that pioneered application of AI at scale did so using in-house ML platforms (facebook, uber, LinkedIn etc.). These capabilities are now available in off-the-shelf products. The rush to MLOps has led to <strong>too much choice</strong>. There are <a href="https://huyenchip.com/2020/12/30/mlops-v2.html">hundreds of tools</a> and at least 40 platforms available:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*k2E8GGcrK_9rIml8" /><figcaption>Image by Thoughtworks, from <a href="https://www.thoughtworks.com/what-we-do/data-and-ai/cd4ml/guide-to-evaluating-mlops-platforms">Guide to Evaluating MLOps Platforms</a></figcaption></figure><p>This is a very difficult landscape to navigate. Let’s understand the big challenges and then we’ll introduce some new free material that aims to address these problems.</p><h3>Challenge #1: Overwhelming Choice</h3><p>Chip Huyen gathered data on the <a href="https://huyenchip.com/2020/12/30/mlops-v2.html">ML tool scene in 2020</a>. <strong>Chip found 284 tools and the number keeps growing.</strong> Evaluation don’t have to consider all of these tools in detail as long it’s possible to narrow them down to the ones that are most relevant to start with. That’s not easy though because to do that we would want clear categories and MLOps categories are not clear…</p><h3>Challenge #2: Blurred Categories</h3><p>Typically we get a picture of what software does what by putting products in categories. There are attempts to do this with the <a href="https://landscape.lfai.foundation/">LFAI Landscape diagram</a>, the <a href="http://46eybw2v1nh52oe80d3bi91u-wpengine.netdna-ssl.com/wp-content/uploads/2021/10/2021-MAD-Landscape-V2-Small.jpg">MAD landscape</a> and <a href="https://github.com/EthicalML/awesome-production-machine-learning">github lists</a>. But often ML software does more than one thing and could fit into any of several categories. Platforms are especially hard to categorise as they explicitly aim to do more than one thing.</p><p>Because software that does several things is hard to categorize, ML platforms all tend to end up in a single category of ‘platform’. This <strong>obscures what emphasis each platform has</strong> and also <strong>loses all of the nuance</strong> of how different platforms do similar things in different ways.</p><h3>Challenge #3: Shifting Landscape</h3><p>ML categories are hard to keep track of in part because <strong>new categories keep appearing</strong>. Feature stores, for example, haven’t been around very long but are now a significant category. This affects platforms too as platforms are introducing big new features and changing their emphasis (in part in response to what new tools appear).</p><h3>Challenge #4: Complex Problems</h3><p>ML is complex. It’s also a big field. <strong>Platforms do a wide range of things</strong> so that means understanding regression, classification, nlp, image processing, reinforcement learning, explainability, AutoML and a lot more.</p><h3>Challenge #5: Range of Roles and Stakeholders</h3><p>Not only are the problems various and complex, there’s also a <strong>range of roles involved in the ML lifecycle</strong>. Data Scientists, ML Engineers, Data Engineers, SRE, Product Managers, Architects, Application Developers, Platform Developers, End Users etc. Different roles have different points of interaction with the software and different needs from it.</p><h3>Challenge #6: Build vs Buy and other controversies</h3><p>There’s a lot of discussion of build vs buy trade-offs in the ML space. How much control do organisations need over their stack? How much does that control cost? Build vs buy is often presented as an either-or but it is more of a spectrum. This is just one of the <strong>confusing controversies in the ML space</strong> (consider how controversial AutoML is).</p><h3>How do we get on top of all this?</h3><p>Let’s looks separately at specialist tools vs platforms.</p><p>For specialist tools the mlops.community has some great profiles that you can drill into <a href="https://mlops.community/learn/">on the website</a>. Tools are broken down by category and the website offers feature lists, introduction videos and a feature to compare tools side-by-side.</p><p>For understanding the platforms landscape and dealing with the trade-offs Thoughtworks has launched a Guide to Evaluating MLOps Platforms:</p><p><a href="https://www.thoughtworks.com/what-we-do/data-and-ai/cd4ml/guide-to-evaluating-mlops-platforms">https://www.thoughtworks.com/what-we-do/data-and-ai/cd4ml/guide-to-evaluating-mlops-platforms</a></p><p>This is available for free without any sign-up. It addresses <strong>how to distinguish MLOps platforms. </strong>The guide looks at MLOps platforms through different lenses and offer categories to break them down. For example, here’s a picture from the guide showing the distinction between MLOps platforms and tools:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O5befU4kqKjPECuSliV4fA.png" /><figcaption>Image by Thoughtworks, from <a href="https://www.thoughtworks.com/what-we-do/data-and-ai/cd4ml/guide-to-evaluating-mlops-platforms">Guide to Evaluating MLOps Platforms</a></figcaption></figure><p>It’s a spectrum with some all-in-one platforms trying to address the whole ML lifecycle, specialist tools address individual parts of the lifecycle and in between there’s many focused platforms that address multiple elements of the lifecycle but not the whole lifecyle. Elsewhere in the guide, we look at other questions such as the strategies for low-code and AutoML platforms<strong>, </strong>the roles and personas involved in MLOps and <strong>how to structure an evaluation to suit the needs of your organisation</strong>.</p><p>Understanding the high-level platforms landscape is just part of an evaluation. We also need to apply this knowledge and see how to compare platforms against each other. For this we’ve released an open source comparison matrix:</p><p><a href="https://github.com/thoughtworks/mlops-platforms">https://github.com/thoughtworks/mlops-platforms</a></p><p>The matrix is structured to highlight how vendors do things in their own ways and also point to more detail in the product documentation. We’ve also included in the repository a series of profiles that describe the product directions of popular platforms concisely and in a marketing-free way.</p><p>We hope you find this material helpful and welcome contributions in github. Feel free to ask any questions on the <a href="https://mlops.community/">mlops.community slack</a> (and tag Ryan Dawson on there so that I see it).</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c98cf7874cca" width="1" height="1" alt=""><hr><p><a href="https://medium.com/mlops-community/how-to-evaluate-mlops-platforms-c98cf7874cca">How to evaluate MLOps Platforms</a> was originally published in <a href="https://medium.com/mlops-community">MLOps.community</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deploying MLflow in AWS App Runner]]></title>
            <link>https://medium.com/mlops-community/deploying-mlflow-in-aws-app-runner-cc6caf7fb8e3?source=rss----eefba8917b5---4</link>
            <guid isPermaLink="false">https://medium.com/p/cc6caf7fb8e3</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[mlops]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[mlflow]]></category>
            <dc:creator><![CDATA[Douglas Trajano]]></dc:creator>
            <pubDate>Mon, 26 Jul 2021 14:10:05 GMT</pubDate>
            <atom:updated>2022-07-02T22:31:39.785Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/626/1*pZEfMJWixM88kOdJ-P0jUQ.png" /><figcaption><a href="https://www.mlflow.org/">mlflow.org</a></figcaption></figure><p><a href="http://aws.amazon.com/">AWS</a> launched May 2021 the <a href="https://aws.amazon.com/apprunner/">AWS App Runner</a>, a fully managed service that makes it easy for developers to quickly deploy containerized web applications and APIs. [1]</p><p>Unlike <a href="https://aws.amazon.com/fargate/">AWS Fargate</a>, <a href="https://aws.amazon.com/apprunner/">AWS App Runner</a> has a pricing policy based on requests that your application receives. Apps that don’t receive requests all the time can benefit from it.</p><p>Our loved <a href="https://www.mlflow.org/">MLflow</a> fits perfectly in this context. The interaction with <a href="https://www.mlflow.org/">MLflow</a> is usually made in training jobs, data scientists evaluating their experiments, or APIs that expose our models. In all these cases we don’t have frequent access, it occurs eventually.</p><p>So, in this post, I’ll describe how I deployed the MLflow with basic auth (username/password) in AWS App Runner for my personal projects and the costs involved in this solution.</p><h3>Solution Overview</h3><p>The following diagram illustrates this architecture.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/892/1*aEUEba-IIq_hm1gyidNFEg.png" /><figcaption>Figure 1: Architecture. Image by author</figcaption></figure><p>An MLflow tracking server also has two components to store data: a backend store and an artifact store. [3]</p><p>The <strong>backend store</strong> is where MLflow Tracking Server stores experiment and run metadata as well as params, metrics, and tags for runs. [3]</p><p>I used the <a href="https://aws.amazon.com/rds/mysql/">Amazon RDS</a> as our backend store because it has a Free Tier available for 12 months. Each calendar month, the free tier will allow you to use the Amazon RDS resources listed below for free: [4]</p><ul><li>750 hrs of Amazon RDS in a Single-AZ “db.t2.micro” Instance.</li><li>20 GB of General Purpose Storage (SSD).</li><li>20 GB for automated backup storage and any user-initiated DB Snapshots.</li></ul><p>The <strong>artifact store</strong> is a location suitable for large data and is where data scientists log their artifact output (for example, models). [3] Obviously, the default choice here is an S3 Bucket.</p><p>Amazon S3 is an object storage service. It also has a free tier available for 12 months. [5]</p><ul><li>5GB of standard storage.</li><li>20,000 Get Requests</li><li>2,000 Put Requests</li></ul><p>Our MLflow Tracking Server will be hosted in App Runner. This new service launched by AWS is very similar to <a href="https://cloud.google.com/run">Cloud Run</a> which is available in <a href="https://cloud.google.com/">Google Cloud</a>. With App Runner, you deploy and run your applications in container instances, which consume compute and memory resources.</p><p>When your application is idle, you pay per GB of memory for provisioned container instances that keep your application warm and eliminate cold starts. [2]</p><p>When requests come in, your application responds in milliseconds, and you pay for the vCPU and memory consumed by your active container instances as your application is processing requests. [2] See more about the pricing <a href="https://aws.amazon.com/apprunner/pricing/">here</a>.</p><h3>Deployment</h3><p>I created a Terraform stack that will help you to easily create all resources needed to host the MLflow Server with basic authentication.</p><p>The Terraform stack will create the following resources:</p><ul><li>An <a href="https://aws.amazon.com/s3/">S3 bucket</a> for storing MLflow artifacts.</li><li>An <a href="https://aws.amazon.com/iam/">IAM role and policy</a> for the MLflow server connect to the S3 bucket.</li><li>An <a href="https://aws.amazon.com/rds/">RDS</a> database instance (MySQL) for storing MLflow metadata.</li><li>A service in <a href="https://aws.amazon.com/apprunner/">App Runner</a> to run MLflow Tracking Server.</li></ul><h4>Prerequisites</h4><p>You’ll need to have the following installed:</p><ul><li><a href="https://aws.amazon.com/cli/">AWS CLI</a> (1.18.69)</li><li><a href="https://www.terraform.io/downloads.html">Terraform CLI</a> (v1.0.1)</li></ul><h4>Deploying MLflow</h4><ol><li><a href="https://aws.amazon.com/free/">Create an AWS account</a> if you don’t already have one.</li><li>Configure AWS CLI to use your AWS account.</li><li>Clone the repository: <a href="https://github.com/DougTrajano/mlflow-server/">github.com/DougTrajano/mlflow-server</a></li><li>Open mlflow-server/terraform folder.</li></ol><pre>cd mlflow-server/terraform</pre><p>5. Run the following command to create all the required resources:</p><pre>terraform apply -var mlflow_username=&quot;USERNAME&quot; -var mlflow_password=&quot;PASSWORD&quot;</pre><p>5. Type “yes” when prompted to continue.</p><blockquote><strong>mlflow_username </strong>and <strong>mlflow_password </strong>are used to authenticate you in MLflow UI and API. These variables are informed to <a href="https://www.nginx.com/">Nginx</a> proxy as environment variables in docker. If you don’t provide a mlflow_password, this stack will create a strong password for you. :)</blockquote><p>Terraform will create the resources in your account, this may take few minutes. In the end, you will receive the MLflow URL (<strong>XXXXX.aws-region.awsapprunner.com</strong>) and username/password for basic authentication.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/776/1*L8yuhLGvH8LhpEjqvTzYzA.png" /><figcaption>Figure 2: Terraform execution. Image by author</figcaption></figure><p>Access the service_url provided and see your MLflow \o/</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Dmg7LxO7JRLkWOQqtL2G-g.png" /><figcaption>Figure 3: MLflow UI. Image by author</figcaption></figure><p>You can use this link to access the MLflow UI and to track experiments in MLflow API, for example:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f3ea8941d9eacf0a2d9811fa7683586b/href">https://medium.com/media/f3ea8941d9eacf0a2d9811fa7683586b/href</a></iframe><p>So, that’s it! If you want to see the code and more information about this project, see the repository below.</p><p><a href="https://github.com/DougTrajano/mlflow-server">DougTrajano/mlflow-server</a></p><p>In this solution, Amazon RDS and Amazon S3 are both parts of the free tier provided by AWS. The only cost involved here is App Runner, but based on my experience and AWS estimates, its cost will be close to 10 dollars a month, depending on your usage.</p><p>This post does not cover MLflow usage, but if you want to see how to use MLflow like a pro, I strongly recommend the post below. :)</p><p><a href="https://towardsdatascience.com/complete-data-science-project-template-with-mlflow-for-non-dummies-d082165559eb">Complete Data Science Project Template with Mlflow for Non-Dummies.</a></p><p>I hope you enjoyed this post. If you have any comments or contributions, leave a comment and make the community stronger :)</p><h3>References</h3><p>[1]”AWS App Runner — Fully managed container application service — Amazon Web Services”, <em>Amazon Web Services, Inc.</em>, 2021. [Online]. Available: <a href="https://aws.amazon.com/apprunner/.">https://aws.amazon.com/apprunner/.</a> [Accessed: 17- Jul- 2021]</p><p>[2]”AWS App Runner Pricing — Fully managed container application service — Amazon Web Services”, <em>Amazon Web Services, Inc.</em>, 2021. [Online]. Available: <a href="https://aws.amazon.com/apprunner/pricing/.">https://aws.amazon.com/apprunner/pricing/.</a> [Accessed: 17- Jul- 2021]</p><p>[3]”MLflow Tracking — MLflow 1.19.0 documentation”, <em>Mlflow.org</em>, 2021. [Online]. Available: <a href="https://www.mlflow.org/docs/latest/tracking.html.">https://www.mlflow.org/docs/latest/tracking.html.</a> [Accessed: 17- Jul- 2021]</p><p>[4]”Amazon RDS | Cloud Relational Database | Amazon Web Services”, <em>Amazon Web Services, Inc.</em>, 2021. [Online]. Available: <a href="https://aws.amazon.com/rds/.">https://aws.amazon.com/rds/.</a> [Accessed: 17- Jul- 2021]</p><p>[5]”Cloud Object Storage | Store &amp; Retrieve Data Anywhere | Amazon Simple Storage Service (S3)”, <em>Amazon Web Services, Inc.</em>, 2021. [Online]. Available: <a href="https://aws.amazon.com/s3/.">https://aws.amazon.com/s3/.</a> [Accessed: 17- Jul- 2021]</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cc6caf7fb8e3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/mlops-community/deploying-mlflow-in-aws-app-runner-cc6caf7fb8e3">Deploying MLflow in AWS App Runner</a> was originally published in <a href="https://medium.com/mlops-community">MLOps.community</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[MLOps vs DevOps. What’s the difference?]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/mlops-community/mlops-vs-devops-whats-the-difference-df45e3111a00?source=rss----eefba8917b5---4"><img src="https://cdn-images-1.medium.com/max/2600/1*RdqwgFcBN9gpq0P17tqhGA.jpeg" width="6016"></a></p><p class="medium-feed-snippet">Part 2 of 2: Picking up where left off</p><p class="medium-feed-link"><a href="https://medium.com/mlops-community/mlops-vs-devops-whats-the-difference-df45e3111a00?source=rss----eefba8917b5---4">Continue reading on MLOps.community »</a></p></div>]]></description>
            <link>https://medium.com/mlops-community/mlops-vs-devops-whats-the-difference-df45e3111a00?source=rss----eefba8917b5---4</link>
            <guid isPermaLink="false">https://medium.com/p/df45e3111a00</guid>
            <category><![CDATA[mlops]]></category>
            <category><![CDATA[devops-and-mlops]]></category>
            <category><![CDATA[machine-learning-engineer]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Demetrios Brinkmann]]></dc:creator>
            <pubDate>Sat, 26 Jun 2021 15:06:32 GMT</pubDate>
            <atom:updated>2021-06-26T15:06:32.534Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[When machine learning meets privacy]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/mlops-community/when-machine-learning-meets-privacy-9117ba603cc2?source=rss----eefba8917b5---4"><img src="https://cdn-images-1.medium.com/max/2600/1*liiUJULj3NL4lJJFvdzhoA.jpeg" width="5312"></a></p><p class="medium-feed-snippet">ML, Privacy and Synthetic Data</p><p class="medium-feed-link"><a href="https://medium.com/mlops-community/when-machine-learning-meets-privacy-9117ba603cc2?source=rss----eefba8917b5---4">Continue reading on MLOps.community »</a></p></div>]]></description>
            <link>https://medium.com/mlops-community/when-machine-learning-meets-privacy-9117ba603cc2?source=rss----eefba8917b5---4</link>
            <guid isPermaLink="false">https://medium.com/p/9117ba603cc2</guid>
            <category><![CDATA[synthetic-data]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[data-privacy]]></category>
            <category><![CDATA[ai-privacy]]></category>
            <category><![CDATA[privacy]]></category>
            <dc:creator><![CDATA[Demetrios Brinkmann]]></dc:creator>
            <pubDate>Sun, 20 Jun 2021 13:25:29 GMT</pubDate>
            <atom:updated>2021-06-20T13:25:29.111Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[MLOps vs DevOps. What’s the difference?]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/mlops-community/mlops-vs-devops-whats-the-difference-60678e628756?source=rss----eefba8917b5---4"><img src="https://cdn-images-1.medium.com/max/2600/1*8V3BhaLgQYh8-OkYYuMc0Q.jpeg" width="5472"></a></p><p class="medium-feed-snippet">This is part one of a two-part series where I try to synthesis some of my understandings of the parallels between DevOps and MLOps.</p><p class="medium-feed-link"><a href="https://medium.com/mlops-community/mlops-vs-devops-whats-the-difference-60678e628756?source=rss----eefba8917b5---4">Continue reading on MLOps.community »</a></p></div>]]></description>
            <link>https://medium.com/mlops-community/mlops-vs-devops-whats-the-difference-60678e628756?source=rss----eefba8917b5---4</link>
            <guid isPermaLink="false">https://medium.com/p/60678e628756</guid>
            <category><![CDATA[mlops]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[machine-learning-engineer]]></category>
            <dc:creator><![CDATA[Demetrios Brinkmann]]></dc:creator>
            <pubDate>Sun, 13 Jun 2021 07:14:29 GMT</pubDate>
            <atom:updated>2021-06-13T07:14:29.656Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Jupyter Notebooks In Production?]]></title>
            <link>https://medium.com/mlops-community/jupyter-notebooks-in-production-4e0d38803251?source=rss----eefba8917b5---4</link>
            <guid isPermaLink="false">https://medium.com/p/4e0d38803251</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[jupyter-notebook]]></category>
            <category><![CDATA[mlops]]></category>
            <dc:creator><![CDATA[Demetrios Brinkmann]]></dc:creator>
            <pubDate>Fri, 04 Jun 2021 12:59:53 GMT</pubDate>
            <atom:updated>2021-06-04T12:59:53.684Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mB4hI2RCSEeWe7i3YHm33g.jpeg" /><figcaption>Photo by <a href="https://www.pexels.com/@tirachard-kumtanom-112571?utm_content=attributionCopyText&amp;utm_medium=referral&amp;utm_source=pexels">Tirachard Kumtanom</a> from <a href="https://www.pexels.com/photo/white-spiral-notebook-beside-orange-pencil-544115/?utm_content=attributionCopyText&amp;utm_medium=referral&amp;utm_source=pexels">Pexels</a></figcaption></figure><p><em>The easiest way to get a good thread going on the </em><a href="https://join.slack.com/t/mlops-community/shared_invite/zt-o96abp9z-sRYKWb96wGK9vdhUvbSrsQ"><em>community slack </em></a><em>is to ask about notebooks. Here are a few of my favorite threads on Jupyter notebooks and the love/hate relationship we have of them in the </em><a href="https://mlops.community/"><em>MLOps community</em></a><em>.</em></p><h3>Should you put notebooks in production?</h3><p><a href="https://app.slack.com/team/U01PE6V8H54"><strong>Sam Bean</strong></a></p><p>I find them more challenging to change manage compared to standard OOP/FP Python</p><p><a href="https://app.slack.com/team/U01PSCJU5UZ"><strong>Stefan Krawczyk</strong></a></p><p>Netflix perspectives:<br><a href="https://netflixtechblog.com/notebook-innovation-591ee3221233">https://netflixtechblog.com/notebook-innovation-591ee3221233</a><br><a href="https://netflixtechblog.com/scheduling-notebooks-348e6c14cfd6">https://netflixtechblog.com/scheduling-notebooks-348e6c14cfd6</a></p><p><a href="https://app.slack.com/team/U01PE6V8H54"><strong>Sam Bean</strong></a></p><p>I’ve heard of people maintaining notebooks with full unit test suites in production, to me it sounds like nonsense</p><p><a href="https://app.slack.com/team/UP3T8K9M5"><strong>Demetrios</strong></a></p><p>ohhhhhh boy! this should be a good thread…</p><p><a href="https://app.slack.com/team/U01PSCJU5UZ"><strong>Stefan Krawczyk</strong></a></p><p>papermill is great for creating “reports” easily. As usual, though, whether it’s a good idea depends what you are using it for:</p><ul><li>is it just glue code to stitch some things together? that is, not much to unit test here.</li><li>are you using it for visualizing something and that artifact?</li><li>or are you using it instead of diving into logs?</li><li>or does it contain source code that should be unit tested? etc.</li></ul><p><a href="https://app.slack.com/team/U01PE6V8H54"><strong>Sam Bean</strong></a></p><p>The Netflix documentation looks pretty complicated. That looks like a pretty advanced system to stand up just to skirt around writing code outside of a notebook</p><p><a href="https://app.slack.com/team/U01PSCJU5UZ"><strong>Stefan Krawczyk</strong></a></p><p>yep org. size matters, what the common dev environment is, etc. (edited)</p><p><a href="https://app.slack.com/team/UP3T8K9M5"><strong>Demetrios</strong></a></p><p>maybe <a href="https://mlops-community.slack.com/team/U01BNPM89U1">@Savin Goyal</a> knows someone that is part of the team that wrote that netflix blog to comment on it a bit?</p><p><a href="https://app.slack.com/team/U01PE6V8H54"><strong>Sam Bean</strong></a></p><p>Org size is huge, yes. If you have hundreds of scientists who have never written a unit test then something like this makes sense imo</p><p><a href="https://app.slack.com/team/U015BH45ZK6"><strong>Laszlo Sragner</strong></a></p><p>This has all the hallmarks of Netflix engineers challenging each other to do it at a Friday pub crawl. My general question is: Why??</p><p><a href="https://app.slack.com/team/U01PE6V8H54"><strong>Sam Bean</strong></a></p><p>But if you’re a small team trying to ship productionalized AI systems, I’d stick to PyCharm and OOP. But I’m a simpleton so ¯\_(ツ)_/¯</p><p><a href="https://app.slack.com/team/U015BH45ZK6"><strong>Laszlo Sragner</strong></a></p><p>omg, I am just halfway through the article and they just brought in docker and airflow… (I keep going)</p><p>Done! Pretty easy, isn&#39;t it? &lt;- no, its bloody not...</p><p><a href="https://app.slack.com/team/U018K70SY56"><strong>Jim Dowling</strong></a></p><p>In Hopsworks, we support notebooks as Jobs. Jobs can be scheduled, orchestrated by airflow. And, yes, customers run them in production. We find they are most useful after the feature store, where data scientists often follow this pattern:<br>(1) notebook to select features and create a train/test dataset<br>(1a) (optional hparam tuning notebook to find good hparams)<br>(2) notebook to train model<br>(3) notebook to evaluate mode (generate reports)<br>(4) notebook to deploy to model servingThe Jobs for these notebooks can be put in a simple DAG in airflow (we have UI support to generate that DAG).Typically, these notebooks do not require unit tests for code. They are version-controlled in github/gitlab. They use the github plugin for Jupyterlab, and an extension (nbdime) to diff notebooks visually.Papermill is also great as a way to generate reports from these notebook workflows.</p><p><a href="https://app.slack.com/team/U01PE6V8H54"><strong>Sam Bean</strong></a></p><p>Typically, these notebooks do not require unit tests for code<a href="https://mlops-community.slack.com/team/U018K70SY56">@Jim Dowling</a> I disagree with this premise, no production code should ever be untested.</p><p><a href="https://app.slack.com/team/U01CTELE17D"><strong>Nikolai</strong></a></p><p>I thought this is already settled issue and everyone agree that notebooks should not be anywhere near production cycle.</p><p><a href="https://app.slack.com/team/U01PSCJU5UZ"><strong>Stefan Krawczyk</strong></a></p><blockquote><em>Typically, these notebooks do not require unit tests for code</em><a href="https://mlops-community.slack.com/team/U018K70SY56"><em>@Jim Dowling</em></a><em> I disagree with this premise, no production code should ever be untested.</em></blockquote><p>I’m not speaking for <a href="https://mlops-community.slack.com/team/U018K70SY56">@Jim Dowling</a> but I think he’s saying that there is no “logic” to be unit tested, which conforms to what I see people using notebooks in production for. (edited)</p><p><a href="https://app.slack.com/team/U01N8ERHH9T"><strong>raybuhr</strong></a></p><p>we use notebooks in production at PayPal for things we can afford to fail. i think the definition of production means different things to different people and that’s mostly where these discussions go awry.in the most primitive definition, “production” should just mean code that is being consumed and relied up by some end user or other service. with this definition in mind, we have some notebooks that fit and aren’t the end of the world if they break. for example, notebook runs an ETL job on a schedule and dumps the resulting dataset to Tableau. If the Tableau dataset is only used in one Dashboard and there is only a couple dozen people relying on that dashboard, going through the effort of converting the notebook to python source code, adding tests, and setting up monitoring is overkill. the dashboard users will probably be able to tell if the data looks messed up and if no one notices it stopped working, no need to fix it until someone does.we have over 10k of these types of jobs running on airflow. clearly not all are created equal. there’s probably 20% that are unnecessary and should be deleted, another 20% that should be converted to source code and have tests defined for them because they are more critical. but that middle ground of 60% is where i think notebooks in production might be OK. maybe not IDEAL, but FINE.</p><p><a href="https://app.slack.com/team/U018K70SY56"><strong>Jim Dowling</strong></a></p><p>That’s correct <a href="https://mlops-community.slack.com/team/U01PSCJU5UZ">@Stefan Krawczyk</a>. How would you test the logic of “select these features” or “train this model” or “evaluate this model”?</p><p>I think many people on here have a DevOps view on MLOps that is very far from what actual Data Scientists do and want to do. They are not always software engineers and do not aspire to become one either. You can be holier-than-thou Googler and insist they become good software engineers — the PRs will not be accepted until the testing improves (more like the beating will not continue until moral improves). But if they are able to train a model and evaluate it and the inputs and outputs are validated by other teams (input data validated pre feature store) and output by ML Engineers before deployment (although i don’t think that is always necessary if they are good enough), then help them push their code to production. If it’s easier for everyone to let them push with notebooks, I’m fine with that. Just like we added a PyCharm plugin to Hopsworks — many engineers are not fine with notebooks. Why can’t we all just get along</p><p><a href="https://app.slack.com/team/U015CLVR5CK"><strong>Michel Vasconcelos</strong></a></p><p>I don’t have working experience as Data Scientist, but as someone walking his first steps through Model Experimentation, Notebooks seem to be a great tool. One may prototype and validate a thing (or two) quickly and most DS people I talk with use them a lot… Probably because NBs fit into their activities perfectly.When we think about a well designed software component it instantly comes to mind things like SOLID principles, scalability, testability, reusability, etc. Those aren’t the main goal of people when trying to find a model that fits their problem (that’s when NBs excels). I mean, when you’re developing traditional software you are used with those kind of concepts, but that’s not common talk among DS guys.That said, what’s the real pain point: the NBs or the mindset when experimenting to find the model?</p><p><a href="https://app.slack.com/team/U01N8ERHH9T"><strong>raybuhr</strong></a></p><p>I think the reasons against notebooks in production are the very core of what mlops is all about. The reason you want to test your end to end data pipelines are so your predictions don’t start leading to bad things happening. For example, say I’m predicting whether to approve an ecommerce order based on whether I think it’s fraudulent or not. If the data being passed into the model at prediction time stops looking like the data used to train the model I’m going to get in a lot of trouble.Giving data scientists permission to skip testing for that on an ongoing basis because they don’t want to be bothered writing tests is net negative for everyone.</p><p>I don’t think any of us are 100% against notebooks for anyone ever. They are really good at being a scratchpad or documenting a set of thought processes. The pain point is “getting to production” which is frankly a lot more than automating the execution of code on a schedule.</p><p><a href="https://app.slack.com/team/U01PE6V8H54"><strong>Sam Bean</strong></a></p><p>I’ve run into notebooks that are “too far gone” to productionalize as well. I think notebooks are great for getting signal if a problem is solvable with the data. But if there’s signal, I try to fast track that code to CI/CD with unit tests</p><p><a href="https://app.slack.com/team/U015CLVR5CK"><strong>Michel Vasconcelos</strong></a></p><blockquote><em>I think the reasons against notebooks in production are the very core of what mlops is all about. The reason you want to test your end to end data pipelines are so your predictions don’t start leading to bad things happening.</em></blockquote><p>Since I’m not really experienced with ML development, this may sound naive but… How do NBs prevent a proper testing discipline? I mean, if we remove that from the equation, would we have testable code \ models? It still seems the problem lies in the fact that most people experimenting to find a proper model aren’t worried about that at all.</p><p><a href="https://app.slack.com/team/U01N8ERHH9T"><strong>raybuhr</strong></a></p><p>Fair point. Most people experimenting aren’t concerned with what to do after the experiment looks promising… Except to complain that their idea isn’t getting used.</p><p><a href="https://app.slack.com/team/U01CTELE17D"><strong>Nikolai</strong></a></p><p>Idea behind tests is that you execute your code on CI server and get PR reject if tests fails, not sure how to achieve that with Notebooks.</p><p>Other common source of errors is not linear execution of cells, this does not help with reproducibility.</p><p><a href="https://app.slack.com/team/U01BNPM89U1"><strong>Savin Goyal</strong></a></p><p>re: <a href="https://mlops-community.slack.com/archives/C015J2Y9RLM/p1614627198245800?thread_ts=1614627111.245500&amp;cid=C015J2Y9RLM">Netflix’s usage of Notebooks</a> — We <strong>do not</strong> execute ML models (train, deploy yada yada) in production as notebooks. Our research scientists use notebooks for prototyping just like most people on this thread. Our ETL pipelines are executed as <em>templatized</em> notebooks (users write code as usual <em>outside</em> a notebook, but the workflow scheduler copies over the code in a templatized notebook and executes them via papermill) — in case of failure, you can just open the notebook to see the input and the output, which is handy.source — I work on some of this stuff at Netflix.</p><p>Our data scientists train &amp; productize their models using <a href="https://docs.metaflow.org/introduction/what-is-metaflow">Metaflow</a>. We have tooling that helps them set up notebooks as dashboards (via papermill) to monitor their ML pipelines (not yet in open source). (edited)</p><p><a href="https://app.slack.com/team/U01PT0U0KDY"><strong>André Bittencourt</strong></a></p><p>Some reasons I think notebooks can be a bad idea to use in a production setting</p><ul><li>no proper code versioning</li><li>state dependent execution (reproducibility can be an issue)</li><li>no unit testing</li><li>no linters</li><li>no CI/CD</li><li>no dependencies management</li><li>everything gets cached which may lead to oversized infrastructure</li><li>reusability of code is often done by copying, pasting and editing the same code in different notebooks</li></ul><p>I understand it is possible to circumvent a lot these issues and for some use cases people might just ignore them but trying to maintain a large codebase based on notebooks can be a nightmare. With these things said, I think notebooks are a great tool for exploration, PoCs, and analyses in general. It can really speed up model development at the early stages and by simply importing your model pipeline as a module to your notebook you can get the best of both worlds, working with a codebase in a repo while performing lots of testing and exploration with it on a notebook and iterating between the two.</p><p>I am just really glad to hear that Netflix does not use notebooks in production. That has been a fallacy used by many data scientists to avoid stepping up their game and acquire more software engineering skills.</p><p><a href="https://app.slack.com/team/U01J0NVNE1G"><strong>Médéric Hurier</strong></a></p><p>I’ve used both a full Notebook and Python approach in production. My feedback is that notebooks shouldn’t be used in production. The main reason is that they don’t integrate well with most Cloud ecosystem and existing quality check tools (e.g., pylint, mypy …).</p><p>However, we encourage our users to leverage notebooks for their prototypes. We also created a user guide to easily migrate from notebook to python (mostly by creating as much reusable functions as possible in their notebooks).</p><p>Personally, I would still use notebook in a scenario where I need to “get it done”. But if I need to “get it right”, I would immediately switch to Python code.</p><p><a href="https://app.slack.com/team/U015BH45ZK6"><strong>Laszlo Sragner</strong></a></p><p>What’s your definition of “getting it done”? If I understand a significant amount of software engineering on the last decade went into justifying that the two things you mentioned are the same.</p><p><a href="https://mlops-community.slack.com/team/U01PT0U0KDY">@André Bittencourt</a></p><blockquote><em>That has been a fallacy used by many data scientists to avoid steping up their game and acquire more software engineering skills.</em></blockquote><p>As a piece of career advice when you hear “DSes don’t want to write code or has this workflow” do understand that some DSes want to write better code, eventually get better at it and has more opportunities in the future also that the company can force you into a workflow and limit and silo you, your incentives are not aligned.</p><p><a href="https://app.slack.com/team/U015BH45ZK6"><strong>Laszlo Sragner</strong></a></p><p>The way I see from the above is that DSes are often seen as model making machines and a lot of tooling is just to make them faster to churn out these models. Notebooks are used as UI for them in which they hand in their work and the system takes care of the rest. Indeed if it is a UI you don’t need to (unit) test it, there are no new moving components written by the DS. Of course, you need to have anomaly detection or monitoring or other observability feature but that’s not a unit testing question. My worry with these “Data Science pin-factories” is that at no point their activity is linked to some economic incentive or product? What if the workflow cannot solve their problem? What if they consistently create bad models? You can’t solve problems purely by repeating an activity faster.</p><p><a href="https://app.slack.com/team/U018K70SY56"><strong>Jim Dowling</strong></a></p><p>Many people here have seen the Joel Grus talk against notebooks (i see many of his arguments repeated here). Most arguments no longer hold. I recommend people to see this talk by Jeremy Howard on the current state of Notebooks and how they can be used in production pipelines. And, of course, I believe in testing. But no, i do not believe in end-to-end ML pipelines. ML pipelines have 2 parts — before the feature store (unit tested, data tested, DataOps) and after the feature store (data scientists and notebooks or Python).<a href="https://www.youtube.com/watch?v=9Q6sLbz37gk&amp;feature=emb_logo">https://www.youtube.com/watch?v=9Q6sLbz37gk&amp;feature=emb_logo</a></p><p><a href="https://app.slack.com/team/U015BH45ZK6"><strong>Laszlo Sragner</strong></a></p><p>I personally don’t originate my aversions to notebooks from that talk. I am watching the Jeremy Howard talk and in 8 minutes he has drawn up numerous points that are not compatible with industrial-scale ML.Afaik his mission is to democratise ML but that doesn’t mean his workflow is compatible with MLEs who work 10 hours a day for weeks on models.This is my biggest problem with 1 to 1 application of academic studies to the real world and the expectations around it: courses are taught that way because of the limitations of the academic environment (time pressure, resources pressure, no need for organisational structure, short term goals). Industrial settings are completely different and that difference will be removed through onboarding/vocational training. The problem starts when the academic setting is onboarded because it looks appealing from a business perspective: “just a couple of line, instant deployment etc etc etc”.</p><p><a href="https://app.slack.com/team/U015BH45ZK6"><strong>Laszlo Sragner</strong></a></p><p>and when I say industrial-scale ML I don’t mean scalable, efficient, lots of users etc, but I mean an ML solution framework that can solve industrial problems.</p><p><a href="https://app.slack.com/team/U018K70SY56"><strong>Jim Dowling</strong></a></p><p><a href="https://mlops-community.slack.com/team/U015BH45ZK6">@Laszlo Sragner</a> can you be specific in the points you disagree with Jeremy? Is it versioning, testing, etc?</p><p><a href="https://app.slack.com/team/U015BH45ZK6"><strong>Laszlo Sragner</strong></a></p><p>I keep watching but he definitely has a very good point:</p><p>The problem is we are not living in a world of nuanced opinions. Every statement in this thread should come with a lot of qualifying statements about context and caveats.</p><p><a href="https://mlops-community.slack.com/team/U018K70SY56">@Jim Dowling</a> main points: a lot of these features needs an external tool: nbdev and reviewnb<br>A lot of content is “look we can do this as well in a notebook, sharing into gist eg.: webserver (educational)<br>my experience is that literal programming and no hidden state notebook use is far less frequent. You end up with a notebook which is not version controlled and even you don’t know how to get to the result you are plotting and no docs whatsover. Kernel Restart and Run all will not help you then. And these are indeed bad practices.</p><p>In general, he is an educator who is convinced that this is the best way to teach DS/ML to most people (which I agree with). Everything in that video was educational material, which is quite understandable if your audience is students.His mission is to encourage people to get on the path and more importantly reduce discouragement from getting on the path. I consider this video part of this partly because Joel Grus’s video (as they talk about it on Twitter) is discouraging.</p><p><a href="https://app.slack.com/team/U01PT0U0KDY"><strong>André Bittencourt</strong></a></p><p><a href="https://mlops-community.slack.com/team/U015BH45ZK6">@Laszlo Sragner</a> I agree, the incentives for high-quality code in a production env vs getting the job done are often misaligned. I believe an MLOps culture should aim at maximising business impact while decreasing total cost of ownership of ML software. This is a new discipline though and sometimes we tend to simply adopt principles learned from different contexts. Devops principles were introduced based on experience from classical software engineering where people have learned that good practices such as code versioning, reproducibility, reusability, governance ultimately led to increased productivity. The question is then whether these principles still hold for ML engineering. One way to address this would be to understand from first principles the lifecycle of ML code and how it differs from standard software engineering.</p><p>For a start, ML code evolves and degrades very differently. Say that a ML model should be the closest representation of reality as possible. Since this objective is unattainable (for most problems), you will be in a constant need to investigate new approaches, use new data, develop new features. It will also degrade with time as the reality changes. This alone implies that fast iteration and experimentation is very critical to maximise business impact, perhaps more critical than the total cost of ownership of the code itself. This seems rather different from standard SE, where the utility of the code seems to be less ephemeral and thus the TCO might weigh more toward maintaining the codebase.</p><p>I think one of the main reasons why MLOps emerged as a discipline is because organizations have accumulated so much debit in ML that the equation needs to be rebalanced.</p><p><a href="https://app.slack.com/team/U015BH45ZK6"><strong>Laszlo Sragner</strong></a></p><p>I think because ML came from academia and it wasn’t very successful, it didn’t get enough attention from business and proper engineering. Now it does, but one needs to be careful to optimise the ML pipeline to fit real-world problems not just to make the old pipeline faster and more scalable/repeatable.</p><blockquote><em>This alone implies that fast iteration and experimentation is very critical to maximise business impact</em></blockquote><p>The speed of experimentation is not as important compared to experimenting in the right direction. At some point, problems become so hard that speed is irrelevant and organisedness and deliberatedness will be more important. (edited)</p><p><a href="https://app.slack.com/team/U01PT0U0KDY"><strong>André Bittencourt</strong></a></p><p>true, there is a plateau at some point, then you get new data (or lose some due to Apple’s new privacy policy) and the process starts again</p><p><a href="https://app.slack.com/team/U018K70SY56"><strong>Jim Dowling</strong></a></p><p><a href="https://mlops-community.slack.com/team/U015BH45ZK6">@Laszlo Sragner</a> — those external tools are now part of many platforms. We provide built-in git and the nbdiff plugins in Jupyterlab with Hopsworks. Same for Sagemaker, i believe. So, version control is not an issue. Unit testing is still a problem, and I don’t advocate unit testing yet. Making resuable modules is also not best use of notebooks. But for reporting and visualizations, they are second to none. I don’t think it has anything to do with academia. Most of the notebook tooling is being developed by industry, like papermill.</p><p><a href="https://app.slack.com/team/U01CTELE17D"><strong>Nikolai</strong></a></p><p>I think point is not that notebooks are not useful, they just should not be necessary step between data and deployed model. Findings from notebook can be ported to internal library with tests and documentation, next person doing exploration can benefit from this quickly, something like internal fastai library.</p><p><a href="https://app.slack.com/team/U015BH45ZK6"><strong>Laszlo Sragner</strong></a></p><blockquote><em>But for reporting and visualizations, they are second to none.</em></blockquote><p>This is exactly where we are using them: write good code, run a pipeline, load the data into an NB, visualise, repeat</p><p><a href="https://app.slack.com/team/U01BEM1578E"><strong>Andy Dang</strong></a></p><p>My previous team met with the notebook team at Netflix (sadly they were re-orged/disbanded) and a bunch of Jupyter core contributers in 2019 to talk about the gaps between notebooks, or in this case the Jupyter ecosystem and productionize them. Sadly there were quite a bit of proprietary info so there’s no video recording, but we identified a bunch of gaps in the space and talked about a Jupyter JEP process. You can take a peek at a few of them here:<br><a href="https://github.com/jupyter/enhancement-proposals">https://github.com/jupyter/enhancement-proposals</a>To put it short, there’re many missing pieces (code versioning, human-friendly diff, execution lineage, dependency management etc…) that makes notebook, or at least the Jupyter environment challenging. And some of these limitations unfortunately come from Jupyter’s core decision itself.Ultimately reorg happened to both my previous team and the Netflix team so the current state of these JEPs are kinda in limbo. You can take a look at these proposals here though (and I would love to see them executed): <a href="https://github.com/jupyter/enhancement-proposals">https://github.com/jupyter/enhancement-proposals</a>I think folks at <a href="http://noteable.io/">Noteable.io</a> <em>might</em> be trying to solve that since Michelle was the lead of that Netflix team. (edited)</p><p><a href="https://app.slack.com/team/U015MM44NLW"><strong>Korri Jones</strong></a></p><p>This is such a good thread! So many nuggets and perspectives. We can all agree that there are pros/cons to notebooks, but I think the area of opportunity for notebooks in “Production” is highly affected by the internal processes (or lack thereof) for your specific teams with respect to the level of expertise/talent available.Secondly, I strongly believe there is a place for clarifying the boundaries/guidelines of notebook design and usage IF they were to be put into a pseudo or a more formal production flow (Maybe a community challenge!?!?) which if you coalesce the comments above you start to get closer to that, again, with respect to your team composition, expertise, etc.Now, we could get really strategic and look behind the veil and attempt to answer the true underlying question…. “what is your tactical definition of production and how do notebooks fit into it?”. I almost guarantee, the team definitions of what constitutes “production” will vary.</p><p>How do you guys opertionalize training a model back and forth between notebooks and an automated pipeline? I can imagine there’s going to be a lot of versioning issues in this case.</p><p><a href="https://app.slack.com/team/U015BH45ZK6"><strong>Laszlo Sragne</strong></a><strong>r</strong></p><p>We solved it with the radical idea of not using notebooks.</p><p><a href="https://app.slack.com/team/U018RV7QPAA"><strong>Ariel Biller LSTMeow</strong></a></p><p>There are two types of notebooks — those where you have to run cells 1–7 and then cell 2 again and only then cells 8–32….<br>And those where you can “run all”. The first kind are a problem, for the latter there are many approaches which I’m sure others will be happy to suggest. Personally I’m with <a href="https://medium.com/u/64abd39b0dda">Laszlo Sragner</a></p><p><a href="https://app.slack.com/team/U015BH45ZK6"><strong>Laszlo Sragner</strong></a></p><p>What’s the difference between a “run all” notebook and copying the code into a script and running it with python-fire?</p><p>Oh, I know the second one is not a pain in the *** to version control (edited)</p><p><a href="https://app.slack.com/team/U018QM6DUTB"><strong>Jimmy</strong></a></p><p>Overall, I don’t think there’s a <em>great </em>way to do it. I think there’s a lot of value in notebooks, especially in the early stages of understanding your problem, and iterating with the data to gain some level of human understanding around what’s going on. But once you know how you’re going to try to solve your problem (at least initially), this is where it’s a good idea to move away from notebooks.Personally, my development process is to explore my data and script in notebooks until I know what my data looks like and maybe run a couple of experiments for a proof-of-concept. At that point, I actually move my development to something that’s structured as a python (or whatever language) project in Git, with pipelines to execute my code against my data.But basically, I always treat my notebooks as temporal and the script versioned in github as the source of truth. (working through some of this stuff for Pachyderm’s IDE rn)</p><p><a href="https://app.slack.com/team/U018RV7QPAA"><strong>Ariel Biller LSTMeow</strong></a></p><p><a href="https://mlops-community.slack.com/team/UP3T8K9M5">@Demetrios</a> you wanted stuff to ask Jeremy Howard ^</p><p><a href="https://app.slack.com/team/U01QFUGN2UQ"><strong>Richard Puckett</strong></a></p><p>I call notebooks “sketches”. A co-worker recently called them “doodles”. Both encapsulate how I personally view them. They’re scratchpads that are best used to organize thoughts and experiments. Once that’s done then transition to a more rigorous development process (git, VS Code, etc). (edited)</p><p><a href="https://app.slack.com/team/U01GDTVQSJE"><strong>Andres March</strong></a></p><p>I like the term EDA and keeping notebooks focused on that use case. Basically I agree with <a href="https://mlops-community.slack.com/team/U01QFUGN2UQ">@Richard Puckett</a> and <a href="https://mlops-community.slack.com/team/U018QM6DUTB">@Jimmy</a></p><p><a href="https://app.slack.com/team/U01G8F6E38T"><strong>Han-chung Lee</strong></a></p><ol><li>Notebook as scratch book</li><li>Notebook as scratch book with a config object holding all params</li><li>Migrate all codes to python modules and config object in a config.py</li><li>Migrate params to YAML, keep static configs in config.py (e.g., key pairs, URIs, random seeds, logging, etc).</li></ol><p>And then train using the python script only, controlling the inputs and hyperparams using YAML files.</p><p>Or, you can versioning notebooks as<br>Untitled-1-copy-copy-2.ipynb<br>Untitled-2.ipynb<br>Untitled-2 (1).ipynb<br>etc.<br>No versioning issue, just keep all the runs in a separate notebook</p><p><a href="https://app.slack.com/team/U01BNPM89U1"><strong>Savin Goyal</strong></a></p><p>One pattern that has worked well for Netflix data science has been around using Notebooks as a way to inspect the output/intermediate state of ML pipelines — kind of like a quick dashboarding/analysis tool.</p><p><a href="https://app.slack.com/team/U01G8F6E38T"><strong>Han-chung Lee</strong></a></p><p>Notebooks are great for exploring. Can’t imagine operationalize notebooks though.</p><p><a href="https://app.slack.com/team/U01BNPM89U1"><strong>Savin Goyal</strong></a></p><p>It’s the hidden state and non-linear execution of notebooks that causes a lot of headache while debugging them.</p><p><a href="https://app.slack.com/team/U01BNPM89U1"><strong>Savin Goyal</strong></a></p><p>But as an educational tool and a scratch pad, Notebooks are fantastic</p><p><a href="https://app.slack.com/team/U016624NW3U"><strong>Eduardo</strong></a></p><p>Notebooks/Jupyter are a format (ipynb) and a dev environment (jupyter notebook/lab). git versioning problems go away if you change the underlying format, you can use <a href="https://github.com/mwouts/jupytext">jupytext</a> for that, it allows you to open scripts as notebooks; you can open a train.py file in jupyter, do some interactive development (which is extremely useful when dealing with a new dataset and you want to get some descriptive stats, plot some distributions, etc) Then you can orchestrate a production pipeline with those scripts (edited)</p><p><a href="https://app.slack.com/team/U015BH45ZK6"><strong>Laszlo Sragner</strong></a></p><p><a href="https://mlops-community.slack.com/team/U01BNPM89U1">@Savin Goyal</a> That’s exactly what we do: write your pipeline in a shell script observing code quality principles (because the entire team will look at it in the future) then load the data into a notebook for visualisation. If there is something that needs to be permanently monitored move it to metabase or a plotly-dash app.</p><p>But notebooks are strictly your eyes only not to be shared</p><p><a href="https://app.slack.com/team/U022CK8HXFC"><strong>Oleh Kuchuk</strong></a></p><p><a href="https://mlops-community.slack.com/team/U01BNPM89U1">@Savin Goyal</a> btw where does Netflix use metaflow ? <a href="https://metaflow.org/">https://metaflow.org/</a></p><p><a href="https://app.slack.com/team/U01BNPM89U1"><strong>Savin Goyal</strong></a></p><p><a href="https://mlops-community.slack.com/team/U022CK8HXFC">@Oleh Kuchuk</a> Metaflow is used for all data science work — iterating on models, building/debugging/productizing training pipelines and integrating the models with the surrounding business ecosystem.</p><p><a href="https://app.slack.com/team/U022YPYBZD0"><strong>Erik Visser</strong></a></p><p>Sharing Joel Grus’ presentation “I don’t like notebooks” in case someone hasn’t seen it yet: <a href="https://docs.google.com/presentation/d/1n2RlMdmv1p25Xy5thJUhkKGvjtV-dkAIsUXP-AL4ffI/edit#slide=id.g362da58057_0_1">https://docs.google.com/presentation/d/1n2RlMdmv1p25Xy5thJUhkKGvjtV-dkAIsUXP-AL4ffI/edit#slide=id.g362da58057_0_1</a> (edited)</p><p><a href="https://app.slack.com/team/U01GDTVQSJE"><strong>Andres March</strong></a></p><p>I’m on Joel’s side but here’s the other side</p><p><a href="https://www.youtube.com/watch?v=9Q6sLbz37gk">https://www.youtube.com/watch?v=9Q6sLbz37gk</a></p><p>You can’t possibly put these specific links up without the third</p><p><a href="https://www.fast.ai/2020/10/28/code-of-conduct/">https://www.fast.ai/2020/10/28/code-of-conduct/</a></p><h3>Do you version control your Jupyter notebooks?</h3><p><a href="https://app.slack.com/team/U0158N59C8H"><strong>eterna2</strong></a></p><p>was thinking of trying <a href="https://github.com/mwouts/jupytext">https://github.com/mwouts/jupytext</a><br>But nv got around doing it.</p><p><a href="https://app.slack.com/team/U013EHAQKFV"><strong>Prateek khera</strong></a></p><p>How’s its ^^ different from natively available nbconvert: <a href="https://github.com/jupyter/nbconvert">https://github.com/jupyter/nbconvert</a></p><p><a href="https://app.slack.com/team/U0144U2H55W"><strong>Litox</strong></a></p><p>Our teams are doing things with nbconvert, to be able to push Notebooks to the repo and converting to Markdown to be able to do code-review… But it is really a pain</p><p>it has to do with the Notebook format, which includes code+data. Some isolated efforts have been made to implement a different format, which splits both. but i haven’t seen anything robust yet</p><p>and AFAIK Jupyter’s core team is not working on that</p><p><a href="https://app.slack.com/team/U013EHAQKFV"><strong>Prateek khera</strong></a></p><p>But, I think most of the code versioning tools renders .ipynb files to HTML format by default on web. So, why the need for conversion before pushing to repo?</p><p><a href="https://app.slack.com/team/U011JV7EA69"><strong>david</strong></a></p><p>I’ve moved to using git-lfs for all *.ipynb … basically just treats them like objects. No diffing.</p><p>You will hit problems with repo size if you don’t do this or strip the content on git hook.</p><p><a href="https://app.slack.com/team/U013AH74H1D"><strong>jaklan</strong></a></p><p>That’s the moment when we should really miss RMarkdown in Python stack</p><p>Even things like making some cells hidden is not obvious in Jupyters, and in general — Markdown &gt;&gt;&gt; ipynb, this format is a total nightmare. Have you seen nbconvert custom templates?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/44/0*pJYGVnp-gen9S2Im.png" /></figure><p>Tell Data Scientists to work with that… And of course we have some nice extensions, but when you want to export your notebook — you have to find a way to include them. And they can still not work in things like NBViewer… Jupyter environment is one big mess.</p><p><a href="https://app.slack.com/team/UV92GMLF4"><strong>fclesio</strong></a> tbh, abolished notebooks for production code. We use only for EDA. (edited)</p><p><a href="https://app.slack.com/team/U7DR3F82C"><strong>Luke Marsden</strong></a></p><p>Yeah, I hear that quite a bit. What do you use instead <a href="https://mlops-community.slack.com/team/UV92GMLF4">@fclesio</a>?</p><p><a href="https://app.slack.com/team/UV92GMLF4"><strong>fclesio</strong></a></p><p>After exploration, we pick from DS the notebook and transpose it to a python script (or application) and include all versioning data + code inside DVC for version control and branching and include everything in a docker machine.For new variables (that needs some analysis or graphs) we still use notebooks; but for training we stopped for complete due to several problems of reproducibility and code review and so on.</p><p><a href="https://app.slack.com/team/U011ZP8T8RH"><strong>Jan van der Vegt</strong></a></p><p>In our Cubonacci platform we came up with a somewhat unique solution to notebooks where our notebook environment also contains an IDE at the top which contains the production code but in the Notebook you can interact with this code dynamically. This allows the normal advantages of notebooks but keep the production code used for training and serving seperate. The production code is stored in git while the notebooks are stored (and in the near future versioned) inside our platform.This flow is based on how many data scientists use notebooks for development, when a piece of code is finished it is removed from the notebook and added to a normal Python project, which you then import from directly in your notebook again.</p><p><a href="https://app.slack.com/team/U01BSHL163Y"><strong>Tom Szumowski</strong></a></p><p>Just resurrecting an old thread since my question is related here.We have notebooks that serve as artifacts, or <strong>outputs from a study</strong>. The executed notebooks may take a LONG time to run such that we don’t want to repeat it. But the output of the notebook is what is important, particularly for non-technical people that want to read a report.Some of these notebooks can be 50+ MB when executed due to lots of images. So a direct commit of the executed notebook can be a bit heavy on the github repo. We’d like to version-control the output as a snapshot that people can revisit, but haven’t converged on a clean process for it.Right now we:</p><ol><li>Write and run the notebook</li><li>Save a HTML or PDF</li><li>Stick HTML/PDF in a shared wiki (i.e. Confluence)</li><li>Clear the notebook</li><li>Commit the notebook to github</li></ol><p>It’s a lot of steps to remember and can disincentives DSes from reporting and committing every small study they do.Any thoughts/ideas?</p><p><a href="https://app.slack.com/team/U0144U2H55W"><strong>Litox</strong></a></p><p>No production code on notebooks: that’s a must. Nothing to discuss about that (in my perspective)<br>We are working on “good practices” where the production-ready code is written (and tested) as any other normal piece of software. Of course, you can import and use it from a notebook.<br>Whatever is written on notebooks, must be “made productive” (taken out of the notebook). We have mixed teams, with data-scientists, MLDevs, backend devs (and whatever mix of those roles), so they work together to make it happen.<br>Still, as I said before, when you want to store/version/track a rendered Notebook as an asset, it’s not trivial.<br>Besides, given our organizational context, it is not easy to adopt some frameworks or platforms (such as the one mentioned Cubonacci).</p><p><a href="https://mlops-community.slack.com/team/U01BSHL163Y">@Tom Szumowski</a> that workflow sounds very similar to the one some of our teams implement. Only thing I can say is write an automation tool (aka script) to do all that and reduce the probability of errors.<br>Convert all the 5 steps in one:</p><ol><li>when the notebook is ready, run scripts/commit_experiment.py</li></ol><p>Can’t be that bad, even for DSes</p><p><a href="https://app.slack.com/team/U01P2HVSRJ7"><strong>Asger Pedersen</strong></a></p><p>Hi all … curious how people who work in notebooks get their code into source control like git without all the extra jazz for the notebook itself to run. Using pycharm or something else seems straight forward but just curious how people do it in the notebook world to have something ready to be build and run in production.</p><p><a href="https://app.slack.com/team/U015BH45ZK6"><strong>Laszlo Sragner</strong></a></p><p>My usual answer: If you need to version control something, write the code in python scripts and then you don’t have this problem. Use python-fire to simplify shell script and parameter handling.</p><p><a href="https://app.slack.com/team/U016624NW3U"><strong>Eduardo</strong></a></p><p>I use <a href="https://github.com/mwouts/jupytext">jupytext</a>, which allows me to open .py files in jupyter. I can develop them as notebooks and store them in version control without issues. for orchestration, I use a tool <a href="https://github.com/ploomber/ploomber">I built</a>, which uses <a href="https://github.com/nteract/papermill">papermill</a> under the hood to run multi-stage pipelines (each stage can be a function or script). I’m very happy with this workflow and been using it in production for some time. Feel free to DM me if you’d like to know more details.</p><p><a href="https://app.slack.com/team/U01J0NVNE1G"><strong>Médéric Hurier</strong></a></p><p>For a quick and dirty method, you can clear the notebook output and commit the notebook directly. You could automate that process if needed.</p><p><em>The MLOps community is a place where anyone can gain insights into the current ecosystem. For more info come check out </em><a href="https://go.mlops.community/slack"><em>slack</em></a><em>, </em><a href="https://go.mlops.community/youtube"><em>youtube</em></a><em> or </em><a href="https://go.mlops.community/podcast"><em>podcasts</em></a><em> and join the conversation.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4e0d38803251" width="1" height="1" alt=""><hr><p><a href="https://medium.com/mlops-community/jupyter-notebooks-in-production-4e0d38803251">Jupyter Notebooks In Production?</a> was originally published in <a href="https://medium.com/mlops-community">MLOps.community</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[New Tool Tuesday — Part Deux]]></title>
            <link>https://medium.com/mlops-community/new-tool-tuesday-part-deux-b14686ece81c?source=rss----eefba8917b5---4</link>
            <guid isPermaLink="false">https://medium.com/p/b14686ece81c</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[data-science-tools]]></category>
            <category><![CDATA[mlops]]></category>
            <dc:creator><![CDATA[Demetrios Brinkmann]]></dc:creator>
            <pubDate>Sat, 29 May 2021 15:01:44 GMT</pubDate>
            <atom:updated>2021-05-29T15:01:43.973Z</atom:updated>
            <content:encoded><![CDATA[<h3>New Tool Tuesday — Part Deux</h3><p><em>A collection of all the latest New Tool Tuesday excerpts from our MLOps weekly newsletter. Subscribe to get them fresh in your inbox </em><a href="https://go.mlops.community/newsletter"><em>here</em></a><em>.</em></p><h3><strong>Kites and Boxes</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f5sYBSN2q5sd0SpKnjpW_w.jpeg" /><figcaption>Photo by <a href="https://www.pexels.com/@quang-nguyen-vinh-222549?utm_content=attributionCopyText&amp;utm_medium=referral&amp;utm_source=pexels">Quang Nguyen Vinh</a> from <a href="https://www.pexels.com/photo/people-standing-on-wooden-dock-2132062/?utm_content=attributionCopyText&amp;utm_medium=referral&amp;utm_source=pexels">Pexels</a></figcaption></figure><h4><strong>Another ML Monitoring Solution?</strong></h4><p>There is something very special about today’s “New Tool Tuesday”. My old boss and an MLOps community founder Luke Marsden is a co-creator.</p><p>I spoke with Luke over the weekend about the tool and why they created it. Before we talked about the tool though, first thing he said to me was “I saw your <a href="https://autodb.lt.acemlna.com/Prod/link-tracker?notrack=1&amp;notrack=1&amp;redirectUrl=aHR0cHMlM0ElMkYlMkZ3d3cubGlua2VkaW4uY29tJTJGcG9zdHMlMkZkcGJyaW5rbV9rOHMtZG9rYy1hY3Rpdml0eS02Nzk1MzMxMzgyODQ4NTgxNjMyLW1DSFglM0Z1dG1fc291cmNlJTNEQWN0aXZlQ2FtcGFpZ24lMjZ1dG1fbWVkaXVtJTNEZW1haWwlMjZ1dG1fY29udGVudCUzRCUyNUYwJTI1OUYlMjVBQSUyNTgxJTJCSGlnaCUyQmFzJTJCYSUyQktpdGUlMkIlMjVGMCUyNTlGJTI1QUElMjU4MSUyNnV0bV9jYW1wYWlnbiUzRE1MT3BzJTJCLSUyQk5ld3NsZXR0ZXIlMkItJTJCMjAyMSUyQi0lMkIwNSUyQi0lMkIwOA==&amp;a=650082935&amp;account=autodb%2Eactivehosted%2Ecom&amp;email=LRRV6glqIfcVPcYsJBrMHi%2FZD%2BmsUFpJrc5fHf6IoVE%3D&amp;s=bad97c655476f96a390a72c05a742011&amp;i=111A130A5A3941">LinkedIn post</a>….. yeah sorry about that” 😆</p><p>Anyway, I asked him why the hell he would make a monitoring solution at this time with the current space being full already.</p><p>“BasisAI have a product called Bedrock which is an MLOps platform. It has a monitoring component in it — to create boxkite we extracted the code from the proprietary platform and open sourced it.”</p><p>Sounds a bit like cheating, go on.</p><p>“Under the hood, it’s a simple python library which you pass your training data, training labels, production data and production labels it and it creates Prometheus histograms automatically from them. You ship the training time histogram with the model and feed it back into the boxkite component that runs in production, boxkite then knows how to compare the training time histogram with what it’s seeing in production and exposes a prometheus endpoint.”</p><p>Ok, Nice. But I’m still not convinced. Sounds like I can just do this with prometheus and grafana. Why would I need boxkite?</p><p>“One of the hardest parts was figuring out how to show the difference between the distributions in Granfana — normally to compare two distributions you use a technique called Kullback–Leibler divergence or KL divergence for short. There are loads of implementations of KL divergence in Python. One of the really clever things the BasisAI team did was to port KL divergence to Grafana.</p><p><strong>So, there’s a really hairy PromQL expression hiding in the Grafana dashboard which shows you the KL divergence purely in Prometheus &amp; Grafana.</strong></p><p>None of the ML monitoring tools we’ve seen work natively with Prometheus &amp; Grafana. We don’t believe you should be using one stack to monitor your ML and another stack to monitor your software. There should be unification between the MLOps teams &amp; DevOps teams — and using the same tools is a key part of breaking down that wall.”</p><p>Interesting point. MLOps and DevOps working together in unison on a single stack.</p><p>“We’ve also seen a lot of monitoring tools that are pretty heavyweight: Seldon’s Alibi for example uses an event bus to ship all of the production inferences to a central server which then runs the statistical techniques like KL divergence in Python.</p><p>Instead, boxkite is really lightweight — it’s just instrumenting the training, exporting a prometheus compatible histogram. That’s what’s shipped with the model. It then exposes a simple Prometheus endpoint on your service which gets scraped just like the rest of your microservices.</p><p>Props to the BasisAI team for making something actually quite difficult seem pretty simple.”</p><p>Luke set up a demo to check it out and kick the tyres if you feel so inclined. Check out <a href="https://boxkite.ml/en/latest/">Boxkite.ml</a></p><h3><strong>Hypervectors for Hyperspace</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X_89YLzVZHfAHMuej-EcJQ.jpeg" /></figure><h4><strong>Application Programming Interface</strong></h4><p><strong>The Long and the short of it — </strong>Hypervector is an API for writing test fixtures for data-driven features and components. It provides synthetic data (generated from distributions the user defines programmatically) over dedicated endpoints. It also allows you to benchmark the output of any function or model to detect changes and regressions as part of your wider test suites.</p><p>So I caught up with the creator of Hypervector Jason Costello to talk about how and why this tool materialized. Enter Jason.</p><p>I started off as a data scientist around 2014 after working in applied ML research for a bit, but I found myself more interested in becoming a better engineer as time went on. I’ve been fortunate enough to work with some superb teams, and one of the areas I’ve learned the most as a developer has been in writing useful tests. I find these help me contribute with less stress &amp; uncertainty, can often aid in my understanding of a problem, and help make the experience of fast-moving shared codebases a little less chaotic.</p><p>A surprisingly common scenario I’ve encountered in multiple data teams has been at the interface between the data scientists and wider engineering folks when it comes time to ship something.</p><p>Engineers love to verify equivalence and consistency — over and over again with every incremental change. I remember being asked after pushing an improvement to a model: “How do we know it’s doing what it did before, plus some bits better?”. My answer would have been explaining the train-test-validate cycle, the various model selection metrics we’d used to make the decision to ship an improvement, and I might have pulled up a Jupyter Notebook to show some graphs (and probably waved my hands about a lot).</p><p>Now I can see that was sort of missing the point. The question was more like “How do WE (the engineers) know its doing what it did before, plus some bits better?”. Why can’t we run a test on every build of this project that ensures even seemingly unrelated changes have not somehow broke a small but important part of the model’s output?</p><p>I didn’t have a great response for this at the time, and eventually settled on using some of the training data used to build the feature as a test resource in the project repo — not a very elegant solution, and then a real pain to maintain going forward.</p><p>Hypervector tries to help in this area by providing a set of tools you can access via Python (or REST if you’d prefer). These tools allow you to define test resources centrally for such scenarios.</p><p>It began as a side project I was working on during evenings and weekends, and I decided to focus on it full-time towards the end of 2020. You can try out the early adopters Alpha version <a href="https://autodb.lt.acemlna.com/Prod/link-tracker?notrack=1&amp;notrack=1&amp;redirectUrl=aHR0cHMlM0ElMkYlMkZoeXBlcnZlY3Rvci5pbyUyRmFscGhhJTNGdXRtX3NvdXJjZSUzREFjdGl2ZUNhbXBhaWduJTI2dXRtX21lZGl1bSUzRGVtYWlsJTI2dXRtX2NvbnRlbnQlM0RUaGUlMkJNZW1lJTJCS2luZyUyQkNvbWV0aCUyNnV0bV9jYW1wYWlnbiUzRE1MT3BzJTJCLSUyQk5ld3NsZXR0ZXIlMkItJTJCMjAyMSUyQi0lMkIwNSUyQi0lMkIwMg==&amp;a=650082935&amp;account=autodb%2Eactivehosted%2Ecom&amp;email=LRRV6glqIfcVPcYsJBrMHi%2FZD%2BmsUFpJrc5fHf6IoVE%3D&amp;s=bad97c655476f96a390a72c05a742011&amp;i=108A127A5A3748">here</a>, and please feel free to reach out on the MLOps Slack at any time. Feedback Appreciated.</p><h3><strong>Sages And Saints</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*0DfX1r75qKK4ROp8" /><figcaption>Photo by <a href="https://www.wari.cat/index">Wari Om</a></figcaption></figure><h4><strong>Sagify</strong></h4><p><strong>The Story: </strong>In late 2017 my greek brother Pavlos Mitsoulis was a data scientist suffering through the painful experience of configuring his own EC2 instances in order to train and deploy ML models. Fraught with distress he tilted his head upwards, threw his hands in the sky, and clamored “there must be a better way!” Sadly the state of MLOps was nowhere near as booming as it is today, so with the fire of determination burning inside of him he set out to make things right for all other data scientists who found themselves in the same predicament.</p><p><strong>The Solution: </strong>The idea was simple and some even laughed at his naivete. Train and deploy models by implementing 2 functions on AWS? “This is blasphemous!” They responded and even created custom slack emojis to call him out. None the less Pavlos persisted. Train() and predict(), train() and predict(), train() and predict(). Two functions was all he needed.</p><p><strong>Enter Sagemaker: </strong>As Pavlos became more and more enamored with the idea of making life for himself and fellow data scientists easier, AWS did something unexpected; they released Sagemaker. “Oh no, they got there first” he thought to himself. Then it dawned on him, Sagemaker is an ML engine, not an ML platform. Realizing he could take the reins and stand on the shoulders of the beast this would help him get to his solution sooner! Train() and predict(), train() and predict() like an incantation fueling his late night coding sessions.</p><p><strong>Sagify Is Born: </strong>After numerous sleepless nights and nearing defeat countless times Pavlos rose like the phoenix from the ashes with an easy to use CLI MLOps tool in hand. Sagify is for all those data scientists who feel their voice falls upon deaf ears. For those data scientists who only want to focus 100% on ML; just training, tuning, and deploying models. For those that are already on AWS, a star is born to leverage Sagemaker as a backend ML engine, so they can work smarter, not harder.</p><p>Check out Sagify <a href="https://github.com/Kenza-AI/sagify">here</a></p><p><em>*This is based on a true story, some creative liberties have been taken for the sake of entertainment. :)</em></p><h3><strong>Dikembe Mutombo</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BGxAd6FpKCMEUmUlI-v5kA.jpeg" /><figcaption>Photo by <a href="https://www.pexels.com/@padrinan?utm_content=attributionCopyText&amp;utm_medium=referral&amp;utm_source=pexels">Miguel Á. Padriñán</a> from <a href="https://www.pexels.com/photo/bike-chain-number-one-1061142/?utm_content=attributionCopyText&amp;utm_medium=referral&amp;utm_source=pexels">Pexels</a></figcaption></figure><h4><strong>The One Commandment</strong></h4><p>I am a sucker for well named products. When @Miguel Jaques mentioned he had created a new tool called Nimbo I couldn’t help myself. I had to dive in deeper for this addition of ‘New Tool Tuesday’.</p><p><strong>What it is:</strong> Nimbo is a command-line tool that allows you to run machine learning models on AWS with a single command. It abstracts away the complexity of AWS. This allows you to build, iterate, and deliver machine learning models.</p><p><strong>Why it was created:</strong> Two Edinburgh college buddies were sick of how cumbersome using AWS was. Miguel a PhD in Machine Learning, Juozas, the co-founder, a Software Engineer wanted to be able to run jobs on AWS as easily as running them locally (e.g. training a neural network).</p><p>“All in all, we didn’t like the current AWS user experience, and we thought we could drastically simplify it for the machine learning/scientific computing niche.”</p><p>Having experienced that pain they set out to provide commands that make it easier to work with AWS. Such commands include easily checking GPU instance prices, logging onto instances, syncing data to/from S3, one-command Jupyter notebook, etc.</p><p>The lads decided to be solely client-side, meaning that the code runs on your EC2 instances and data is stored in your S3 buckets.</p><p>“We don’t have a server; all the infrastructure orchestration happens in the Nimbo package.”</p><p><strong>How it works under the hood: </strong>Nimbo uses the AWS CLI and SDK to automate the many steps of running jobs on AWS.</p><p>Some examples of this include: launching an instance (on-demand or spot instance), setting up your environment, syncing your code, pulling your datasets from S3, running the job, and when the job is done, saving the results and logs back to S3 and gracefully shutting down the instance.</p><p>You can use a single command (nimbo pull results) to get the results onto your computer. One of the most annoying parts of working with AWS is the IAM management and permissions. Miguel and Juozas decided to automate that too cause no one should have to suffer through that unwillingly.</p><p><strong>Looking forward:</strong> The guys plan to add docker support, one-command deployments, and GCP support. Who knows maybe they will even chat with Pavlos and the Sagify folks as it seems they are trying to address some of the same problems.</p><p>Check out Nimbo <a href="https://nimbo.sh/">here</a></p><h3>Puddles and Ponds</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WSPV9sNEpqEfhcyPIiDX6g.jpeg" /><figcaption>Photo by <a href="https://www.pexels.com/@simonmigaj?utm_content=attributionCopyText&amp;utm_medium=referral&amp;utm_source=pexels">S Migaj</a> from <a href="https://www.pexels.com/photo/person-on-a-bridge-near-a-lake-747964/?utm_content=attributionCopyText&amp;utm_medium=referral&amp;utm_source=pexels">Pexels</a></figcaption></figure><h4><strong>Rock Skipping on K8S</strong></h4><p><strong>Puntastic: </strong>My man @Bogdan State from New Zeland came through the community slack and made quite a “splash” about his new tool Walden. What is it? Well it’s is meant to be a “data pond” that runs on Kubernetes. Data pond? we’ll get to that in a minute. This edition of new tool Tuesday was supposed to be in last week’s newsletter, but I ended up being completely underwater and had to postpone til now. Anyway I caught up with the kiwi himself to get the rundown he hopes this tool can become the big fish in a… Really I couldn’t help myself.</p><p><strong>The Backstory: </strong>Bogdan spent some time interning at Facebook in 2013 when he first encountered the data processing engine called Presto/Trino. Becasue of its incredible speed, he has come to rely on it extensively as a data scientist when processing very large amounts of tabular data.</p><p>After starting his own data science consultancy, <a href="https://autodb.lt.acemlna.com/Prod/link-tracker?redirectUrl=aHR0cCUzQSUyRiUyRnNjaWUubnolMkYlM0Z1dG1fc291cmNlJTNEQWN0aXZlQ2FtcGFpZ24lMjZ1dG1fbWVkaXVtJTNEZW1haWwlMjZ1dG1fY29udGVudCUzREElMkJEYXRhJTJCTGFrZSUyQkJlY29tZXMlMkJBJTJCUG9uZCUyNnV0bV9jYW1wYWlnbiUzRE1MT3BzJTJCLSUyQk5ld3NsZXR0ZXIlMkItJTJCMjAyMSUyQi0lMkIwMyUyQi0lMkIwMQ==&amp;a=650082935&amp;account=autodb%2Eactivehosted%2Ecom&amp;email=%2BkxAUibVYL3rYUFGUkzLI735hO7C%2FF3J%2FgQB9Uu3XAY%3D&amp;s=8f7988df2d0f53c909296b6400dc1252&amp;i=89A106A5A2661">scie.nz</a>, one of the first items on the order of business was getting a working Presto / Trino installation. This turned out to be more work than expected, particularly due to a requirement that whatever setup they created, had to run on Kubernetes. After a few months of off-and-on development, reading tutorials, and pursuing debugging rabbit holes, his team finally got a working install, made up of Min.IO, Trino and the Hive Metastore. It is here that Mr. State realized he had built a small data lake in the process of doing so — a “data pond” if you want.</p><p><strong>The Name: </strong>Since this sort of deployment is meant to answer the use case of a small team just trying to get started with Presto / Trino, and does not deal with more enterprise things like permissions and auditing, Bogdan and his team called it Walden. It’s a tribute to American writer Henry David Thoreau, who exalted self-sufficiency, solitude and contemplation at Walden pond, on the shores of which he lived by himself for two years. As it turns out, Thoreau received some help from his mother who did his laundry and dropped off food for him to eat. The lesson being that self-sufficiency looks easy and romantic on paper but creates a lot of unforeseen issues! This being the case, the kiwi nonetheless thinks that setting up your own mini data lake can be a useful (and inexpensive) way to get started analyzing big data, and hopes others find this work useful and build upon it!</p><p>Read all about Walden <a href="https://autodb.lt.acemlna.com/Prod/link-tracker?redirectUrl=aHR0cCUzQSUyRiUyRnNjaWUubnolMkZ3YWxkZW4lM0Z1dG1fc291cmNlJTNEQWN0aXZlQ2FtcGFpZ24lMjZ1dG1fbWVkaXVtJTNEZW1haWwlMjZ1dG1fY29udGVudCUzREElMkJEYXRhJTJCTGFrZSUyQkJlY29tZXMlMkJBJTJCUG9uZCUyNnV0bV9jYW1wYWlnbiUzRE1MT3BzJTJCLSUyQk5ld3NsZXR0ZXIlMkItJTJCMjAyMSUyQi0lMkIwMyUyQi0lMkIwMQ==&amp;a=650082935&amp;account=autodb%2Eactivehosted%2Ecom&amp;email=%2BkxAUibVYL3rYUFGUkzLI735hO7C%2FF3J%2FgQB9Uu3XAY%3D&amp;s=8f7988df2d0f53c909296b6400dc1252&amp;i=89A106A5A2662">here</a> or click <a href="https://github.com/scie-nz/walden">here</a> to go straight to the github.</p><p><em>The MLOps community is a place where anyone can come and gain insights into the current ecosystem. For more info come check out </em><a href="https://go.mlops.community/slack"><em>slack</em></a><em>, </em><a href="https://go.mlops.community/youtube"><em>youtube</em></a><em> or </em><a href="https://go.mlops.community/podcast"><em>podcasts</em></a><em> and join the conversation.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b14686ece81c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/mlops-community/new-tool-tuesday-part-deux-b14686ece81c">New Tool Tuesday — Part Deux</a> was originally published in <a href="https://medium.com/mlops-community">MLOps.community</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[MLOps Community and MLOps World — better together]]></title>
            <link>https://medium.com/mlops-community/mlops-community-and-mlops-world-better-together-27d44db7b50d?source=rss----eefba8917b5---4</link>
            <guid isPermaLink="false">https://medium.com/p/27d44db7b50d</guid>
            <category><![CDATA[mlops]]></category>
            <category><![CDATA[conference]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Demetrios Brinkmann]]></dc:creator>
            <pubDate>Tue, 25 May 2021 14:26:26 GMT</pubDate>
            <atom:updated>2021-05-25T14:26:26.309Z</atom:updated>
            <content:encoded><![CDATA[<h3>MLOps Community and MLOps World — better together</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Nlrq5AueziJWi891tEGepQ.png" /></figure><p>Super-excited to announce that we’re joining forces with our sister organization across the pond, <a href="https://mlopsworld.com/">MLOps World</a>. Together we’re going to co-promote the upcoming <a href="https://www.eventbrite.ca/e/mlops-world-machine-learning-in-production-2021-tickets-141471026649">MLOps World Conference</a> and bring our own MLOps Community ideas and content to an even bigger global audience of data scientists and ML pros.</p><p>For those who don’t know, MLOps World is a leading community of machine learning professionals based in Canada. Since 2017 they’ve been running an impressive North American local events program plus their annual big blast conference, which is happening this year on <a href="https://mlopsworld.com/program/">June 14th and 17th</a>.</p><p>I’ve spoken at their events in the past. I have also been able to get some great guests for our meetups from the speakers that attend the conference. As the global MLOps community starts to coalesce; we thought we could light a fire under the process by forging closer links between our respective communities.</p><p>MLOps Community is all about collaboration. It is our goal to have a fun place for people to learn about MLOps beyond the surface-level blog posts. We pride ourselves on the experts that form part of our community. Amongst the members of this community, we are all generous with our knowledge, and look forward to interacting with each other.</p><p>Over the past year or so, I’ve repeatedly crossed paths with MLOPs World founder <a href="https://www.linkedin.com/in/davidscharbach/">Dave Scharbach</a> at events and forums. When that happens 2 or 3 times its starts to feel like fate! After some discussion, we thought, why not try and bring the two memberships closer together?</p><p><em>And now here we are.</em> I should say this is an alliance, not a merger. And maybe I am making a big deal out of nothing. I however feel that the MLOps World conferences are such high quality that I wanted to throw the weight of the community behind it.</p><p>We’re going to co-promote and boost mutual participation in one another’s events and online platforms. We hope to see lots more people from the MLOps World community posting in our Slack and subscribing to the YouTube channel. And we’ll be actively promoting the MLOps World event agenda too.</p><p>Altogether it should mean more sharing of best practices, success stories, and advice on solving thorny practical problems in taking ML models to production.</p><p>One example of that co-operation already coming to life is the competition we’re sponsoring in advance of the June conference. We have eight teams in the Engineering Labs group working on the best way to demonstrate the value of a feature store.</p><p>They can choose an open-source solution or create their own and then measure before and after on a few different metrics. You can think of it as building a kaggle for MLOps. The winner of that competition will secure a place to present their findings at the conference.</p><p>As Dave put it when we spoke earlier this week: ‘We don’t want it to be an echo chamber. The more exposure we all have to different approaches and different ideas, the better.</p><p>‘We have a great opportunity because the circumstances of the last year mean that people are more open to connecting with colleagues globally than they’ve ever been in the past.’</p><h3>MLOPs Word Conference 2021</h3><p>This year’s event will feature talks from the likes of Matei Zaharia of Databricks and Brian Amadio of Stitch Fix, along with a wide array of workshops, project presentations, and practical advice sessions. Altogether we’re expecting 1,000 attendees, 60 speakers, and 20+ workshops.</p><p>When anyone signs up for the event, they’ll be directed to join the new conference channel on the MLOPs Community Slack <a href="https://join.slack.com/t/mlops-community/shared_invite/zt-o96abp9z-sRYKWb96wGK9vdhUvbSrsQ">#MLOps-World</a>.</p><p>We are hoping that the pre and post party happens in the MLOps community Slack and the day of banter is at the virtual conference. Come join us!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=27d44db7b50d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/mlops-community/mlops-community-and-mlops-world-better-together-27d44db7b50d">MLOps Community and MLOps World — better together</a> was originally published in <a href="https://medium.com/mlops-community">MLOps.community</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why data scientists should know data engineering]]></title>
            <link>https://medium.com/mlops-community/why-data-scientists-should-know-data-engineering-68a1edd0c5f4?source=rss----eefba8917b5---4</link>
            <guid isPermaLink="false">https://medium.com/p/68a1edd0c5f4</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[data-scientist]]></category>
            <dc:creator><![CDATA[Demetrios Brinkmann]]></dc:creator>
            <pubDate>Mon, 10 May 2021 11:44:19 GMT</pubDate>
            <atom:updated>2021-05-10T11:44:18.986Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rAkrFWT2qbrcwI2tPrGA5A.jpeg" /></figure><p>With the rush to embrace machine learning, data engineering has turned out to be an essential piece of the ML puzzle — one that data scientists need to rely on more and more as a pre-requisite for success.</p><p>With their expertise in programming, data engineers create the data pipelines that data scientists use to feed their machine learning models. To an outsider, creating a data pipeline might sound mundane or trivial, but it can involve weaving together anywhere from ten to thirty different data technologies.</p><p>The data engineer is also the person who selects the tools to do the job. He or she will have the in-depth knowledge needed to assess the various technologies and frameworks, and the know-how to combine them to create solutions that enable a company’s digital business model.</p><p>When it comes to separating the data engineer and data scientist roles, the line can be a little blurry. There’s overlap between the roles — and that’s a good thing. Both need to be able to speak the other’s language and collaborate effectively to reach the same business objective. There should be a mutual understanding of their respective decision-making processes, dependencies, and limitations to make the process of building ML models and applications successful.</p><p>On balance, we’d say it’s becoming even more important for data scientists to take on more data engineering knowledge. Knowing more about the programming-side can help them clarify what they need from data engineers, or even take on some of the pipeline building tasks themselves.</p><p>We’ve taken a sampling of opinion from leading data scientists to get their thoughts on bringing some of data engineering’s programming <em>nous</em> to data science’s math and statistics expertise, and what a new combined role might look like.</p><h3>From hand tools to power tools</h3><p><strong>Dan Sullivan, PhD: Enterprise architect and big data expert</strong></p><p><em>‘I would say that for a data scientist, learning data engineering is like moving from a hand saw to a chainsaw. Now you have power tools at your disposal, and you can do so much more.</em></p><p><em>‘As a data scientist, you have really large volumes of data and want to do something with it like streaming analytics. Of course, you understand the math, can pick the right algorithm, and create a scenario for analysis, but the volume of data is so large that you spend a lot of time moving around files or cleaning them up. That’s where data engineering skills would really come in handy.’</em></p><p>But is it realistic to have one role that handles it all? There’s an argument that data scientists should focus on how to get their models into production and monitor them, rather than being distracted by issues like data cleaning.</p><p>‘<em>I think it’s possible to have a good understanding of all of the pieces of the puzzle, but of course, it helps to go deep on one of them. There’s a parallel between our work in data engineering and data science, and software engineering; where people talk about being full-stack engineers.’</em></p><p><em>‘From an ML data engineering perspective, some people are really good with visualization and working with business domain experts to massage the data for the front end. And then there are people focused on back-end services who understand databases and how to move large volumes of data.’</em></p><p><em>‘If somebody identified as a full-stack engineer, I would never question them, but I’ll be honest — I could never be a full-stack engineer. I would be good at one end or the other or something in between, but not all of it. I feel like that’s the same with data science and data engineering. It’s just too big of a domain for one role to cover it all.’</em></p><h3>Learning to speak the same language</h3><p><strong>Byron Allen: Machine Learning Consultant at Servian</strong></p><p>Blogging about just this issue recently, ML consultant Byron Allen recently wrote that one of the most exciting machine learning developments in recent months has been the growth in collaboration between data scientists and data engineers. In many businesses, they now work together effectively as part of the same team.</p><p><em>‘The genesis of many major challenges in applying ML today, whether that be technical, commercial, or societal, is the imbalance of data over time coupled with the management of ML artefacts.’</em></p><p>A model can perform exceptionally well, he says, but if the underlying data drifts and artefacts aren’t being used to assess performance, models won’t generalise well or update correctly — an increasingly common issue that falls into a fuzzy area inhabited by both data scientists and data engineers.</p><p><em>‘It doesn’t matter if you can create a really good ‘black box’ model, if your input data changes and the model isn’t regularly assessed in the context of what it was built to do, it loses its relevance over time. Tackling that issue is hard because the people that are feeding the data in, engineers, and the people that designed the model, scientists, don’t have the happiest of marriages.’</em></p><p>Navigating those waters, he says, will lead organisations towards a more effective and sustainable application of ML.</p><p><em>The MLOps community is a place where anyone can come and gain insights into the current ecosystem. For more info come check out </em><a href="https://go.mlops.community/slack"><em>slack</em></a><em>, </em><a href="https://go.mlops.community/youtube"><em>youtube</em></a><em> or </em><a href="https://go.mlops.community/podcast"><em>podcasts</em></a><em> and join the conversation.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=68a1edd0c5f4" width="1" height="1" alt=""><hr><p><a href="https://medium.com/mlops-community/why-data-scientists-should-know-data-engineering-68a1edd0c5f4">Why data scientists should know data engineering</a> was originally published in <a href="https://medium.com/mlops-community">MLOps.community</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>