<?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" xmlns:media="http://search.yahoo.com/mrss/" version="2.0">
    <channel>
        
        <title>
            <![CDATA[ Eniola Ajala - freeCodeCamp.org ]]>
        </title>
        <description>
            <![CDATA[ Browse thousands of programming tutorials written by experts. Learn Web Development, Data Science, DevOps, Security, and get developer career advice. ]]>
        </description>
        <link>https://www.freecodecamp.org/news/</link>
        <image>
            <url>https://cdn.freecodecamp.org/universal/favicons/favicon.png</url>
            <title>
                <![CDATA[ Eniola Ajala - freeCodeCamp.org ]]>
            </title>
            <link>https://www.freecodecamp.org/news/</link>
        </image>
        <generator>Eleventy</generator>
        <lastBuildDate>Thu, 11 Jun 2026 23:14:27 +0000</lastBuildDate>
        <atom:link href="https://www.freecodecamp.org/news/author/eniola-ajala/rss.xml" rel="self" type="application/rss+xml" />
        <ttl>60</ttl>
        
            <item>
                <title>
                    <![CDATA[ How to Create a ML Model with Azure Machine Learning Designer ]]>
                </title>
                <description>
                    <![CDATA[ Did you know that you can create machine learning models without writing any code? If you’re here, you’re probably curious about how to achieve this. In this article, I will guide you through building a regression model that predicts automobile price... ]]>
                </description>
                <link>https://www.freecodecamp.org/news/create-an-ml-model-with-azure-machine-learning-designer/</link>
                <guid isPermaLink="false">66d45e3dbc9760a197a10374</guid>
                
                    <category>
                        <![CDATA[ Azure ]]>
                    </category>
                
                    <category>
                        <![CDATA[ Low Code ]]>
                    </category>
                
                    <category>
                        <![CDATA[ Machine Learning ]]>
                    </category>
                
                <dc:creator>
                    <![CDATA[ Eniola Ajala ]]>
                </dc:creator>
                <pubDate>Tue, 25 Jun 2024 14:45:20 +0000</pubDate>
                <media:content url="https://www.freecodecamp.org/news/content/images/2024/06/F8825B00-8A4C-41D9-AE75-02A8631DE983.jpeg" medium="image" />
                <content:encoded>
                    <![CDATA[ <p>Did you know that you can create machine learning models without writing any code? If you’re here, you’re probably curious about how to achieve this.</p>
<p>In this article, I will guide you through building a regression model that predicts automobile prices using Azure Machine Learning’s Low-Code/No-Code tools.</p>
<p><code>Regression</code> is a supervised machine learning technique used for predicting numerical values. To understand regression better, you can read my previous article <a target="_blank" href="https://medium.com/@ajalaeniola454/supervised-and-unsupervised-learning-in-machine-learning-06c7151a0c2a">here</a>.</p>
<h3 id="heading-prerequisites">Prerequisites</h3>
<p>To fully understand and follow the steps in this tutorial, you need the following:</p>
<ol>
<li><p>An Azure account: You must have an active Azure account.</p>
</li>
<li><p>An Azure subscription: An active Azure subscription is required.</p>
</li>
</ol>
<p>If you don’t have an Azure account yet, you can sign up for <a target="_blank" href="https://azure.microsoft.com/en-us/free/students?wt.mc_id=studentamb_230833">Azure for Students</a>, the <a target="_blank" href="https://github.com/edu/students?wt.mc_id=studentamb_230833">GitHub Student Developer Pack</a>, or an <a target="_blank" href="https://azure.microsoft.com/en-us/free?wt.mc_id=studentamb_230833">Azure Free Trial</a>. These options provide various benefits and free credits to get you started.</p>
<p>Now let's get into building our model. Follow the steps below to begin! Make sure you read till the end to learn the entire process.</p>
<h2 id="heading-table-of-contents">Table of Contents</h2>
<ul>
<li><p><a class="post-section-overview" href="#heading-how-to-set-up-your-azure-machine-learning-workspace">How to Set Up Your Azure Machine Learning Workspace</a></p>
</li>
<li><p><a class="post-section-overview" href="#heading-how-to-set-up-compute-resources-in-azure-machine-learning-studio">How to Set Up Compute Resources in Azure Machine Learning Studio</a></p>
</li>
<li><p><a class="post-section-overview" href="#heading-how-to-create-your-machine-learning-pipeline">How to Create Your Machine Learning Pipeline</a></p>
</li>
<li><p><a class="post-section-overview" href="#heading-how-to-build-the-model">How to Build the Model</a></p>
</li>
<li><p><a class="post-section-overview" href="#heading-how-to-evaluate-the-model">How to Evaluate the Model</a></p>
</li>
<li><p><a class="post-section-overview" href="#heading-how-to-deploy-the-model">How to Deploy the Model</a></p>
</li>
<li><p><a class="post-section-overview" href="#heading-clean-up">Cleaning Up</a></p>
</li>
<li><p><a class="post-section-overview" href="#heading-conclusion">Conclusion</a></p>
</li>
</ul>
<h2 id="heading-how-to-set-up-your-azure-machine-learning-workspace">How to Set Up Your Azure Machine Learning Workspace</h2>
<p>To start working with <code>Azure Machine Learning</code>, you first need to create a <code>workspace</code>. A <code>workspace</code> is a centralized place to manage all the resources and experiments in your machine learning projects.</p>
<h3 id="heading-step-1-create-a-resource-group">Step 1: Create a Resource Group</h3>
<p>Start by signing in to the <a target="_blank" href="https://azure.microsoft.com/en-us/get-started/azure-portal?wt.mc_id=studentamb_230833">Azure Portal.</a> Click the <code>Create a resource</code> button (the plus icon) on the left-hand navigation bar.</p>
<p>In the search bar, type “Machine Learning” and select <code>Azure Machine Learning</code> from the list.</p>
<p><img src="https://www.freecodecamp.org/news/content/images/2024/06/1-1.png" alt="Image" width="600" height="400" loading="lazy"></p>
<p><em>Navigating to the Azure Home page and clicking the plus icon to create a new resource for the machine learning project</em></p>
<h3 id="heading-step-2-create-a-new-azure-machine-learning-resource">Step 2: Create a New Azure Machine Learning Resource</h3>
<p>Now click <code>Create</code> to begin setting up your workspace. You will need to fill in the necessary details:</p>
<ul>
<li><p><strong>Subscription:</strong> Select your Azure subscription.</p>
</li>
<li><p><strong>Resource Group:</strong> Either select an existing resource group or create a new one by clicking <code>Create new</code> and providing a name.</p>
</li>
<li><p><strong>Workspace Name:</strong> Provide a unique name for your workspace.</p>
</li>
<li><p><strong>Region</strong>: Choose a region that is closest to your location to reduce latency.</p>
</li>
<li><p><strong>Container Registry:</strong> Choose <code>Create new</code> unless you have an existing container registry you want to use.</p>
</li>
</ul>
<p><img src="https://www.freecodecamp.org/news/content/images/2024/06/3-1.png" alt="Image" width="600" height="400" loading="lazy"></p>
<p><em>Browsing the Azure Marketplace for machine learning services to find the appropriate tool for building and deploying models.</em></p>
<h3 id="heading-step-3-review-and-create">Step 3: Review and Create</h3>
<p>Fill in the form with all the required info. Make sure you provide a unique <code>Name</code> and select a region. Then create your new container registry.</p>
<p>Review your settings to ensure everything is correct. Then click <code>Review + create</code> to validate your configuration. Once the validation is complete, click <code>Create</code> to deploy your workspace. This process may take a few minutes.</p>
<p><img src="https://www.freecodecamp.org/news/content/images/2024/06/5-1.png" alt="Image" width="600" height="400" loading="lazy"></p>
<p><em>Setting up a new machine learning workspace in Azure with essential configuration details.</em></p>
<h3 id="heading-step-4-deployment">Step 4: Deployment</h3>
<p>After the deployment is complete, click the <code>Go to resource</code> button to navigate to your new workspace.</p>
<p>In the workspace overview, click <code>Launch studio</code> to open the <code>Azure Machine Learning Studio</code>, where you will perform all your machine learning tasks.</p>
<p><img src="https://www.freecodecamp.org/news/content/images/2024/06/7.png" alt="Image" width="600" height="400" loading="lazy"></p>
<p><em>Resource deployment complete in Microsoft Azure Machine Learning Services.</em></p>
<h2 id="heading-how-to-set-up-compute-resources-in-azure-machine-learning-studio">How to Set Up Compute Resources in Azure Machine Learning Studio</h2>
<p>Once your workspace deployment is complete, you need to set up the compute resources required to run your machine learning experiments. Follow the steps below to do this.</p>
<h3 id="heading-step-1-access-the-workspace">Step 1: Access the Workspace</h3>
<p>After the deployment is complete, click the <code>Go to resource button</code>. In the workspace overview, click <code>Launch studio</code> to open the Azure Machine Learning Studio.</p>
<h3 id="heading-step-2-create-a-compute-instance">Step 2: Create a Compute Instance</h3>
<p>In the Azure Machine Learning Studio, navigate to the left-hand menu and click on Compute. Select the <code>Compute instances</code> tab, then click <code>+ New</code> to create a new compute instance.</p>
<p>Fill in the required details:</p>
<ul>
<li><p><strong>Virtual machine size:</strong> Select <code>Standard_DS11_v2</code> for a balance of performance at minimal cost.</p>
</li>
<li><p><strong>Compute name:</strong> Enter a unique name for your compute instance.</p>
</li>
</ul>
<p>Then click <code>Create</code> set up the compute instance. This process might take a few minutes.</p>
<p><img src="https://www.freecodecamp.org/news/content/images/2024/06/conp-running.png" alt="Image" width="600" height="400" loading="lazy"></p>
<p><em>Configuring compute instances in Azure Machine Learning to ensure the required computational power for training machine learning models.</em></p>
<h3 id="heading-step-3-create-a-compute-cluster">Step 3: Create a Compute Cluster</h3>
<p>In addition to a compute instance, you will need a compute cluster for scalable training. Still under the <code>Compute</code> section, select the <code>Compute clusters</code> tab and click <code>+ New</code>.</p>
<p>Fill in the details:</p>
<ul>
<li><p><strong>Cluster name:</strong> Enter a unique name for your compute cluster.</p>
</li>
<li><p><strong>Virtual machine size:</strong> Choose <code>Standard_DS11_v2</code>.</p>
</li>
<li><p><strong>Minimum number of nodes:</strong> Set to <code>0</code> to save costs when not in use.</p>
</li>
<li><p><strong>Maximum number of nodes:</strong> Set to <code>2</code> for this tutorial.</p>
</li>
</ul>
<p>Then click <code>Create</code> to set up the compute cluster. Wait for the cluster to be in a running state before proceeding.</p>
<p><img src="https://www.freecodecamp.org/news/content/images/2024/06/11.png" alt="Image" width="600" height="400" loading="lazy"></p>
<p><em>Overview of compute clusters in Azure Machine Learning</em></p>
<h2 id="heading-how-to-create-your-machine-learning-pipeline">How to Create Your Machine Learning Pipeline</h2>
<p>In this section, we will create a <code>machine learning pipeline</code> using <code>Azure Machine Learning Designer</code>. Pipelines help streamline the process of preparing data, training models, and deploying them.</p>
<h3 id="heading-step-1-navigate-to-the-designer">Step 1: Navigate to the Designer</h3>
<p>In the Azure Machine Learning Studio, go to the left navigation bar and click on <code>Designer</code>. Then click <code>+ New pipeline</code> to start creating a new pipeline.</p>
<p><img src="https://www.freecodecamp.org/news/content/images/2024/06/p1.png" alt="Image" width="600" height="400" loading="lazy"></p>
<p><em>Interface showing the creation of a new pipeline.</em></p>
<h3 id="heading-step-2-add-your-data">Step 2: Add Your Data</h3>
<p>You have the option to use external data or prebuilt sample datasets. For this tutorial, we’ll use a prebuilt sample dataset.</p>
<p>To use prebuilt sample data, click on the <code>Components</code> tab. Use the search bar or manually scroll to find the <code>Automobile price data</code> dataset. Drag and drop the dataset onto the canvas in the Designer.</p>
<p><img src="https://www.freecodecamp.org/news/content/images/2024/06/p2.png" alt="Image" width="600" height="400" loading="lazy"></p>
<p><em>Interface showing the addition of Automobile price data set.</em></p>
<h3 id="heading-step-3-explore-the-data">Step 3: Explore the Data</h3>
<p>Once the dataset is on the canvas, click on it to view its details. Navigate to the <code>Visualizations</code> tab to explore data distribution and statistical summaries. Click the <code>Output+logs</code> tab and then <code>Preview data</code> to inspect the first few rows of the dataset. This will help you understand the data's structure and identify any potential issues.</p>
<p><img src="https://www.freecodecamp.org/news/content/images/2024/06/p3.png" alt="Image" width="600" height="400" loading="lazy"></p>
<p><em>Visualization of dataset</em></p>
<h3 id="heading-step-4-prepare-the-data">Step 4: Prepare the Data</h3>
<p>To specify the variables we want to work with, we need to filter out unnecessary columns.</p>
<p>From the <code>Data Transformation</code> section, drag and drop the <code>Select Columns in Dataset</code> module onto the canvas below the dataset. Connect the output node of the dataset to the input node of the <code>Select Columns in Dataset</code> module.</p>
<p>Open the module’s settings, select the columns you want to include in your model, and exclude irrelevant columns such as <code>normalized-losses.</code> (<em>We are removing this column because it has high percentage of missing data</em>). Click <code>Save and close</code> to apply the changes.</p>
<p><img src="https://www.freecodecamp.org/news/content/images/2024/06/n1-1.png" alt="Image" width="600" height="400" loading="lazy"></p>
<p><em>Interface for selecting columns in the dataset.</em></p>
<p>Next, you will need to clean any missing data. This helps us handle missing values to improve the model's accuracy.</p>
<p>To do this, drag and drop the <code>Clean Missing Data</code> module onto the canvas, below the <code>Select Columns in Dataset</code> module. Connect the nodes and configure the settings to remove rows with missing values. Save and close the settings.</p>
<p><img src="https://www.freecodecamp.org/news/content/images/2024/06/n2.png" alt="Image" width="600" height="400" loading="lazy"></p>
<p><em>Interface for cleaning columns in the dataset.</em></p>
<h3 id="heading-step-5-normalize-the-data">Step 5: Normalize the Data</h3>
<p>To ensure the model performs well, we need to normalize the data. To do this, from the <code>Data Transformation</code> section, drag and drop the <code>Normalize Data</code> module onto the canvas. Connect the output of the <code>Clean Missing Data</code> module to the input of the <code>Normalize Data</code> module.</p>
<p>You'll want to configure the module to use the <code>MinMax</code> scaling method and select the columns to normalize, you can type them out manually by separating each column with a comma. Then save and close the settings.</p>
<p><img src="https://www.freecodecamp.org/news/content/images/2024/06/n3.png" alt="Image" width="600" height="400" loading="lazy"></p>
<p><em>Interface for normalizing columns in the dataset.</em></p>
<h3 id="heading-step-6-finalize-the-pipeline-setup">Step 6: Finalize the Pipeline Setup</h3>
<p>Once all transformations are in place, review the pipeline to ensure all steps are correctly configured. Click <code>Submit</code> to run the pipeline. You can monitor the pipeline’s progress in the <code>Jobs</code> section.</p>
<p>NOTE: Each time you set up a module and you click submit, <code>view the details</code> of the <code>pipeline job</code> to keep track of your flows.</p>
<p><img src="https://www.freecodecamp.org/news/content/images/2024/06/n4.png" alt="Image" width="600" height="400" loading="lazy"></p>
<p><em>Monitoring pipeline through the link</em></p>
<h2 id="heading-how-to-build-the-model">How to Build the Model</h2>
<p>This is the fun step where we start building our machine learning model by preparing the dataset for training and applying the appropriate algorithms.</p>
<h3 id="heading-step-1-split-the-dataset">Step 1: Split the Dataset</h3>
<p>Drag and drop the Split Data module onto the canvas. Then connect the output of the Normalize Data module to the input of the <code>Split Data</code> module.</p>
<p>In the settings panel of the Split Data module:</p>
<ul>
<li><p>Set the <code>Fraction of rows</code> in the first output dataset to 0.7. This means 70% of the data will be used for training the model.</p>
</li>
<li><p>Set the <code>Randomized seed</code> to any number to ensure reproducibility. For this tutorial, use 123.</p>
</li>
</ul>
<h3 id="heading-step-2-train-the-model">Step 2: Train the Model</h3>
<p>Now it's time to add the <code>Train Model</code> block. Drag and drop the <code>Train Model</code> module onto the canvas. Connect the first output of the <code>Split Data</code> module (the 70% training data) to the input of the <code>Train Model</code> module.</p>
<p>Click on the <code>Train Model</code> module to configure its settings. In the <code>Edit column</code> section, select the target variable, which in this case is <code>price.</code> Save and close the settings.</p>
<p>Next, you'll add the Training Algorithm. From the <code>Machine Learning Algorithms</code> section, drag and drop the <code>Linear Regression</code> module onto the canvas. Connect the output of the <code>Linear Regression</code> module to the right input of the <code>Train Model</code> module.</p>
<p><img src="https://www.freecodecamp.org/news/content/images/2024/06/n7.png" alt="Image" width="600" height="400" loading="lazy"></p>
<p><em>Interface showing connection of modules in pipeline</em></p>
<h3 id="heading-step-3-evaluate-the-model">Step 3: Evaluate the Model:</h3>
<p>Drag and drop the <code>Score Model</code> module onto the canvas. Connect the second output of the <code>Split Data</code> module (the 30% testing data) to the left input of the <code>Score Model</code> module. Connect the output of the <code>Train Model</code> module to the right input of the <code>Score Model</code> module.  This will apply the trained model to the testing data to evaluate its performance.</p>
<p>Next, drag and drop the <code>Evaluate Model</code> module onto the canvas. Connect the output of the <code>Score Model</code> module to the input of the <code>Evaluate Model</code> module. This will provide various evaluation metrics to assess the model’s accuracy.</p>
<p><img src="https://www.freecodecamp.org/news/content/images/2024/06/model-1.png" alt="Image" width="600" height="400" loading="lazy"></p>
<p><em>Interface showing connection of modules in pipeline</em></p>
<h3 id="heading-step-4-review-and-submit">Step 4: Review and Submit</h3>
<p>Double-check all connections and settings in your pipeline. Then click <code>Submit</code> to run the model training and evaluation pipeline. You can monitor the job’s progress in the <code>Jobs</code> section, where you can view logs and outputs.</p>
<h2 id="heading-how-to-evaluate-the-model">How to Evaluate the Model</h2>
<p>After training our model, it’s important to evaluate its performance to ensure it’s making accurate predictions. We will use the <code>Score Model</code> and <code>Evaluate Model</code> modules for this purpose.</p>
<h3 id="heading-step-1-evaluate-the-models-performance">Step 1: Evaluate the Model’s Performance</h3>
<p>Drag and drop the <code>Evaluate Model</code> module onto the canvas. Connect the output of the <code>Score Model</code> module to the input of the <code>Evaluate Model</code> module.</p>
<p>The <code>Evaluate Model</code> module will generate various evaluation metrics, such as Mean Absolute Error (MAE), Root Mean Squared Error (RMSE), and R-squared (R²), which are critical for assessing the accuracy and performance of the regression model.</p>
<h3 id="heading-explore-the-evaluation-metrics">Explore the Evaluation Metrics:</h3>
<p>Once the pipeline execution is complete, click on the <code>Evaluate Model</code> module to explore the detailed metrics.</p>
<p>Here are some key metrics to focus on:</p>
<ul>
<li><p><strong>Mean Absolute Error (MAE):</strong> Measures the average magnitude of errors in predictions, without considering their direction. Lower values indicate better accuracy.</p>
</li>
<li><p><strong>Root Mean Squared Error (RMSE):</strong> Similar to MAE but gives more weight to larger errors. Lower values are better.</p>
</li>
<li><p><strong>R-squared (R²):</strong> Indicates how well the model’s predictions match the actual data. Values closer to 1 signify a better fit.</p>
</li>
</ul>
<p><img src="https://www.freecodecamp.org/news/content/images/2024/06/n9.png" alt="Image" width="600" height="400" loading="lazy"></p>
<p><em>Visualization of data output from the regression model.</em></p>
<p>We just built and evaluated our model. Yayy!</p>
<h2 id="heading-how-to-deploy-the-model">How to Deploy the Model</h2>
<p>Now that we have trained and evaluated our regression model, it’s time to deploy it for real-time inference using Azure Machine Learning. Follow these steps to deploy the model and create an inference pipeline.</p>
<h3 id="heading-step-1-create-the-inference-pipeline">Step 1: Create the Inference Pipeline</h3>
<p>Navigate to the <code>Designer</code> section in Azure Machine Learning Studio and create a new pipeline for deployment. Select <code>Real-time inference</code> to set up the deployment pipeline automatically.</p>
<h3 id="heading-step-2-configure-the-pipeline">Step 2: Configure the Pipeline</h3>
<p>After selecting Real-time inference, the pipeline will be initialized with default components. You can modify the pipeline by adding necessary components.</p>
<p>We have to make some changes like adding <code>Enter data manually</code>, <code>Execute python script</code> modules. Also, in the <code>select column in dataset</code> block, edit and remove the price column. Remove connection between <code>Score model</code> and <code>web service</code>.</p>
<ul>
<li><code>Enter Data Manually</code>: Drag and drop this block onto the canvas. This component allows manual input of data for prediction. Copy and paste the data below into the <code>data</code> field.</li>
</ul>
<p>symboling,fuel-type,aspiration,num-of-doors,body-style,drive-wheels,engine-location,wheel-base,length,width,height,curb-weight,engine-type,num-of-cylinders,engine-size,fuel-system,bore,stroke,compression-ratio,horsepower,peak-rpm,city-mpg,highway-mpg,make 3,gas,std,two,convertible,rwd,front,88.6,168.8,64.1,48.8,2548,dohc,four,130,mpfi,3.47,2.68,9,111,5000,21,27,alfa-romero giulia 3,gas,std,two,convertible,rwd,front,88.6,168.8,64.1,48.8,2548,dohc,four,130,mpfi,3.47,2.68,9,111,5000,21,27,alfa-romero stelvio 1,gas,std,two,hatchback,rwd,front,94.5,171.2,65.5,52.4,2823,ohcv,six,152,mpfi,2.68,3.47,9,154,5000,19,26,alfa-romero Quadrifoglio 2,gas,std,four,sedan,fwd,front,99.8,176.6,66.2,54.3,2337,ohc,four,109,mpfi,3.19,3.4,10,102,5500,24,30,audi 100 ls 2,gas,std,four,sedan,4wd,front,99.4,176.6,66.4,54.3,2824,ohc,five,136,mpfi,3.19,3.4,8,115,5500,18,22,audi 100ls 2,gas,std,two,sedan,fwd,front,99.8,177.3,66.3,53.1,2507,ohc,five,136,mpfi,3.19,3.4,8.5,110,5500,19,25,audi fox 1,gas,std,four,sedan,fwd,front,105.8,192.7,71.4,55.7,2844,ohc,five,136,mpfi,3.19,3.4,8.5,110,5500,19,25,audi 100ls 1,gas,std,four,wagon,fwd,front,105.8,192.7,71.4,55.7,2954,ohc,five,136,mpfi,3.19,3.4,8.5,110,5500,19,25,audi 5000 1,gas,turbo,four,sedan,fwd,front,105.8,192.7,71.4,55.9,3086,ohc,five,131,mpfi,3.13,3.4,8.3,140,5500,17,20,audi 4000</p>
<ul>
<li><code>Execute Python Script</code>: Replace the code in this block with:</li>
</ul>
<p>import pandas as pd def azureml_main(dataframe1=None, dataframe2=None): scored_results = dataframe1[["Scored Labels"]] scored_results.rename(columns={"Scored Labels": "predicted price"}, inplace=True)<br>return scored_results</p>
<ul>
<li><p><code>Select Columns in Dataset</code>: Edit and remove the <code>price</code> column to ensure it’s not included in the input data for predictions.</p>
</li>
<li><p><code>Remove Connection</code>: Disconnect the <code>Score Model</code> module from the web service output to ensure only the <code>Execute Python Script</code> block connects to it.</p>
</li>
</ul>
<p>See the images below for a visual representation of how the connections are configured.</p>
<p><img src="https://www.freecodecamp.org/news/content/images/2024/08/3E905EDF-3F19-4451-8F31-6F80F7212957.png" alt="Image" width="600" height="400" loading="lazy"></p>
<p><em>Interface of modules connection in pipeline</em></p>
<h3 id="heading-step-3-submit-and-deploy-the-model">Step 3: Submit and Deploy the Model</h3>
<p>Submit the flow and wait for all processes to complete successfully (green check mark). Once your deployment is successful, you can explore the output to verify everything is functioning as expected.</p>
<p>You can now deploy the model as a real-time web service for predictions.</p>
<p><img src="https://www.freecodecamp.org/news/content/images/2024/06/n13.png" alt="Image" width="600" height="400" loading="lazy"></p>
<p><em>Configuration settings for setting up new pipeline</em></p>
<p>Once all the processes are successfully completed in Azure Machine Learning Studio, you are ready to explore the output and deploy your trained model as a real-time web service.</p>
<p>Here’s how you can proceed:</p>
<ol>
<li><p><strong>Review Pipeline Execution:</strong> Ensure that all the steps in your pipeline have completed with a green check mark indicating success.</p>
</li>
<li><p><strong>View Outputs and Visualizations:</strong> Navigate through the different components of your pipeline to inspect outputs and visualizations generated during data transformation, model training, and evaluation stages. This helps in understanding how each step has contributed to the overall model performance.</p>
</li>
<li><p><strong>Check Evaluation Metrics:</strong> Examine the evaluation scores generated by the <code>Score Model</code> block to assess the performance of your trained regression model. Common evaluation metrics include Mean Squared Error (MSE), R-squared (R2), and Root Mean Squared Error (RMSE). These metrics provide insights into how well your model predicts automobile prices based on the input features.</p>
</li>
</ol>
<p><img src="https://www.freecodecamp.org/news/content/images/2024/06/n10-1.png" alt="Image" width="600" height="400" loading="lazy"></p>
<p><em>Visualization of data output from model evaluation.</em></p>
<p>Put the following checks in place before starting the deployment:</p>
<h4 id="heading-prepare-for-deployment">Prepare for Deployment</h4>
<p>First, ensure that the <code>Execute Python Script</code> block is correctly configured to transform input data and produce predicted prices.</p>
<p>You'll also want to verify that the pipeline is set up to handle real-time inference for deploying the model.</p>
<h4 id="heading-submit-the-pipeline">Submit the Pipeline</h4>
<p>Click on the submit button to initiate the deployment process. Wait for Azure Machine Learning to complete the deployment and verify that all components have been successfully deployed.</p>
<h4 id="heading-deploy-as-web-service">Deploy as Web Service</h4>
<p>Once deployment is confirmed successful, you can deploy the model as a real-time web service. This web service will be hosted on Azure and can be accessed via API endpoints, allowing applications to send data and receive predictions in real-time.</p>
<h4 id="heading-testing-the-web-service">Testing the Web Service:</h4>
<p>Use the <code>Enter Data Manually</code> block to manually input test data or use external systems to send requests to the deployed web service endpoint. You can verify that the web service responds with predicted prices based on the input features.</p>
<h4 id="heading-monitor-and-manage">Monitor and Manage:</h4>
<p>Monitor the performance of your deployed web service using Azure Machine Learning monitoring tools. You can manage the deployment by scaling resources as needed or updating the model with new data or improved versions.</p>
<p>Deploying your regression model as a real-time web service enables you to use its predictive capabilities in various applications without the need for direct human intervention. It ensures that your model can continuously provide accurate predictions based on real-time data inputs.</p>
<p><img src="https://www.freecodecamp.org/news/content/images/2024/06/n17.png" alt="Image" width="600" height="400" loading="lazy"></p>
<p><em>Interface showing predicted price</em></p>
<h2 id="heading-clean-up">Clean Up</h2>
<p>The web service you created is hosted in an <code>Azure Container Instance</code>. If you don’t intend to experiment with it further, you should delete the endpoint to avoid accruing unnecessary Azure usage.</p>
<p>Deleting your compute ensures your subscription won’t be charged for compute resources. You will, however, be charged a small amount for data storage as long as the Azure Machine Learning workspace exists in your subscription.</p>
<p>If you have finished exploring Azure Machine Learning, you can delete the Azure Machine Learning workspace and associated resources.</p>
<p>To delete your workspace:</p>
<ol>
<li><p>In the <a target="_blank" href="https://portal.azure.com/?azure-portal=true">Azure portal</a>, in the <strong>Resource groups</strong> page, open the resource group you specified when creating your Azure Machine Learning workspace.</p>
</li>
<li><p>Click <strong>Delete resource group</strong>, type the resource group name to confirm you want to delete it, and select <strong>Delete</strong>.</p>
</li>
</ol>
<h2 id="heading-conclusion">Conclusion</h2>
<p>Congratulations! You have successfully created and deployed a regression model using Azure Machine Learning Designer without writing a single line of code.</p>
<p>In this tutorial, you have learned how to clean and preprocess data, build and train a machine learning model, evaluate its performance, and deploy it as a web service. This low-code/no-code approach in Azure Machine Learning Designer makes it accessible for everyone to use the power of machine learning.</p>
<p>Remember to clean up your resources to avoid unnecessary charges. With these skills, you can now experiment with other datasets and machine learning problems. Azure's possibilities are endless, and Azure Machine Learning provides a robust platform for your data science projects.</p>
<p>Till next time, cheers :)</p>
 ]]>
                </content:encoded>
            </item>
        
    </channel>
</rss>
