<?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 Clariscalawrencia on Medium]]></title>
        <description><![CDATA[Stories by Clariscalawrencia on Medium]]></description>
        <link>https://medium.com/@clariscalawrencia12?source=rss-17540afd67b7------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*VxRB6ZjRFK8NvodB.jpg</url>
            <title>Stories by Clariscalawrencia on Medium</title>
            <link>https://medium.com/@clariscalawrencia12?source=rss-17540afd67b7------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 19:45:39 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@clariscalawrencia12/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[Streamlining MLOps with Amazon SageMaker and AWS CodeSuite]]></title>
            <link>https://medium.com/ndid-engineering/streamlining-mlops-with-amazon-sagemaker-and-aws-codesuite-50a9aa0baed3?source=rss-17540afd67b7------2</link>
            <guid isPermaLink="false">https://medium.com/p/50a9aa0baed3</guid>
            <dc:creator><![CDATA[Clariscalawrencia]]></dc:creator>
            <pubDate>Thu, 20 Jun 2024 03:57:09 GMT</pubDate>
            <atom:updated>2024-06-20T03:57:09.886Z</atom:updated>
            <content:encoded><![CDATA[<p>MLOps, a blend of machine learning and DevOps, is crucial for automating and managing the machine learning lifecycle. Amazon SageMaker is a comprehensive service that supports MLOps by providing tools for building, training, and deploying machine learning models. In this blog, we will explore how AWS is able to facilitate our end-to-end MLOps needs.</p><h3>Pre-requisite</h3><ul><li>Existing AWS Account’</li><li>Basic DevOps</li><li>Python</li></ul><h3>1. SageMaker Project</h3><p>SageMaker has provided us with an amazing template that can be used to build your first pipeline.</p><ul><li>Log into your AWS Account and go to <strong>SageMaker</strong>.</li><li>Open <strong>SageMaker Studio.</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*gSLOwH1-vbghCZ3V" /></figure><ul><li>Hover to <strong>Deployments</strong> and click on <strong>Projects.</strong></li><li>Click <strong>Create Project.</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*sQWKa5vtiOsM0E5N" /></figure><ul><li>Choose Model building, training, deployment and monitoring.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*O66QZpKitXXYst9C" /></figure><ul><li>Fill in your project details and create the project.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*zUMWF-DsdmvEIJub" /></figure><h3>2. CodeSuite</h3><ul><li>We will wait a moment after the new project has been created.</li><li>The creation of the new project results in 3 new repositories within Code Commit.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*S0kbz86KQHz8Qh1g" /></figure><ul><li>It will also create 3 new pipelines within Code Pipeline (build and monitor will fail on the first deployment)</li></ul><h3>3. Build…</h3><p>We will talk about the first repository that is Model Build .</p><ul><li>Dive in to the build CodePipeline.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*u10by4WmKR0jVzhM" /></figure><ul><li>The CodeBuild process executes the codebuild-buildspec.yml, which contains the instructions necessary to trigger the execution of the SageMaker Pipeline within the CI/CD system via CodePipeline. This file includes fields for naming the Pipeline, ModelPackageGroup, and other configurations.</li><li>The pipeline artifacts include a module that defines the required get_pipeline method, which returns an instance of a SageMaker pipeline. Additionally, it contains a preprocessing script for feature engineering and a model evaluation script to measure the mean squared error (MSE) of the trained model. This constitutes the core business logic. If you wish to create your own folder, you can do so and implement the get_pipeline interface as demonstrated.</li></ul><p>| — pipelines<br>| | — abalone<br>| | | — evaluate.py<br>| | | — __init__.py<br>| | | — pipeline.py<br>| | ` — preprocess.py</p><ul><li>There are also some utility files, which you normally don’t have to modify.</li></ul><p>| — pipelines<br>| | — get_pipeline_definition.py<br>| | — __init__.py<br>| | — run_pipeline.py<br>| | — _utils.py<br>| ` — __version__.py</p><ul><li>You can see the created Pipeline as follows:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*79lLJTafUmBzgxtl" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*9uym088wDZbfyzHr" /></figure><ul><li>Take a sneak peek on the evaluation result (which is stored in s3). We will deploy the model once you are happy with the result.</li></ul><h3>4. Model Deployment (Staging)</h3><ul><li>Click on <strong>Model</strong> in the SageMaker Studio</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ZAd4SsBKmcv2_Kh6" /></figure><ul><li>We will see that the model is Pending manual approval . A manual approval is required to deploy the model to the Staging environment.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*xT-ZW231-yiQT6h_" /></figure><ul><li>Approve the model. It will now trigger the Model Deploy (within CodePipeline).</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*nAcdUTpDXvJZaSeB" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/0*i9dp0WOnCFqPtvoL" /></figure><ul><li>Upon the completion of the DeployStaging workflow, we will have a new Staging Endpoint.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*rtEiSs1WcM8aCbVa" /></figure><ul><li>Test the staging endpoint, to check if it works accordingly (feel free to use a python invocation)</li></ul><h3>5. Model Monitoring</h3><ul><li>Upon the creation of the endpoint, it will also execute the <strong>Monitoring Pipeline</strong> (within CodePipeline).</li><li>The template provides the following types of Amazon SageMaker Model Monitor:</li><li><a href="https://docs.aws.amazon.com/sagemaker/latest/dg/model-monitor-data-quality.html">Monitor Data Quality</a> — Monitor drift in data quality.</li><li><a href="https://docs.aws.amazon.com/sagemaker/latest/dg/model-monitor-model-quality.html">Monitor Model Quality</a> — Monitor drift in model quality metrics, such as accuracy.</li><li><a href="https://docs.aws.amazon.com/sagemaker/latest/dg/clarify-model-monitor-bias-drift.html">Monitor Bias Drift for Models in Production</a> — Monitor bias in model’s predictions.</li><li><a href="https://docs.aws.amazon.com/sagemaker/latest/dg/clarify-model-monitor-feature-attribution-drift.html">Monitor Feature Attribution Drift for Models in Production</a> — Monitor drift in feature attribution.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*m6TwDXInZZFs32fx" /></figure><ul><li>It will create the Model Monitor Setup, and you will be able to view it as follows:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*xmBqDtJeCJjEiWZL" /></figure><h3>6. Model Deployment (Production)</h3><ul><li>Let’s wrap up this tutorial by deploying the model to the production endpoint.</li><li>Approve the deployment located in CodePipeline for <strong>Build.</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*cTu9Sn9ekcjDb57B" /></figure><ul><li>We will now be able to see the Production endpoint</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*mw2gYBACBqMdtqum" /></figure><h3>Conclusion</h3><p>That wraps up the tutorial of streamlining MLOps using SageMaker and CodeSuite. The second part I will be talking about leveraging AWS Lambda and APIGateway instead of using the SageMaker Endpoint to save cost 🙂</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=50a9aa0baed3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ndid-engineering/streamlining-mlops-with-amazon-sagemaker-and-aws-codesuite-50a9aa0baed3">Streamlining MLOps with Amazon SageMaker and AWS CodeSuite</a> was originally published in <a href="https://medium.com/ndid-engineering">NDID Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>