<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by yochze on Medium]]></title>
        <description><![CDATA[Stories by yochze on Medium]]></description>
        <link>https://medium.com/@yochze?source=rss-e9df0cb1631c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*6OePZn-2Q78ap7kU8gG_Sw.jpeg</url>
            <title>Stories by yochze on Medium</title>
            <link>https://medium.com/@yochze?source=rss-e9df0cb1631c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 00:14:26 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@yochze/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[The cost of “computational debt” in machine learning infrastructure]]></title>
            <link>https://medium.com/data-science/the-cost-of-computational-debt-in-machine-learning-infrastructure-228a95516047?source=rss-e9df0cb1631c------2</link>
            <guid isPermaLink="false">https://medium.com/p/228a95516047</guid>
            <category><![CDATA[gpu]]></category>
            <category><![CDATA[information-technology]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[infrastructure]]></category>
            <dc:creator><![CDATA[yochze]]></dc:creator>
            <pubDate>Wed, 30 Sep 2020 12:57:08 GMT</pubDate>
            <atom:updated>2020-10-07T08:09:31.318Z</atom:updated>
            <content:encoded><![CDATA[<h4>How to maximize the utilization and scalability of your ML servers</h4><p>It is not news that machine learning and deep learning is expensive. While the business value of incorporating AI into organizations is extremely high, it often does not offset the computation cost needed to apply these models into your business. Machine learning and deep learning are very compute-intensive, and it has been argued that until cloud or on-premises computing costs decrease — AI innovation will not be worth the cost, despite its unprecedented business value.</p><p>In an article on WIRED, <a href="https://www.wired.com/story/prepare-artificial-intelligence-produce-less-wizardry/">Neil Thompson, a research scientist at MIT</a> and author of “<a href="https://arxiv.org/pdf/2007.05558.pdf">The Computational Limits of Deep Learning</a>” mentions numerous organizations from Google to <a href="https://www.wired.com/story/facebooks-ai-says-field-hit-wall/">Facebook</a> that have built high-impact, cost-saving models that go unused due to computational cost making the model not profitable. In some recent talks and papers, Thompson says, researchers working on particularly large and cutting-edge AI projects have begun to complain that they cannot test more than one algorithm design, or rerun an experiment because the cost is so high.</p><p>Organizations require dramatically more computationally-efficient methods to advance innovation and increase ROI for their AI efforts. Though, high computational cost, and a focus on more efficient computation doesn’t deserve all the blame. In fact, significant advances in GPU-accelerated infrastructure and other cloud providers have dramatically increased the ability to train the most complex AI networks at unprecedented speed. In May 2020,<a href="https://www.businesswire.com/news/home/20200512005105/en/DeepCube-Launches-Industry-First-Deep-Learning-Software-Accelerator"> DeepCube released </a>its software-based inference accelerator that drastically improves deep learning performance on any existing hardware. In other words, compute solutions are being developed to meet the increasing demands of machine learning and deep learning. The silent killer of AI innovation is the underutilization of existing compute, and the increasing cost of “computational debt”.</p><h3>What is “computational debt”?</h3><p>AI leaders may be surprised to find out that one of the leading factors impeding the ROI for machine learning is the under-utilization of GPUs, CPUs and Memory resources. Companies invest millions of dollars on compute that has the potential to dramatically accelerate AI workloads and improve performance, but end up only utilizing a small fraction of it, sometimes as low as 20% of these powerful resources. The gap between compute allocation and actual utilization is shocking, and can cost companies more than they realize. This gap between compute, allocation, and utilization we refer to as “computational debt”. It refers to the “waste” between allocation and capacity.</p><p>In the graphic below you can visualize the average utilization in green, versus allocation at a time in yellow. When a workload is running, it is often only utilizing part of the GPU, leaving the other part blocked from other potential workloads. The area in grey is capacity, which is the existing compute available whether GPU, CPU, or memory. The grey area is all compute that is left idle, and underutilized.</p><figure><a href="https://cnvrg.io/platform/mlops-dashboard/"><img alt="https://cnvrg.io/wp-content/uploads/2020/09/cnvrg_ML_Infrastructure_Dashboard-03.png" src="https://cdn-images-1.medium.com/max/1024/0*hua_MtM2NxbnJ6CY" /></a><figcaption>Source: cnvrg.io</figcaption></figure><h3>What causes “computational debt”?</h3><p>Machine learning and deep learning are compute-intensive and complex to manage, making this computational debt difficult to reduce. One of the greatest challenges for AI infrastructure teams is understanding how to increase utilization, and manage the resources in a way that maximizes consumption, and increases the ROI of machine learning projects. Some of the leading causes for “computational debt” are:</p><ol><li><strong>Infrastructure Teams Lack AI Project Visibility</strong> <br>Infrastructure costs for ML projects are growing 2X each year, however IT teams lack the tools to manage, optimize and budget ML resources properly, on-prem or in the cloud. Most IT/DevOps leaders lack visibility into utilization, allocation and capacity of GPU/CPU and Memory at a given time. This makes it impossible to control consumption, and reduce inefficiencies.</li><li><strong>Growing “Computational Debt”<br></strong> As AI compute needs become more complex, the gap between computational allocation and actual utilization increases in size. On average, organizations are likely to only consume around 30% of their overall resources. That leaves nearly 70% of compute idle, wasting companies thousands and even millions of dollars.</li><li><strong>Inability to Identify Inefficient Jobs<br></strong> Infrastructure teams can’t easily identify workloads that consistently underutilize GPUs/CPUs. Without the data collected on historical workloads, there is no way to analyze and identify workloads that are running inefficiently. This lack of visibility makes it difficult to improve utilization, and to control how workloads are being prioritized.</li><li><strong>Productivity Disruption</strong> <br>Underutilized GPUs are being blocked for other jobs, and increases waiting time for data scientists to complete projects. This results in more time wasted waiting for the GPU availability, and wasted resources on top of that. Meanwhile, there are other resources that are idle that could be used for other jobs.</li><li><strong>Lack of standardization and unification</strong> <br>Often, teams are unable to correlate a job to its utilization metrics. There is no standard visualization tool that allows you to see an allocation, utilization and capacity of jobs at a certain point in time. This makes it difficult to identify inefficient jobs and prioritize wasteful workloads. Machine learning has reached the stage of maturity that AI infrastructure strategizing is necessary in order to grow.</li><li><strong>Inability to control optimization strategies<br></strong>While some teams might be able to identify inefficiencies and plan for an optimized infrastructure strategy, there are few tools to execute on these strategies. IT/DevOps teams require control of AI workloads in order to optimize resource management. Without ways to prioritize jobs, configure compute templates and monitor workload allocation and utilization, no substantial improvements can be made.</li></ol><h3>Strategies to reduce “computational debt”</h3><p>There is no clear resolution to this problem, but there are ways to increase the effectiveness of resource management. Here are a few strategies that could improve utilization of your compute resources.</p><ol><li><strong>Invest in the most advanced GPU-accelerated AI infrastructure<br></strong><a href="https://cnvrg.io/solutions/dgx/">GPU acceleration technology</a> has come a long way. Hardware and software deep learning acceleration solutions have emerged to deliver unprecedented performance. Research the latest available solutions for GPU acceleration to adopt a truly modern AI infrastructure.</li><li><strong>Adopt a Hybrid Cloud infrastructure<br></strong>Combining public clouds, private clouds, and on-premise resources offers agility and flexibility in terms of running AI workloads. Because the types of workloads vary dramatically between AI workloads, organizations that build a hybrid cloud infrastructure are able to allocate resources more flexibly and custom sizes. You can lower CapEx expenditure with public cloud, and offer the scalability needed for periods of high compute demands. In organizations with strict security demands, the addition of private cloud is necessary, and can lower OpEx over time. Hybrid cloud helps you achieve the control and flexibility necessary to improve budgeting of resources.</li><li><strong>Utilize </strong><a href="https://www.microsoft.com/en-us/research/uploads/prod/2020/05/dnnmem.pdf"><strong>estimation tools</strong></a><strong> for GPU/CPU memory consumption<br></strong>According to a <a href="https://www.microsoft.com/en-us/research/uploads/prod/2020/05/dnnmem.pdf">Microsoft Research study</a> on 4,960 failed DL jobs in Microsoft, 8.8% of the job failures were caused by the exhaustion of GPU memory, which accounts for the largest category in all deep learning specific failures. Many <a href="https://cnvrg.io/introducing-mlops-dashboard/">estimation tools</a> have been developed to help plan GPU memory consumption to reduce these failures. In addition, if you’re able to collect utilization data, you can use this historical data to better forecast GPU/CPU and memory needs for each quarter.</li><li><strong>Scale MLOps <br></strong>Introduce a way to streamline your ML workflow and standardize transitions between science and engineering roles. Since IT and DevOps are responsible for deploying and managing workloads, it’s important to have a clear communication channel when running different jobs. Proper <a href="https://cnvrg.io/introducing-mlops-dashboard/">scheduling tools</a> and strategizing resource templates can also improve resource management of AI workloads.</li><li><strong>Maximize utilization, and reduce “computational debt”<br></strong>Focusing on computational debt as a KPI for your infrastructure team and data science team is necessary in order to improve utilization. Organizations that manage to reduce computational debt and increase utilization will thrive in the race towards AI.</li></ol><h3>Conclusion</h3><p>There are few solutions that maximize visibility of GPU/CPU and memory consumption for infrastructure teams to improve utilization. While the industry is quickly building more efficient hardware and software to solve the threat of computational debt, we have a long way to go. The reality is, most organizations are sitting on millions of dollars of underutilized compute. By using what you have, and improving resource management, organizations will enable massive scalability of their AI infrastructure. By adopting some of these strategies into your modern AI infrastructure, you may find that full utilization of compute is achievable. Companies that focus on infrastructure optimization are going to see an increased ROI for their AI efforts, and gain a competitive edge against the competition.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=228a95516047" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science/the-cost-of-computational-debt-in-machine-learning-infrastructure-228a95516047">The cost of “computational debt” in machine learning infrastructure</a> was originally published in <a href="https://medium.com/data-science">TDS Archive</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Training ML models directly from GitHub]]></title>
            <link>https://medium.com/data-science/training-ml-models-directly-from-github-ebf1c1120af5?source=rss-e9df0cb1631c------2</link>
            <guid isPermaLink="false">https://medium.com/p/ebf1c1120af5</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[mlops]]></category>
            <category><![CDATA[tensorflow]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[github]]></category>
            <dc:creator><![CDATA[yochze]]></dc:creator>
            <pubDate>Mon, 11 May 2020 18:15:15 GMT</pubDate>
            <atom:updated>2020-05-11T18:15:15.827Z</atom:updated>
            <content:encoded><![CDATA[<h4>In this post, I’ll show you how you can train machine learning models directly from GitHub. I originally presented this workshop at GitHub Satelite 2020 which you can now view the recording.</h4><p>We all know software CI/CD. You code, you build, you test, you release. With machine learning, it’s similar, but also quite different. You start with data, where you will do some sort of data validation, data processing and data analysis. You then train the model on a remote GPU or a specific cluster that you have. You run model validation, you deploy the model, and you make predictions. Once your model is deployed to production you monitor the predictions. If the model shows signs of performance drift, you might even retrain the model based on that. What we’re suggesting in this post is a simple way to train models directly from GitHub. In other words, it’s a GitHub plus MLOps solution.</p><p><strong>What is MLOps?</strong></p><p>MLOps (a compound of “machine learning” and “operations”) is a practice for collaboration and communication between data scientists and operations professionals to help manage the production machine learning lifecycle. Similar to the DevOps term in the software development world, MLOps looks to increase automation and improve the quality of production ML while also focusing on business and regulatory requirements. MLOps applies to the entire ML lifecycle — from integrating with model generation (software development lifecycle, continuous integration/continuous delivery), orchestration, and deployment, to health, diagnostics, governance, and business metrics.</p><p><strong>How to train your ML model from GitHub</strong><br>To build this capability of training models directly from GitHub, we used GitHub Actions — a way to automate development workflows, and here’s how it works: Once you’ve written your code, you push it to GitHub to a specific branch. You create a pull request and once commenting “<em>/train</em>” in your PR it will trigger model training with <a href="https://cnvrg.io/platform/core/">cnvrg.io CORE </a>— a community ML platform you can deploy for free on your own Kubernetes. Just like that, the command will automatically provision resources and start the training pipeline.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*eqK75si4TYCTWgss" /></figure><p>This model training pipeline is training a TensorFlow model on a remote GPU. It’s doing model deployment on Kubernetes and eventually publishes its metrics back to GitHub.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/642/0*uEOi7a6Et7T4kRq2" /></figure><p>Above is a real example of how this GitHub action that we built works. So, as you can see, I pushed new code into GitHub. Then leah4kosh, my colleague did the<em> /train</em> comment on my pull request, which triggered model training and pushed back the results to this pull request.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/885/0*tNODjZKjSUWlHwEC" /></figure><p>This is what the training pipeline looks like in cnvrg.io. As you can see, at the end of the pipeline it’s pushing the results back to GitHub — during execution, cnvrg.io tracks all the different models, parameters and metrics and post it back on the same PR the model training was triggered.</p><p>To build this GitHub Action we used <a href="https://github.com/machine-learning-apps/actions-chatops">ChatOps</a> to track and listen to the different comments on the pull request. We use Ruby to install the <a href="https://cnvrg.io/platform/core/">cnvrg CLI</a> and then we use the cnvrg CLI to train the machine learning pipeline.</p><p>And there you have it! This is how you train an ML model directly from GitHub.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ebf1c1120af5" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science/training-ml-models-directly-from-github-ebf1c1120af5">Training ML models directly from GitHub</a> was originally published in <a href="https://medium.com/data-science">TDS Archive</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Machine Learning Pipelines with Human Validations]]></title>
            <link>https://medium.com/@yochze/machine-learning-pipelines-with-human-validations-4816878052bc?source=rss-e9df0cb1631c------2</link>
            <guid isPermaLink="false">https://medium.com/p/4816878052bc</guid>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[responsible-ai]]></category>
            <category><![CDATA[mlops]]></category>
            <category><![CDATA[cicd]]></category>
            <dc:creator><![CDATA[yochze]]></dc:creator>
            <pubDate>Mon, 11 May 2020 07:18:43 GMT</pubDate>
            <atom:updated>2020-05-11T07:18:43.453Z</atom:updated>
            <content:encoded><![CDATA[<p>End-to-end machine learning and pipeline automation is a popular topic these days in the data science and engineering community. Companies are deploying more models to production, and they are re-fitting, re-training and re-calibrating their models continuously to keep their models running at peak performance.</p><p>It is remarkable to see a fully automated end-to-end pipeline in action. Watching it fetch the latest data, run through preprocessing and feature engineering, select the best model and finally update a production endpoint — all also can be triggered automatically due to model decay while in production. Advanced ML automation at scale is a major evolutionary step that will radically change the AI industry.</p><p>One of the problems with automating models deployment and retraining is that we think of models as software, which is not. Machine learning adds uncertainty to your software stack. It doesn’t matter how accurate your model is, or how confident you are in it — a slight change in data can introduce bias or impact model decisions, ultimately affecting your users, their experience and business outcome. It’s important for corporations to maintain the highest level of governance for their AI applications and perform responsible AI and ML automation to keep the models in check. That is why <a href="https://cnvrg.io/platform/core/">cnvrg.io</a> is releasing new features to ensure end-to-end governance throughout the ML lifecycle.</p><p><strong>Responsible AI and ML automation with Human Validations</strong></p><p>We have developed a new framework for building, deploying and automating machine learning pipelines: human validation. A framework that enables high level automation (or complete automation) with the option to involve a human to approve production deployment — maintaining a fast and responsible ML deployment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*hYun19X-bAvbneMk" /></figure><p>Just like merging a PR in git might trigger a CD pipeline, the above framework will allow you to view a model and its report (data, algorithms, hyperparameter and metrics) before deploying it to the production environment. <a href="https://cnvrg.io/platform/core/">cnvrg.io</a> comes packaged with 100% reproducible data science, ML pipeline automation and model deployment enabling a complete CICD ML pipeline with human validation.</p><p><strong>How does it work?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*5JgQbbwOFfuBregg" /></figure><p>Here’s a real-life example of how this feature can be used with <a href="https://cnvrg.io/platform/core/">cnvrg.io</a>. Assume we have the following pipeline set: A recommendation engine built by ingesting data from S3 and BigQuery, running preprocessing using Spark on Kubernetes, followed by model training using TensorFlow and XGBoost over GPU and CPU clusters. Finally, <a href="https://cnvrg.io/platform/core/">cnvrg.io</a> will pick the top-performing model and a Kubernetes endpoint is rolled over to the champion model. This pipeline runs on a programmable recurring basis — in this case once a week. It is 100% automated wherein each week it fetches the latest data, re-trains and re-deploys the model.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*xoFqOSWu4ssEMMhl" /></figure><p>We will add a mechanism ensuring that every time a new model is ready for deployment, it needs to be explicitly approved by the relevant data scientist or product manager. In this example, we are deploying a recommendation engine. Our recommendation engine is used by millions of users, and we want to be confident that any production update is being carefully critiqued before release.</p><p>With <a href="https://cnvrg.io/platform/core/">cnvrg.io</a>’s human validation — we can update the “deployment” task and add a condition that it will initiate deployment, only after a human reviews it and grants approval:</p><p>This flow can also be modified using a YAML config file by adding the following condition to a task:</p><pre>objective: human_validation<br>target: username,username2</pre><p>Then, each time the pipeline runs and reaches the deployment component, it will email the designated decision makers “username, username2” alerting them that the task is waiting for their approval. They can then inspect the model and either approve the deployment or prohibit the flow from advancing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*SW-ZWWK1Q9N2EaBK" /></figure><p>Looking to build your own ML pipelines? Start for free with <a href="https://cnvrg.io/platform/core/">cnvrg.io CORE</a> — a community ML and MLOps platform running on Kubernetes: <a href="https://cnvrg.io/platform/core/">https://cnvrg.io/platform/core/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4816878052bc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why we decided to release a free ML platform to the data science community]]></title>
            <link>https://medium.com/@yochze/why-we-decided-to-release-a-free-ml-platform-to-the-data-science-community-5480c7d4fc2c?source=rss-e9df0cb1631c------2</link>
            <guid isPermaLink="false">https://medium.com/p/5480c7d4fc2c</guid>
            <category><![CDATA[machine-learning-tools]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[free]]></category>
            <category><![CDATA[algorithms]]></category>
            <category><![CDATA[community]]></category>
            <dc:creator><![CDATA[yochze]]></dc:creator>
            <pubDate>Wed, 01 Apr 2020 07:24:15 GMT</pubDate>
            <atom:updated>2020-04-11T15:01:24.359Z</atom:updated>
            <content:encoded><![CDATA[<p><em>The making of cnvrg CORE, a platform helping data scientists get back to the core of data science — algorithms</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*baI5FIRfamr7uFUA" /></figure><p>When we started building <a href="https://cnvrg.io/platform/core/">cnvrg.io</a> a little over 3 years ago, Leah, my co-founder and I, have always dreamt of releasing a version of cnvrg.io to the public, for free. As developers and data scientists ourselves, our mission with cnvrg.io has always been to help data scientists and data engineers apply their research and innovation to real-world applications. Today, we’re extremely excited to announce the release of <a href="https://cnvrg.io/platform/core/">cnvrg.io core </a>— a free community ML platform.</p><p>We started to build cnvrg.io as an internal solution to help manage our own models, research, and machine learning in production. We saw how beneficial it was to our data science workflow, and believed in its potential to transform data science development as we know it. And so began our journey, working with early customers to provide everything a data scientist needs to accelerate ML development from research to production.</p><figure><img alt="Building an ML pipeline with reusable ML components in cnvrg.io CORE" src="https://cdn-images-1.medium.com/max/1024/1*g-UFBfw9-NVrod2EKoB_cw.png" /><figcaption>Building an ML pipeline with reusable ML components in cnvrg.io CORE</figcaption></figure><p>Over the past several years, we’ve been doing just that. Working on building, productionizing and improving cnvrg.io based on customers&#39; demand and market needs. cnvrg.io today is different from the cnvrg.io we had 3 years ago, 1 year ago, and even 3 months ago. We’re constantly working to improve our services to meet the needs of data scientists.</p><p>This crazy, fast-paced journey we’re leading as a product and as a company is correlated strongly with how AI is evolving in the enterprise, and how data scientists and engineers build and deploy models.</p><h3>Our CORE Mission</h3><p>Our dream is to help any data science team build, deploy and manage machine learning — from research to production. With the growing technical complexity of the AI field, the data science community has strayed from the core of what makes data science such a captivating profession — solving complex problems with ML.</p><p>From our experience working with DS teams across industries, today’s reality is that data scientists are spending 80% of their time on non-data science tasks, and 65% of models don’t make it to production. We want to make data science workflows extremely simple and intuitive so teams are able to focus on innovation. We want to create an infrastructure with best-practices in mind of how models and Software 2.0 should be built, so teams can release high impact models to production.</p><p>We’re ecstatic to share the release of cnvrg.io CORE — a free, community version of cnvrg.io that can be used for any use case. Whether you’re a team of data scientists building autonomous driving applications, churn-prediction models, forecasting or natural-language, image processing or any other <a href="https://cnvrg.io/examples">ML use-case</a> your team can utilize all the features of cnvrg.io CORE.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z8Fh1ZYhTWOTfwyKUKs-Ug.png" /><figcaption>Tracking and visualizing models</figcaption></figure><h3>Why Now?</h3><p>Now more than ever, we’re in a time that requires innovation from our data science leaders. The world is seeking solutions as we reach more and more global crises. Our vision is to give data scientists all the tools they need to collaborate and do what data scientists do best — solve complex problems with machine learning.</p><figure><img alt="Source: https://bluedot.global/ health monitoring app bluedot A.I." src="https://cdn-images-1.medium.com/max/512/1*LzOyMBzFQ-wbJpwW3GgtfA.png" /><figcaption>Health monitoring apps with AI Source: <a href="https://bluedot.global/">https://bluedot.global/</a></figcaption></figure><p>While the rest of the world has slowed down, we hope innovation can accelerate. We welcome any data scientist to install cnvrg.io CORE in any environment, whether working remotely or not. The platform is created with flexibility in mind and can be easily installed on any Kubernetes cluster — cloud or on-premise. This version of cnvrg.io includes everything a data science / data engineering team needs to build and manage machine learning pipelines and models. With cnvrg.io, a container-based ML platform with end-to-end monitoring, model management and advanced resource management, data science teams can focus on what is truly important — innovation.</p><p>While cnvrg.io has everything a data scientist needs to build high impact models, with cnvrg you can integrate to AWS Sagemaker, MLFlow or any other ML stack to enhance your existing ML workflow. Any team can adopt our unified, collaborative platform to accelerate time from research to production — no matter where you’re working from.</p><h3>What is in cnvrg.io CORE?</h3><ul><li><strong>ML Workflow Management</strong> — end-to-end tracking and monitoring capabilities</li><li><strong>Interactive Workspaces</strong> — use any development environment like VSCode, JupyterLab, RStudio, and more with pre-installed dependencies and version control</li><li><strong>Dataset Management — </strong>integrate and version any kind of data to reuse in any project, experiment, and/or notebook</li><li><strong>ML Flows</strong> — build production-ready machine learning pipelines with drag and drop</li><li><strong>AI Frameworks in One-Click</strong> — native integration with NGC GPU-optimized containers</li><li><strong>Reusable ML Components </strong>— Build and customize a library of reusable ML components</li><li><strong>Cluster Orchestration</strong> — Hybrid cloud / Multi Cloud capabilities with native Kubernetes and meta-scheduler</li><li><strong>One click Deployment</strong> — deploy models as scalable REST APIs based on kubernetes</li><li><strong>Production Model</strong> <strong>Monitoring</strong> — monitor and manage production models with Kibana, Grafana and update with continual learning</li><li><strong>Launch 100s of experiments</strong> — track and compare hundreds of experiments with hyperparameter optimization</li></ul><figure><img alt="Visual Studio Code running on remote compute in cnvrg.io CORE" src="https://cdn-images-1.medium.com/max/1024/1*RGeLOhK_oZuvMZ3j7pCPDQ.png" /><figcaption>Visual Studio Code running on remote compute in <a href="https://www.google.com/url?q=http://cnvrg.io&amp;sa=D&amp;ust=1585646810021000&amp;usg=AFQjCNHl-Oaqv6-XAoQSZ6eGsI4nk8DgmA">cnvrg.io</a> CORE</figcaption></figure><p>After years of building and growing cnvrg.io, we’re proud to unleash its value to the strong data science community that’s been driving AI innovation and solving complex problems. Our hope is that the field of AI continues to grow. cnvrg.io will do everything possible to support its growth, by supporting the data scientists and engineers behind its success.</p><p>Visit our website: <a href="https://cnvrg.io/platform/core/">https://cnvrg.io/platform/core/</a> to set up your free ML platform.</p><p>Leah and Yochay</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5480c7d4fc2c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[5 Considerations Before Building an In-House Data Science Platform]]></title>
            <link>https://medium.com/data-science/5-considerations-before-building-an-in-house-data-science-platform-e4173ee89ad6?source=rss-e9df0cb1631c------2</link>
            <guid isPermaLink="false">https://medium.com/p/e4173ee89ad6</guid>
            <category><![CDATA[mlops]]></category>
            <category><![CDATA[advice]]></category>
            <category><![CDATA[workflow-management]]></category>
            <category><![CDATA[data-science-platform]]></category>
            <category><![CDATA[machine-learning-workflow]]></category>
            <dc:creator><![CDATA[yochze]]></dc:creator>
            <pubDate>Mon, 20 Jan 2020 15:02:49 GMT</pubDate>
            <atom:updated>2020-01-21T20:50:48.853Z</atom:updated>
            <content:encoded><![CDATA[<p>Build or buy: Insights from years building machine learning platforms</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/770/1*2ncp2t-bax0tdh66-MytqA.png" /></figure><p>My business partner and I have worked for years as data science consultants helping enterprises incorporate AI into their business model. Every data scientist we worked with had their own tool preferences, used their own language and leveraged their own open-source tools. We were also quite attached to our process for certain projects. While I used Python for all of my work, my colleague used R. While I swore by TensorFlow for my deep learning framework, my colleague preferred the ease of Keras. The thing is, we understand the need for tool agility and customization. When an organization builds its own in-house platform, they get to build it based on their team&#39;s needs. And, it’s fun! You get to find creative ways to solve problems which is what data scientists like best. The only dilemma is, most of the time you were not hired to build and manage a data science platform. You were probably hired to build and deploy high impact machine learning models.</p><p>Be that as it may, you might still prefer to build your own data science platform from scratch. After years developing, iterating and testing data science platforms, I’d like to share a few insights to consider before embarking on this journey.</p><h3><strong>Building is in our blood</strong></h3><p>As data scientists, we are naturally builders and problem solvers. If we want to solve a problem, we simply build our own solution. In most cases, we have the skills, tools, and knowledge to do so. Many of the clients we worked with had internal data science systems or were in the process of creating one. As their needs for the platform became more complex, they decided to seek alternative solutions. Instead of building a full-stack data science platform, they decided to invest more time building models and solving complex problems.</p><p>So, when you consider building your own in-house data science solution, there are a few things to consider:</p><h3>1. Unlimited tool flexibility</h3><p>No doubt that there are a plethora of open source tools out there at our disposal. But managing all the different tools so you can leverage them is a challenge.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*-TxtSRee5yoHGEMB" /></figure><p>Whether it’s R, Python, SQL, Scikit-learn, Hadoop, spark, Tensorflow, Keras, Jupyter — the list continues — you need a central place to bring all the pieces of the data science puzzle together.</p><p>Just the thought of downloading Tensorflow brings great pain. Perhaps this might look familiar:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/828/0*UyFtaZFCxZV8Hlel" /><figcaption>Error installing Tensorflow</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Dz-JOi9TifJwq0hk" /><figcaption>Stack Overflow common questions</figcaption></figure><p>Create a system that easily integrates with all the tools necessary for your team. Additionally, tools are constantly adapting and developing. Be sure to plan for the future by building an open infrastructure that can integrate new tools.</p><h3>2. Reproducibility</h3><p>There are many manual systems in which companies can support reproducible data science. Companies have used Excel files, Notebooks, Docker, Git etc. Unfortunately, humans are imperfect and will sometimes miss a few key elements when documenting work. Having one central location for all your data science activities can help solve the issue of tracking. By automatically documenting and storing each process, data scientists are able to backtrack and reproduce projects and review research validity.</p><h3>3. Team management</h3><p>It’s often said that data scientists work in silos. One challenge that teams have is unifying and syncing their work. Simple team organization such as task management, transitioning between responsibilities, reporting, and progress tracking can all accelerate the data science process if centralized. Considering methods of communication, and creating easy UI to make transitions seamless will save time. Not only that, but it will avoid frustration from team members. Depending on your team, projects might involve researchers, data engineers or machine learning engineers, and even DevOps or IT. Smoothly transitioning between tasks can carry communication barriers as well as technical inefficiency. That means building components that can be shared with the team to save time coding and supporting reusable machine learning. That way team members, whether they are data scientists or not, can rapidly build new models. It’s important to consider platform elements that carry out the entire workflow without blockages. And, it’s recommended to use product managers to consult in this task, in order to do it right. <a href="https://info.cnvrg.io/mlopsformachinelearning">Integrate MLOps</a> wherever possible, to reduce friction in your machine learning pipeline.</p><h3>4. Resource management and scalability</h3><p>Whether you’re building machine learning models or running models in production — compute power is inevitable. An organized system for managing compute resources is going to be a game-changer. One important component to add to an in-house platform is methods to share compute resources between team members. Not only that, but managing compute budgets and having a way to supervise compute use could save a lot of money.</p><p>Secondly, be prepared for the best (or worst). It’s crucial for your platform to have the ability to connect to existing compute and auto-scale to the cloud instantly without the need for configuration. Prepare resources that allow your data scientists the ability to run hundreds of experiments at a time. More importantly, be prepared for an unexpected spike in model traffic for any successful model in production. It could save your in-production model from a complete crash. An inability to scale compute would kill the momentum of the promotion and the success of the business.</p><h3>5. Usability and design</h3><p>When it comes to a data science platforms, functionality is first. But, user experience must be taken into consideration. Whether it’s simple capabilities like searching and tagging of experiments, or the intricacies of intuitive UI. An in-house platform can build slowly as needed by the team. The only issue with that is it will almost never be intentional. Designing your workflow beyond functionality and actually maximizing efficiency requires planning, time and effort. Sometimes you’ll find that commercial products know what you might need before you do. Take for instance, Apple. Before Apple, most phones only needed the functionality to make calls, send SMS and occasionally take pixelated photos. Today, can you imagine your phone not having GPS, internet search, Siri or your favorite podcast accessible at all times? Be ahead of the curb and anticipate the machine learning workflow.</p><h3><strong>Building intelligent machines</strong></h3><p>Building intelligent machines is something we — data scientists — do best. When deciding whether or not to build an internal data science platform, consider what you were hired to do. In order to bring value to your company as a data scientist, you need to produce results. The goal of data science platforms is to help data scientists focus on the magic — the algorithms. The next step is considering you’re alternative options. Data science platforms have evolved enormously since my business partner and I began, and have a wide range of capabilities. You can also use these 5 considerations when analyzing commercial machine learning platforms or open source tools. Ensure you consider all the aspects, and you’ll be on your way to machine learning breakthroughs.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e4173ee89ad6" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science/5-considerations-before-building-an-in-house-data-science-platform-e4173ee89ad6">5 Considerations Before Building an In-House Data Science Platform</a> was originally published in <a href="https://medium.com/data-science">TDS Archive</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to compile TensorFlow 1.12 on Ubuntu 16.04 using Docker]]></title>
            <link>https://medium.com/data-science/how-to-compile-tensorflow-1-12-on-ubuntu-16-04-using-docker-6ca2d60d7567?source=rss-e9df0cb1631c------2</link>
            <guid isPermaLink="false">https://medium.com/p/6ca2d60d7567</guid>
            <category><![CDATA[tensorflow]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[ubuntu]]></category>
            <dc:creator><![CDATA[yochze]]></dc:creator>
            <pubDate>Sun, 15 Sep 2019 12:22:11 GMT</pubDate>
            <atom:updated>2019-09-18T07:17:29.535Z</atom:updated>
            <content:encoded><![CDATA[<h4>This tutorial will help you set up TensorFlow 1.12 on Ubuntu 16.04 with a GPU using Docker and nvidia-docker.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/770/1*z1CK6ku3sbNIMQ9MGs95qw.png" /></figure><p>TensorFlow is one of the most popular deep-learning libraries. It was created by Google and was released as an <a href="https://github.com/tensorflow/tensorflow/">open-source</a> project in 2015. TensorFlow is used for both research and production environments. Installing TensorFlow can be cumbersome. The difficulty varies based on your environment constraints, and more when you’re a data scientist that just wants to build your neural networks.</p><p>When using TensorFlow on GPU — setting up requires a few steps. In the following tutorial, we will go over the process required to set up TensorFlow.</p><h3>Requirements:</h3><ul><li>NVIDIA GPU Machine</li><li>Docker and Nvidia-Docker installed. (Read “<a href="https://cnvrg.io/how-to-setup-docker-and-nvidia-docker-2-0-on-ubuntu-18-04/">How to install docker and nvidia-docker in our blog</a>)</li><li>Ubuntu 16.04</li></ul><h4>Step 1 — Prepare your environment with Docker and Nvidia-Docker</h4><p><a href="https://github.com/docker/docker">Docker</a> is a tool designed to make it easier to create, deploy, and run applications by using containers. What exactly is a container? Containers allow data scientists and developers to wrap up an environment with all of the parts it needs — such as libraries and other dependencies — and ship it all out in one package.</p><p>To use docker with GPUs and to be able to use TensorFlow in your application, you’ll need to install Docker with Nvidia-Docker. If you already have those installed, move to the next step. Otherwise, you can follow our previous guide to <a href="https://cnvrg.io/how-to-setup-docker-and-nvidia-docker-2-0-on-ubuntu-18-04/">installing nvidia docker</a>.</p><h3><strong>Prerequisites:</strong></h3><h4>Step 2 — Dockerfile</h4><p>Docker can build images (environments) automatically by reading the instructions from a Dockerfile. A Dockerfile is a text document that contains all the commands a user could call on the command line to assemble an image.</p><p>In our case, those commands will describe the installation of Python 3.6, CUDA 9 and CUDNN 7.2.1 — and of course the installation of TensorFlow 1.12 from source.</p><p>For this environment, we will use the following Dockerfile -</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a2378647d067d1bd6cb9de33257891de/href">https://medium.com/media/a2378647d067d1bd6cb9de33257891de/href</a></iframe><h4>Step 3 — Running Dockerfile</h4><p>To build the image from the Dockerfile, simply run the docker build command. Keep in mind that this build process might take a few hours to complete. We recommend using <a href="https://www.maketecheasier.com/nohup-and-uses/">nohup utility</a> so that if your terminal hangs — it will still run.</p><pre>$ docker build -t deeplearning -f Dockerfile</pre><p>This should output the setup process and should end with something similar to:</p><pre>&gt;&gt; Successfully built deeplearning (= the image ID)</pre><p>Your image is ready to use. To start the environment, simply type in the below command. But, don’t forget to replace your image id:</p><pre>$ docker run --runtime=nvidia -it deeplearning /bin/bashStep 4 — Validating TensorFlow &amp; start building!</pre><p><strong>Validate that TensorFlow is indeed running in your Dockerfile</strong></p><pre>$ python<br>import tensorflow as tf<br>sess = tf.Session(config=tf.ConfigProto(log_device_placement=True))<br>2019-02-23 07:34:14.592926: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports <br>instructions that this TensorFlow binary was not compiled to use: AVX2 FMA2019-02-23 07:34:17.452780: I <br>tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:964] successful NUMA<br>node read from SysFS had negative value (-1), but there must be at leastone NUMA node, so returning NUMA node zero<br>2019-02-23 07:34:17.453267: I<br>tensorflow/core/common_runtime/gpu/gpu_device.cc:1432] Found device 0 with <br>properties: <br>name: Tesla K80 major: 3 minor: 7 memoryClockRate(GHz): 0.8235pciBusID: 0000:00:1e.0<br>totalMemory: 11.17GiB freeMemory: 11.10GiB<br>2019-02-23 07:34:17.453306: I<br>tensorflow/core/common_runtime/gpu/gpu_device.cc:1511] Adding visible gpu<br>devices: 0<br>2019-02-23 07:34:17.772969: I<br>tensorflow/core/common_runtime/gpu/gpu_device.cc:982] Device interconnect<br>StreamExecutor with strength 1 edge matrix:<br>2019-02-23 07:34:17.773032: I<br>tensorflow/core/common_runtime/gpu/gpu_device.cc:988]      0<br>2019-02-23 07:34:17.773054: I<br>tensorflow/core/common_runtime/gpu/gpu_device.cc:1001] 0:   N<br>2019-02-23 07:34:17.773403: I<br>tensorflow/core/common_runtime/gpu/gpu_device.cc:1115] Created TensorFlow<br>device (/job:localhost/replica:0/task:0/device:GPU:0 with 10757 MB memory)<br>-&gt; physical GPU (device: 0, name: Tesla K80, pci bus id: 0000:00:1e.0,<br>compute capability: 3.7)<br>Device mapping:<br>/job:localhost/replica:0/task:0/device:XLA_CPU:0 -&gt; device: XLA_CPU device<br>/job:localhost/replica:0/task:0/device:XLA_GPU:0 -&gt; device: XLA_GPU device<br>/job:localhost/replica:0/task:0/device:GPU:0 -&gt; device: 0, name: Tesla K80,<br>pci bus id: 0000:00:1e.0, compute capability: 3.7<br>2019-02-23 07:34:17.774289: I<br>tensorflow/core/common_runtime/direct_session.cc:307] Device mapping:<br>/job:localhost/replica:0/task:0/device:XLA_CPU:0 -&gt; device: XLA_CPU device<br>/job:localhost/replica:0/task:0/device:XLA_GPU:0 -&gt; device: XLA_GPU device<br>/job:localhost/replica:0/task:0/device:GPU:0 -&gt; device: 0, name: Tesla K80, pci bus id: 0000:0</pre><p>Congrats! Your new TensorFlow environment is set up and ready to start training, testing and deploying your deep learning models!</p><h4>Conclusion</h4><p>Tensorflow has truly disrupted the machine learning world by offering a solution to build production-ready models at scale. But Tensorflow is not always the most user-friendly. It can be difficult to smoothly incorporate into your machine learning pipeline. <a href="https://cnvrg.io/">cnvrg.io</a> data science platform leverages Tensorflow and other open-source tools so that data scientists can focus on the magic — the algorithms. You can find more tutorials on how to easily leverage open-source tools like <a href="https://blog.cnvrg.io/how-to-compile-tensorflow-1-12-on-ubuntu-16-04-using-docker">Tensorflow</a>, <a href="https://info.cnvrg.io/kubernetes-for-machinelearning">How to set up Kubernetes for your machine learning workflows</a>, and <a href="https://info.cnvrg.io/spark-on-kubernetes">How to run Spark on Kubernetes</a>. Finding simple ways to integrate these useful tools will get your models closer to production.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6ca2d60d7567" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science/how-to-compile-tensorflow-1-12-on-ubuntu-16-04-using-docker-6ca2d60d7567">How to compile TensorFlow 1.12 on Ubuntu 16.04 using Docker</a> was originally published in <a href="https://medium.com/data-science">TDS Archive</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to apply continual learning to your machine learning models]]></title>
            <link>https://medium.com/data-science/how-to-apply-continual-learning-to-your-machine-learning-models-4754adcd7f7f?source=rss-e9df0cb1631c------2</link>
            <guid isPermaLink="false">https://medium.com/p/4754adcd7f7f</guid>
            <category><![CDATA[active-learning]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[yochze]]></dc:creator>
            <pubDate>Thu, 11 Jul 2019 14:19:19 GMT</pubDate>
            <atom:updated>2019-07-11T14:19:19.292Z</atom:updated>
            <content:encoded><![CDATA[<h4>Improve model accuracy and strengthen performance with continual learning</h4><p><strong>What is continual learning?</strong></p><p>Academics and practitioners alike believe that continual learning (CL) is a fundamental step towards artificial intelligence. Continual learning is the ability of a model to learn continually from a stream of data. In practice, this means supporting the ability of a model to autonomously learn and adapt in production as new data comes in. Some may know it as auto-adaptive learning, or continual AutoML. The idea of CL is to mimic humans ability to continually acquire, fine-tune, and transfer knowledge and skills throughout their lifespan. As you know, in <a href="https://blog.cnvrg.io/5-steps-to-maximize-business-impact-with-machine-learning">machine learning</a>, the goal is to deploy models through a production environment. With<em> continual learning</em>, we want to use the data that is coming into the production environment and retrain the model based on the new activity. For example, we’ve all experienced Netflix’s highly successful recommender system for “Up Next”. Netflix recommender system suggests a show directly after your last episode has ended, and is normally hard to resist as the seconds drop. That kind of model in production is something that needs to be retrained periodically because there are new movies, new tastes, and new trends in the market. With continual learning, the goal is to use data that is coming in, and use it to automatically retrain the model, so you can really gain high accuracy and retain high performing models.</p><p><strong>Why do we need continual learning?</strong></p><p>The answer is pretty simple — data is changing. Data could be changing because of trends, or because of different actions made by the users. For example, Amazon best sellers from the year 2000, was the Harry Potter book. Today, you might be surprised to find out the best seller is a completely different genre: <em>Fire and Fury: Inside the Trump White House</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/865/1*JU2DXF1J_UTneOemQqV3kg.png" /><figcaption>Why continual learning? Data is changing.</figcaption></figure><p>So, Amazon would have to retrain the model and recommend new books to their customers based on new data and trends. A bit more updated example is the bitcoin price before the huge drop. In 2017, the bitcoin was worth $19K. About a month and a half later, it dropped to $6K.</p><p>Not only is data changing but, <a href="https://arxiv.org/abs/1802.07569">researchers</a> have expressed that “lifelong learning remains a long-standing challenge for machine learning and neural network models since the continual acquisition of incrementally available information from non-stationary data distributions generally leads to catastrophic forgetting or interference.” The case for continual learning remains strong. For data scientists, continual learning will ultimately optimize models for accuracy, improve model performance, and save retraining time by making models auto-adaptive.</p><p><strong>Machine learning pipeline with continual learning</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/944/1*-SkLbIRA-bsFdOiXTXm7XA.png" /><figcaption>Machine learning pipeline</figcaption></figure><p>The diagram above illustrates what a machine learning pipeline looks like in the production environment with continual learning applied. You’ll notice that the pipeline looks much like any other machine learning pipeline. We must have the data, some sort of validation. This could include tests, or internal benchmarks such as determining the quality of data. It could also be pre-processing that you operate.</p><p>Next, in the pipeline is <a href="http://help.cnvrg.io/en/articles/2971371-build-your-own-computer-vision-automl-pipeline-using-flows">AutoML</a>. AutoML in continual learning is a very important part of the pipeline and is similar to the training step in a typical machine learning pipeline. But, we will touch more on that later.</p><p>After training, you’ll do some model validations to test the models, and make sure all of them are working well. Here you can also pick the best one, and deploy it to the production environment. Thus far, the pipeline looks like a classic machine learning pipeline. In order to apply continual learning we add monitoring and connect the loop back to the data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/968/1*bsWZXqqB_wG6vtTPm4zp3g.png" /><figcaption>Machine learning with closed loop continual learning</figcaption></figure><p>Predictions that are being collected in the model deployment area will be monitored. Once monitored you will clean the data and label it if required. But, for something like a recommender system or forecasting, you’ll just be able to close the loop without the human labeling. After labeling and cleaning the data, we’ll move it back to the data to repeat the training and validation process again. Now we have closed the loop like a flywheel.</p><p><strong>AutoML in the continual learning pipeline</strong></p><p>AutoML is an important component for applying continual learning because we are working with a constant stream of data. You could keep it simple and just retrain the same algorithm with the same parameters, but because we still want to gain really high accuracy we’re going to use AutoML.</p><p>AutoML doesn’t have to be really complicated meta learning. You can just use hyperparameter optimization, open-source algorithms and frameworks — and you’ll be surprised how simple it is. As part of your research, when you start working on your machine learning pipeline, you’ll have to select your algorithm space. For example, if you’re doing a computer vision problem, might want to use transfer-learning as the training algorithms. With transfer-learning, you have a lot of pre-trained models that you can use to retrain only the last layer of the network, and then have your model deployed.</p><p>In this case, you’d select one of the popular pre-built models like VGG, Inception, ResNet and a few others. For each model, we also have to specify its range of parameters.</p><p>This could turn into a really big computational problem. It is up to you as a data scientist to really research what kind of algorithm and parameters are going to be useful for your machine learning problem.</p><p>AutoML links: <a href="https://autokeras.com/">AutoKeras</a>, <a href="https://github.com/automl/auto-sklearn">Auto SciKitLearn</a>, <a href="https://www.featuretools.com/">FeatureTools</a> for feature engineering</p><p><strong>Track your AutoML</strong></p><p>With AutoML, it is especially crucial to track not only the models in production, but the entire process. If you put your machine learning on autopilot, you have to make sure that everything is tracked and managed. You need to track everything from: the kind of algorithm you are using, what the hyperparameters are, the kind of compute being used, the memory consumption, metrics, accuracy, and so on. Let’s say you are training 60 different experiments today. The data being tracked might be used for next week when trying to re-deploy and retrain the model.</p><p>You can also use the information for meta learning, to try to understand what kind of algorithms are working well for the problem, which will minimize the number of experiments each time.</p><p><strong>Automate your infrastructure</strong></p><p>Another critical thing about AutoML — especially with deep learning — is automating your machine learning infrastructure. It can take a lot of time to spin up a deep-learning ready instance (think CUDA, dependencies, data, code, and more). We recommend using Kubernetes on top of all your preferred cloud providers. The fact that you’ll have a Kubernetes cluster up and running makes it really easy to deploy new experiments. Using Kubernetes, you can launch many experiments very quickly and track them to make sure all experiments are running well.</p><p>Keep in mind though, that maintaining a Kubernetes cluster is not that simple and might require extra help from your IT/Data engineering team.</p><p><strong>Deploying models in a continual learning pipeline</strong></p><p>Once you’ve trained and chosen the model with the best performance, your model will be ready for deployment. One major challenge with continual learning is how to deploy new models to the same environment without negatively affecting users experience and maintaining high accuracy.</p><p>Deploying models for continual learning is a bit different from classic model deployment. Usually, even a<a href="https://cnvrg.io/data-scientists/"> data scientist </a>will be able to deploy a model, but since this is going to be automated, we have to do it very carefully. Just as you won’t deploy a software that has a bug to a production environment, you wouldn’t deploy a model that was not trained and validated successfully. To be sure that your new model is working well, you’ll test it on old data before and during deployment. Additionally, you’ll want to monitor the performance and health of your system.</p><p>Now, in software development, there’re a lot of different ways to deploy new software. For machine learning, this field is still pretty new, but we recommend using the <a href="https://martinfowler.com/bliki/CanaryRelease.html">Canary deployment technique</a>. Canary is a technique to introduce a new software version in a way that effect’s users in parts, gradually increasing the number of users based on the tests. Using this technique is going to gradually deploy the model to larger subsets of users.</p><p>On the implementation level — we recommend using Kubernetes alongside Istio for model deployment, so you can do A/B testing, and make sure that your model is deployed well. We also have a guide on our blog on <a href="https://blog.cnvrg.io/deploy-models-with-kubernetes">how to deploy machine learning models using Kubernetes</a>.</p><p><strong>Monitoring of continual learning pipelines</strong></p><p>Monitoring is an especially important part of machine learning with continual learning. You need to make sure that if something bad is happening to your model, or if the data that is being sent to your model is corrupted, that you have a mechanism to be alerted.</p><p>Most often, a single data scientist will manage several machine learning pipelines at a time. So the alert setup is crucial. Once you deploy the new model to the production environment, the goal is to provide the data scientist or data engineer with the control and transparency they need to monitor the machine learning model. For the ability to automatically deploy new versions of the model, you have to monitor the input data to detect data drifts and anomalies. Monitoring is also important for prediction data to ensure high performance and accuracy.</p><p>There are great tools in Kubernetes, or Prometheus alongside AlertManager that you can use to monitor all the input data. And you should utilize cloud services and Kubernetes to automate your machine learning infrastructure and experimentation.</p><p><strong>Triggering and retraining your model for continual learning</strong></p><p>The last step in a continual learning ML pipeline is to trigger the retraining and closing the loop. Your ML pipeline is prepared for continual learning:</p><ul><li>You have the data</li><li>Experiments are running the training</li><li>Predictions are being collected and monitored</li><li>The new data is being cleaned</li></ul><p>Next, you must decide the triggers for retraining your model. There are several ways to do that. We have customers that retrain their model periodically. For example, for recommender systems or ads, we saw teams that retrain every 30 minutes. You might also consider retraining the model only on new data that is coming in.</p><p>Other ways are to track and monitor model decay and model bias, low confidence and any kind of other alert in the production environment that triggers retraining. The most important thing is that if you trigger the machine learning pipeline automatically, you should track and validate the trigger. Not knowing when your model has been re-trained can cause major issues. You should always have control of the retraining of your model, even if the process is being automated. That way you can understand and debug the model in the production environment.</p><p><strong>Closing the ML loop</strong></p><p>Once your AutoML, deployment and monitoring systems are in place, you’ll be able to close the machine learning loop. Your models will be running with continual learning, and autonomously adapt to new data and trends. Not only will your model accuracy be automatically improving, but overall you’re model will be performing better in the application.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4754adcd7f7f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science/how-to-apply-continual-learning-to-your-machine-learning-models-4754adcd7f7f">How to apply continual learning to your machine learning models</a> was originally published in <a href="https://medium.com/data-science">TDS Archive</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>