<?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 Steve Dille on Medium]]></title>
        <description><![CDATA[Stories by Steve Dille on Medium]]></description>
        <link>https://medium.com/@steve_85555?source=rss-4b091aafa293------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*FwdLGnyrUJeA629gDXMKGw.jpeg</url>
            <title>Stories by Steve Dille on Medium</title>
            <link>https://medium.com/@steve_85555?source=rss-4b091aafa293------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 27 Nov 2026 09:30:01 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@steve_85555/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[Machine Learning Productivity Products]]></title>
            <link>https://medium.com/series/machine-learning-productivity-products-6090686303d?source=rss-4b091aafa293------2</link>
            <guid isPermaLink="false">https://medium.com/p/6090686303d</guid>
            <dc:creator><![CDATA[Steve Dille]]></dc:creator>
            <pubDate>Wed, 15 May 2019 21:55:25 GMT</pubDate>
            <atom:updated>2019-05-15T21:55:25.328Z</atom:updated>
            <content:encoded><![CDATA[<p>I’m writing on products I find that make building machine learning models faster and easier!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6090686303d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Decide Between Amazon SageMaker and Microsoft Azure Machine Learning Studio]]></title>
            <link>https://medium.com/data-science/how-to-decide-between-amazon-sagemaker-and-microsoft-azure-machine-learning-studio-157a08af839a?source=rss-4b091aafa293------2</link>
            <guid isPermaLink="false">https://medium.com/p/157a08af839a</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Steve Dille]]></dc:creator>
            <pubDate>Wed, 15 May 2019 19:44:51 GMT</pubDate>
            <atom:updated>2019-05-15T20:32:21.301Z</atom:updated>
            <content:encoded><![CDATA[<h4>Both Build Models Faster, but for Very Different Types of Users</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/350/1*EPKm88KD_gusRT_TSFgUlg.jpeg" /></figure><p>I recently published a walk-thru of Microsoft Azure Machine Learning Studio (Studio) <a href="https://towardsdatascience.com/how-microsoft-azure-machine-learning-studio-clarifies-data-science-8e8d3e6ed64e">https://towardsdatascience.com/how-microsoft-azure-machine-learning-studio-clarifies-data-science-8e8d3e6ed64e</a> and was favorably impressed with the simplicity and power. But there are other tools that also claim to make machine learning easier and speed model development. I am wondering how they compare? So, this week, I am taking a look at Amazon SageMaker (SageMaker) and how it compares to Studio.</p><p>What I found when I looked at SageMaker in comparison to Studio is a significantly different approach to model building. The vendors of each tool would both claim to offer a fully managed service that covers the entire machine learning workflow to build, train, and deploy machine learning models quickly. And this is totally true. However, they accomplish this in vastly different ways.</p><p>Azure Studio has a drag and drop UI where the machine learning modeling process is architected on a canvas (entirely without code if the user doesn’t stray too much). The user is shielded from the complexities of data engineering, open source libraries and Python coding. This product is targeted at data analysts and citizen data scientists and others who want a simple, visual way to build models.</p><p>SageMaker, on the other hand, relies heavily on code and much of the user interaction is designed to take place in a familiar Jupyter Notebook (certainly one of the most popular tools used by data scientists.) The SageMaker environment will allow maximum flexibility (with Python — the most popular coding language for data scientists) but requires much more knowledge of the data engineering, the storage of data and the compute resources than Studio.</p><p>So, while both products make data science easier, this is really a case of comparing apples and oranges because the operate so differently. SageMaker is not appropriate for the target users of Studio who are not knowledgeable on coding and data engineering and Studio would appear limiting to software savvy data scientists and developers who are used to coding up anything they desire.</p><p>To see why these products were designed for different users, it is best to just walk through the process of model building with screen shots of how each product would work for setup, getting data, preparing data, building and training models, testing and scoring models and deploying.</p><p>For SageMaker, I will use Python3 to implement the XGBoost algorithm to predict for the marketing department of a bank whether a customer will buy a CD or not. For Studio, I will conduct a linear regression using various car attributes to predict the price of a car. Here is how both products work.</p><h3><strong>Setup — Create an Environment</strong></h3><p>AMAZON SAGEMAKER</p><p>With Amazon SageMaker, we start out by creating a Jupyter notebook instance in the cloud.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BjjkqOv7jwJIZdaBTIsbhA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gStIwnn2SbUmz7tBCTltFA.png" /></figure><p>The notebook instance is created so a user can access S3 (AWS storage) and other services. Note that in this setup process, the user is making decisions about which S3 buckets they should access, selecting the size of their cloud instance and other technical details — likely to be confusing for citizen data scientists.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/825/1*yqWkSxQucUz18n60v24Jwg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/467/1*nECIGE33Sladi5Dgr5wo5A.png" /></figure><p>AZURE STUDIO</p><p>The launching point for Azure Machine Learning Studio is the homepage.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cCHsi-bthcQGh7WsJK0CoA.png" /></figure><p>In contrast to the initial setup and instance management required in SageMaker, Studio looks much more like a business application and skips the complexity. The basic layout is represented in the following tabs on the left:</p><p>· PROJECTS — Collections of experiments, datasets, notebooks, and other resources representing a single project</p><p>· EXPERIMENTS — Experiments that you have created or saved</p><p>· WEB SERVICES — Web services models that you have deployed from your experiments</p><p>· NOTEBOOKS — Jupyter notebooks that you have created</p><p>· DATASETS — Datasets that you have uploaded into Studio</p><p>· TRAINED MODELS — Models that you have trained in experiments and saved</p><h3><strong>Get the Data</strong></h3><p>AZURE STUDIO</p><p>Studio lets you import and save datasets on the left of this screenshot. In this example, I have chosen a dataset labeled <strong>Automobile price data (Raw)</strong> and then dragged this dataset to the experiment canvas.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/974/1*zDPOUvLbkEijLVH7ymz6xQ.png" /></figure><p>The way studio works is through the creation of a canvas for conducting a machine learning experiment. On the canvas, the user drags and drops necessary components such as data sets, transformations, algorithms etc.. in an orderly process flow for the model experiment. After testing and deciding on a model, the experiment is converted to a working model and published.</p><p>One really nice feature that data scientists appreciate is the ability to get a quick look at the data columns and distribution to understand the data they are dealing with. To see what this data looks like, you can simply click the output port at the bottom of the dataset, then select Visualize.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*56hPOv08IjcWDJUGt4AKtA.jpeg" /></figure><p>AMAZON SAGEMAKER</p><p>The process of getting data into SageMaker is accomplished programmatically with Python in this example. The user selects the dataset (could be a CSV file etc.) and imports it into a Pandas dataframe for analysis. This is integrated into the data preparation part of SageMaker shown later. In this example, the code would look like the Python command:</p><p>model_data = pd.read.csv(….)</p><h3><strong>Prepare the Data</strong></h3><p>AMAZON SAGEMAKER</p><p>In SageMaker, once you have data in Python, the user is free to programmatically transform columns, drop rows with missing data etc.. with complete flexibility. I’ll show you some sample code involving reformatting a header and column as part of the model selection section later.</p><p>To accomplish data prep in SageMaker before training a model, there are again a number of steps to walk through to configure the environment.<strong> </strong>Note: there is again a lot of focus on containers, dataframes, libraries, defining the right S3 buckets and the country regions. This complexity is shielded from users in Studio.</p><p>First, we need to select the version on Python we are using — conda_python3.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_Rp-G8d8BpEJZQ1vddbkiw.png" /></figure><p>To prepare the data, train the machine learning model, and deploy it, we will need to import some libraries and define a few environment variables. In this case, the code to do that looks as below. We would run that code in the Jupyter Notebook.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_9MGTzeSI3cgZM08nVMjgQ.png" /></figure><p>We will need a S3 bucket to store our training data once we have processed it and that needs to be defined too.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qCrqOUuABEeSMcdFcVRzuA.png" /></figure><p>Next, we need to download the data to our SageMaker instance and load it into a Pandas dataframe as discussed above. To do this would look as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rhHksQwM7wMa8YmiavjW1A.png" /></figure><p>AZURE STUDIO</p><p>In contrast to a code-based approach, Studio offers a drag and drop visual approach. Datasets and modules in Studio have input and output ports represented by small circles — input ports at the top, output ports at the bottom. To create a flow of data through your experiment, you’ll connect an output port of one module to an input port of another. At any time, you can click the output port of a dataset or module to see what the data looks like at that point in the data flow.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1001/1*q5j42twg03fqpGHt8szINA.jpeg" /></figure><p>Studio makes the process of data prep very easy for business users. They supply a module (<strong>Select Columns in Dataset </strong>that removes unwanted columns (the <strong>normalized-losses</strong> column in this case which has many missing values) completely). We simply connect the <strong>Select Columns in Dataset module </strong>to our automobile dataset and chose the columns to exclude.</p><p>Similarly, to remove rows with missing data, we drag the <strong>Clean Missing Data</strong> module to the experiment canvas and connect it to the <strong>Select Columns in Dataset </strong>module.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1006/1*EHJJyA1c4K1p4GdnXsYllg.jpeg" /></figure><h3><strong>Build &amp; Train the Model</strong></h3><p>This step involves splitting the data into training and testing subsets, selecting the features to base the prediction on, and choosing an algorithm that best suits the data.</p><p><strong>Split the Data and Select Features</strong></p><p>AMAZON SAGEMAKER</p><p>Splitting data into training and testing sets is accomplished with a few lines of Python code. The training data (70% of the customer dataset in this example) will be used during an iterative cycle called gradient optimization to learn model features and infer the class label from input features with the least possible error. This seems to be an advantage of SageMaker in this example as feature selection (the independent variables) is automatically performed vs. Studio where we manually select the features as you will see. The remaining test data (30%) will be used to evaluate the performance of the model later.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_7rBQMWq23K9_hXDLVy06A.png" /></figure><p>AZURE STUDIO</p><p>To split data and select features in studio, we use the Select Columns in Dataset and Split Data modules.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1014/1*BXQLiWYjuU6iQopJZvVdtg.jpeg" /></figure><p>Studio lets us select features to pass to the training algorithm module fairly simply by selecting the columns that we believe will offer predictive power and iterating until we get the desired performance. I did discover that some of the machine learning algorithms in Studio do use feature selection or dimensionality reduction as part of the training process. When we use these algorithms, we can skip the feature selection process and let the algorithm decide the best inputs just as SageMaker does. For linear regression, we select the features manually though.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/901/1*sAq5JOb__t-ir1VbHI3H9g.jpeg" /></figure><p>To split data, we will use the split data module and visually select the split percentages vs. coding that as we do in SageMaker.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/238/1*ihPGTU0RFxFkOXqxB90e0Q.jpeg" /></figure><p><strong>Train the Model</strong></p><p>AMAZON SAGEMAKER</p><p>We have predetermined that we will use the SageMaker pre-built XGBoost algorithm. Similarly to how we eliminated columns and rows in Studio in the Prepare the Data Section, we can do the same type of data cleansing and reformatting in Python in SageMaker. The code below (in cell#6) reformats the header and first column of the training data and loads the data from the S3 bucket.</p><p>Next, we need to set up the SageMaker session, create an instance of the XGBoost model (an estimator), and define the model’s hyperparameters. The code for this is in cell #7.</p><p>With the data loaded and the XGBoost estimator set up, we can now train the model using gradient optimization on a ml.m4.xlarge instance by selecting run in the Jupyter notebook using the code in cell #8.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dToxuKn1nXXxUCBo_SUXDQ.png" /></figure><p>AZURE STUDIO</p><p>To add the Learning algorithm we wish to use we expand the <strong>Machine Learning Category</strong> on the left side of the canvas and expanding the <strong>Initialize Model section</strong>. We have predetermined that we will use linear regression, so select the linear regression module and drag it to the canvas. Next we would find and drag the <strong>Train Model</strong> module to the experiment canvas. Connect the output of the <strong>Linear Regression</strong> module to the input of the <strong>Train Model</strong> and connect the training data (left port) of the <strong>Split Data </strong>module to the <strong>Train Model</strong> as shown.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/484/1*3NAO__g8XKbP5QZiF8vcrQ.jpeg" /></figure><p>Click the Train Model module, and then click Launch column selector in the Properties pane and then select the price column. Price is the value that our model is going to predict.. We move price from available columns to selected columns list.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/901/1*tcjxrrqHgggQRKtXXJCmPw.jpeg" /></figure><p>At last we can Run the experiment. We now have a trained regression model that can make price predictions and our model creation flow in Studio looks as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/644/1*Ib5R4yWa6bJnL7yBDonCXw.jpeg" /></figure><h3><strong>Test, Score and Deploy the Model</strong></h3><p>AMAZON SAGEMAKER</p><p>To test the model in Sagemaker, we must first deploy it, which is a different process than in Studio. To deploy the model on a server and create an endpoint we run the following code in cell 9 in Jupyter. To predict whether customers in the test data enrolled for the bank product or not, we would run the code in cell 10 in Jupyter.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xlk7op4pOwlGlL6rBki_0g.png" /></figure><p>To evaluate the performance, we write Python code to compare actual vs. predicted performance and produce a table of results as follows.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wXwa-YTjKea7oC9Syaa4Xg.png" /></figure><p>From these results, we can conclude that the model predicted the outcome accurately for 90% of customers in the test data, with a precision of 65% (278/429) for enrolled and 90% (10,785/11,928) for didn’t enroll.</p><p>Last, in Sagemaker, we also need to remember to terminate our session and clean up the cloud resources to eliminate further charges in our account. The following code deletes that SageMaker endpoint and the objects in the S3 bucket.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/468/1*JALk-818zN2sAXiAc8Kcmg.png" /></figure><p>AZURE STUDIO</p><p>Now that we’ve trained the Studio model on 75% of the data, we can use it to score the other 25 percent of the data to see how well our model functions. We do this by dragging the <strong>Score Model </strong>module to the experiment canvas and connecting the output of the <strong>Train Model</strong> to it. We then connect the test data output (right port) of the <strong>Split Data</strong> module to the <strong>Score Model</strong> module as shown.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/553/1*b8BQstKRmF_1jRX6haE_6A.jpeg" /></figure><p>We then run the experiment and view the output for <strong>Score Model</strong> by clicking the bottom port and selecting Visualize. The predicted prices are shown in the column Scored Labels along with all of the known feature data used by the model. The column price is the actual known price from the data set.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/772/1*Nq2V1M65KNOdVwN4WnIZhw.jpeg" /></figure><p>As with SageMaker, we want to evaluate how well our model performed. To do this we drag the <strong>Evaluate Model </strong>module onto the canvas and simply connect it to the output of the <strong>Score Model</strong>. Now when we run this experiment again, we can visualize statistical results on the mean error and R squared etc...</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/549/1*HTxZoZHwh3nzQGw8SwnC0w.jpeg" /></figure><p>After being satisfied in the accuracy of the model, Studio makes it easy to publish to model for others to use with a <strong>Set up Web Service</strong> button. This option converts the model from an experiment to a predictive experiment by eliminating data splits, training and other unnecessary steps in a model after we have decided on its features and algorithms. We run the model one last time to check the results and it is ready to go with an API key for others to use on Azure.</p><h3><strong>Summary</strong></h3><p>Both Microsoft and Amazon offer a robust process and UI-based tool to accelerate and simplify the process of machine learning model development with Azure Studio and Amazon SageMaker. But the tools are designed for totally different users.</p><p>Studio offers a beautiful drag and drop interface with simple modules to perform common functions like accessing data, cleansing data, scoring and testing models and deployment etc.. It is designed to walk the citizen data scientist and beginner through the process of building a machine learning model while shielding them from the complexity underneath of managing cloud instances, Python coding and Jupyter Notebooks.</p><p>SageMaker, was built to serve the needs of developers and data scientists who are comfortable working in a Jupyter Notebook, programming in Python and want flexibility and total control of resources. But users of SageMaker are not shielded from other cloud operational complexities like cloud instance management — knowing the size of a cluster to choose, locations and spinning down clusters when done working. These types of tasks in addition to the Python programming would make SageMaker an inappropriate choice for most business analysts trying to build a model.</p><p>But does one product produce a more accurate model than the other? I don’t believe model accuracy will differentiate one from the other as both products will let us import any algorithms desired and both products offer some automated feature selection on different models. I doubt there is a generalizable difference where one product can produce more accurate modeling results than the other consistently.</p><p>The real difference is in the user design point. SageMaker is for data scientists/developers and Studio is designed for citizen data scientists. But, Studio does also support a Jupyter Notebook interface, making it possible that data scientists could also use Studio and the cloud infrastructure for Azure Machine Learning Services to also accomplish what SageMaker offers on top of Amazon cloud infrastructure. To that end, Studio may be a more versatile choice right now for more user types.</p><h3><strong>About the Author</strong></h3><p>Steve Dille is a Silicon Valley product management and marketing leader who has been on the executive teams of companies resulting in 5 successful company acquisitions and one IPO in the data management, analytics, BI and big data sectors. Most recently, he was the CMO of SparkPost, where he was instrumental in transitioning the company from an on-premises high volume email sender to a leading predictive analytics-driven cloud email API service growing it from $13M ARR to over $50M ARR. He is currently building deep knowledge in data science, AI and machine learning by pursuing his Master’s in Information and Data Science at UC Berkeley while working. His past education includes an MBA from University of Chicago Booth School of Business and a BS in Computer Science/Math from University of Pittsburgh. He has served as a software developer at NCR, product manager at HP, Data Warehousing Director at Sybase (SAP) and VP of Product or CMO at numerous other startups and mid-size companies.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=157a08af839a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science/how-to-decide-between-amazon-sagemaker-and-microsoft-azure-machine-learning-studio-157a08af839a">How to Decide Between Amazon SageMaker and Microsoft Azure Machine Learning Studio</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 Microsoft Azure Machine Learning Studio Clarifies Data Science]]></title>
            <link>https://medium.com/data-science/how-microsoft-azure-machine-learning-studio-clarifies-data-science-8e8d3e6ed64e?source=rss-4b091aafa293------2</link>
            <guid isPermaLink="false">https://medium.com/p/8e8d3e6ed64e</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[microsoft-azure]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[linear-regression]]></category>
            <dc:creator><![CDATA[Steve Dille]]></dc:creator>
            <pubDate>Thu, 02 May 2019 15:53:04 GMT</pubDate>
            <atom:updated>2019-05-04T18:53:29.268Z</atom:updated>
            <content:encoded><![CDATA[<h4>Simple to use, but serious data science knowledge still required</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/318/1*D3QR0KTWk3_2afAyEAJkBA.jpeg" /><figcaption><strong>Two great tastes that taste great together — </strong>Azure model construction + data science knowledge</figcaption></figure><p>I’ve been dying to test drive one of the many recent tools on the market targeted at “citizen data scientists” like DataRobot, H20 Driverless AI, Amazon SageMaker and Microsoft’s new product in the cloud called Microsoft Azure Machine Learning Studio (Studio). These tools promise to accelerate the time to value of data science projects by simplifying machine learning model construction. Ultimately, this will allow data engineers, programmers, business analysts and others without PhDs to start chipping away at the massive modeling opportunity companies are eager to tap into but are limited in their ability to address due to data science skills shortage.</p><p>So I opened up an Azure account and spent some hours building a few machine learning models from the ground up using their sample data. I’ll describe my experiences here to show you how easy this tool really is to use in the hopes that others can quickly grasp its strengths and weakness. I think I am a representative candidate to be conducting this review as I am not a working data scientist today. I however am a graduate student in data science at UC Berkeley, have a CS degree, have taken several graduate level statistics and machine learning courses and can program in Python.</p><p>Let me start out by saying, I really, really…. like Microsoft Azure Machine Learning Studio. It makes the process of doing data science work, that is building, testing and deploying a predictive model for your data much easier and visual for both those getting started and for more experienced data science users. Studio clarifies the whole process by visually walking you through thinking about your data sources, connecting the data to potential model algorithm candidates, doing data cleansing and transformations, choosing features, training the model, testing it, selecting the best model and even deploying your new shiny working machine learning model as a web service in Azure for others to use. In the end, you are left with both a working model accessible via APIs and a visual, documented representation of your model for others to see and for you to continue to tune. Wow!</p><p>As you will also see, Studio is so easy to use, it makes data science seem almost deceptively simple. Studio does make the process simpler for sure, but just like Reese’s Peanut Butter cups take two great tastes to make America’s best-selling candy (according to data by Nielsen), you need both a simpler process of model construction (the chocolate) and the peanut butter inside. And that peanut butter is a healthy dose of statistical knowledge for feature determination, model selection and interpretation and even some programming skill (for more sophisticated data adaptations).</p><h3>My First Experiment</h3><p>To take the product for a test drive, I just jumped right in and followed some well thought through recipes Microsoft has for creating models and didn’t bother reading documentation until I needed to. You can create a machine learning modeling experiment from scratch, or you can use an existing sample experiment as a template form the Azure AI Gallery. For more information, see: <a href="https://docs.microsoft.com/en-us/azure/machine-learning/studio/sample-experiments">Copy example experiments to create new machine learning experiments.</a> We will walk through the process of creating an experiment from scratch.</p><p>My first model experiment was very simple and used data from one of the 39 data sets supplied from UC Irvine, Amazon, IMDB etc… It is a linear regression model to predict car prices based upon different variables such as make and technical specifications.</p><p>You enter Studio in the interactive workspace. To develop a predictive analysis model, you will use data from one or more sources, transform and analyze that data through various data manipulation and statistical functions, and generate a set of results. Developing a model with Studio is an iterative process. As you modify the various functions and parameters, your results converge until you are satisfied that you have a trained, effective model by evaluating its score results.</p><p>Azure Machine Learning Studio is beautifully interactive and visual. You drag-and-drop datasets and analysis modules onto an interactive canvas, connecting them together to form an experiment, which you run in Machine Learning Studio. To iterate on your model design, you edit the experiment, save a copy if desired, and run it again. When you’re ready, you can convert your training experiment to a predictive experiment, and then publish it as an Azure web service API so that your model can be accessed by others.</p><p>To get started, I first went to Azure Machine Learning Studio at <a href="https://studio.azureml.net/">https://studio.azureml.net/</a> where I was asked to sign in using a Microsoft account, work or school account. Once signed in, you get to a home page which looks like this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*L-M8GI3mpnKjpE9lJL39PA.png" /></figure><p>The basic layout is represented in the following tabs on the left:</p><p>· PROJECTS — Collections of experiments, datasets, notebooks, and other resources representing a single project</p><p>· EXPERIMENTS — Experiments that you have created or saved</p><p>· WEB SERVICES — Web services models that you have deployed from your experiments</p><p>· NOTEBOOKS — Jupyter notebooks that you have created</p><p>· DATASETS — Datasets that you have uploaded into Studio</p><p>· TRAINED MODELS — Models that you have trained in experiments and saved</p><p>· SETTINGS — A collection of settings that you can use to configure your account and resources.</p><p>At the top level, the recommended workflow for conducting an experiment and ultimately publishing it as a web service is as follows:</p><ol><li>Create a model</li></ol><ul><li>Get the data</li><li>Prepare the data</li><li>Define features</li></ul><p>2. Train the model</p><ul><li>Choose and apply an algorithm</li></ul><p>3. Score and test the model</p><ul><li>Predict new automobile gas prices</li></ul><p>4. Publish the model as a cloud service</p><h3><strong>Get the Data</strong></h3><p>Create a new experiment by clicking <strong>+NEW</strong> at the bottom of the Machine Learning Studio window. Select <strong>EXPERIMENT</strong> &gt; <strong>Blank Experiment </strong>and I named the experiment Automobile Price Prediction. There are many other pre-built experiments you can choose from but I chose this as a first look.</p><p>To the left of the experiment canvas is a palette of sample datasets and modules which you can search. I chose the dataset labeled <strong>Automobile price data (Raw)</strong> and then dragged this dataset to the experiment canvas. Of course Studio supports uploading your own dataset in many formats too.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aIR7XoK8Aolpi0O0bXpWuA.png" /></figure><p>One really nice feature that data scientists appreciate is the ability to get a quick look at the data columns and distribution to understand the data we are dealing with. To see what this data looks like, you can simply click the output port at the bottom of the dataset, then select <strong>Visualize</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*hPnOM2NN7wDZcnYmk0VT5w.jpeg" /></figure><p>Datasets and modules have input and output ports represented by small circles — input ports at the top, output ports at the bottom. To create a flow of data through your experiment, you’ll connect an output port of one module to an input port of another. At any time, you can click the output port of a dataset or module to see what the data looks like at that point in the data flow.</p><p>In this dataset, each row represents an automobile, and the variables associated with each automobile appear as columns. We’ll predict the price in far-right column (column 26, titled “price”) using the variables for a specific automobile. Note the histograms of each column that are given and the details on the distribution of the data in the right pane. This quick look seemed more time-consuming to find in other tools I have used.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*56hPOv08IjcWDJUGt4AKtA.jpeg" /></figure><h3>Prepare the data</h3><p>As any experienced data scientists knows, datasets usually require some preprocessing before they can be analyzed. In this case, there are missing values present in the columns of various rows. These missing values need to be cleaned so the model can analyze the data correctly. We’ll remove any rows that have missing values. Also, the <strong>normalized-losses</strong> column has a large proportion of missing values, so we’ll exclude that column from the model altogether.</p><p>Studio makes this process very easy. They supply a module that removes the <strong>normalized-losses</strong> column completely (Select Columns in Dataset) and then we’ll add another module that removes any row that has missing data.</p><p>First, we type in “select columns” in the search bar to the left and drag onto the canvas the <strong>Select Columns in Dataset</strong> module. Then, we connect the output port of the <strong>Automobile price data (Raw)</strong> dataset to the input port of the <strong>Select Columns in Dataset </strong>module by simply clicking and drawing a line between the two dots.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/347/1*bnFxk1yXJabiMriyIrv-XQ.jpeg" /></figure><p>By clicking on the <strong>Select Columns in Dataset</strong> module we <strong>Launch the column selector</strong> in the <strong>Properties </strong>pane of this module. By using the <strong>WITH RULES </strong>and begin with <strong>ALL COLUMNS</strong> settings, with a few steps, we can exclude a column name, in this case the <strong>normalized-losses</strong> column and the module will still pass through all other columns. Studio lets you <strong>double-click </strong>add a comment to a module by entering text so you see at a glance what the module is doing in your experiment. In this case I added the comment “Exclude Normalized Losses.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1001/1*q5j42twg03fqpGHt8szINA.jpeg" /></figure><p>Similarly, to remove rows with missing data, drag the <strong>Clean Missing Data</strong> module to the experiment canvas and connect it to the <strong>Select Columns in Dataset </strong>module. In the <strong>Properties </strong>pane, select <strong>Remove entire row</strong> under <strong>Cleaning mode</strong>. These options direct <strong>Clean Missing Data</strong> to clean the data by removing rows that have any missing values. I then <strong>double-click</strong> the module and typed the comment “Remove Missing Value Rows.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1006/1*EHJJyA1c4K1p4GdnXsYllg.jpeg" /></figure><h3><strong>Define features</strong></h3><p>Defining features simply means that we will select the columns (features) that we will use in the model to predict the price. Defining features requires experimentation as some features will have more predictive power than others. Some features will be highly correlated with other features and therefore not add to the predictive power of the model and these features should not be included to make the model as parsimonious as possible. A <strong>parsimonious model</strong> is a <strong>model</strong> that accomplishes a desired level of explanation or prediction with as few predictor variables as possible.</p><p>For our walk-through, we’ll keep to Microsoft’s example and assume a subset of features that may allow us to predict price:</p><p>{make, body-style, wheel-base, engine-size, horsepower, peak-rpm, highway-mpg, price}</p><p>To add these features we drag the <strong>Select Columns in Dataset</strong> module to the canvas and connect the output of the <strong>Clean Missing Data</strong> column to its input. We <strong>double click</strong> the module and type <strong>Select Features for Prediction as our descriptor</strong>. Next, click <strong>Launch column</strong> selector in the <strong>Properties</strong> pane and select <strong>with rules.</strong> We can begin with <strong>No Columns</strong> and one by one we add the column names (features) to the model’s list. Click the check mark (OK) button when done. This module produces the filtered dataset of only those features (and associated data) that we want to pass to the learning algorithm that we will add next.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/901/1*sAq5JOb__t-ir1VbHI3H9g.jpeg" /></figure><p>This sure sounds a lot simpler than the reality and complexity of optimal feature selection when you start to dig into the documentation and the data science behind it all. And in a first walk-through, we do want it to be simple so we can experience the overall flow of building a model. But let me just give you some insights so readers won’t walk away assuming this is really easy and that they should roll out Studio to every analyst in the company right away.</p><p>As you work with this product more, you’ll find that there are modules that you should use to select features and that this should be a step in your process flow after cleaning the data. Studio provides these modules for feature selection:</p><ul><li><a href="https://docs.microsoft.com/en-us/azure/machine-learning/studio-module-reference/filter-based-feature-selection">Filter Based Feature Selection</a>: Identifies the features in a dataset that have the greatest predictive power.</li><li><a href="https://docs.microsoft.com/en-us/azure/machine-learning/studio-module-reference/fisher-linear-discriminant-analysis">Fisher Linear Discriminant Analysis</a>: Identifies the linear combination of feature variables that can best group data into separate classes.</li><li><a href="https://docs.microsoft.com/en-us/azure/machine-learning/studio-module-reference/permutation-feature-importance">Permutation Feature Importance</a>: Computes the permutation feature importance scores of feature variables for a trained model and test dataset.</li></ul><p>Microsoft includes this article about the feature selection modules and how to use them if you want to see more.</p><p><a href="https://docs.microsoft.com/en-us/azure/machine-learning/studio-module-reference/feature-selection-modules#bkmk_howto">https://docs.microsoft.com/en-us/azure/machine-learning/studio-module-reference/feature-selection-modules#bkmk_howto</a></p><p>As a real-life story of how feature selection complexity can play out in modeling, here is an example of feature selection done by two enterprise architects at Microsoft’s Data Insight’s Center of Excellence. It describes the journey they went through to migrate their Excel linear regression model for financial forecasts to Studio. They ultimately succeeded in getting better forecasts from Studio and were able to publish the model as a web service making it more accessible — three cheers for Studio!</p><p><a href="https://docs.microsoft.com/en-us/azure/machine-learning/studio/linear-regression-in-azure">https://docs.microsoft.com/en-us/azure/machine-learning/studio/linear-regression-in-azure</a></p><p>But, keep in mind they had some learning and tweaking to do by understanding whether to use “Online Gradient Descent” or “Ordinary Least Squares” methods of regression and also discovered that they needed to tweak the L2 Regularization Weight depending on their data set size. They also described how they began using the <a href="https://msdn.microsoft.com/library/azure/918b356b-045c-412b-aa12-94a1d2dad90f/">Filter-Based Feature Selection</a><em> </em>to improve on their selection of initial data elements and that they also intended to test additional algorithms like<em> </em><a href="https://msdn.microsoft.com/library/azure/ee12de50-2b34-4145-aec0-23e0485da308/">Bayesian</a> or <a href="https://msdn.microsoft.com/library/azure/0207d252-6c41-4c77-84c3-73bdf1ac5960/">Boosted Decision Trees</a> to compare performance with linear regression which we will discuss in the next section. It takes time, testing and data science training to really produce the best results — even with a simple tool like Studio.</p><p>One area of improvement I would like to see is more help from Studio in this area of automatically selecting the optimal features. The terminology above does not sound like what citizen data scientists would understand. I did discover that some of the machine learning algorithms (discussed in the next section) in Studio do use feature selection or dimensionality reduction as part of the training process. When you use these algorithms, you can skip the feature selection process and let the algorithm decide the best inputs which is a step in the right direction. But knowing which algorithms do this and which don’t as well as actually performing feature selection will be a difficult, time consuming process for citizen data scientists who may not understand how to best select features.</p><h3><strong>Training the model — Chose and Apply an Algorithm</strong></h3><p>Now we are ready to train the model. In this example we are doing what is called supervised machine learning and there are many algorithms available that may offer the predictive power we seek. For example, there are classification models that will predict which category a subject row is likely to be in (is it a car or a truck?), there are regression algorithms that predict a numeric answer (like future stock price). There are 25 types of models baked into MLS for anomaly detection, classification, regression and clustering and many more that appear to be open library modules also available.</p><p>Because we want to predict price, which is a number, we’ll use a regression algorithm — <em>linear regression</em> in this case.</p><p>We train a model by giving it a set of data that includes the answer we want to predict (the price.) The model scans the data and looks for correlations between an automobile’s features and its price and captures them in the model (a mathematical equation).</p><p>Studio will allow us to use our data for both training the model and testing it by splitting the data into separate training and testing datasets. This is done by dragging the S<strong>plit Data Module</strong> to the experiment canvas and connecting it to the output of the <strong>Select Columns in Dataset</strong> module.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1014/1*BXQLiWYjuU6iQopJZvVdtg.jpeg" /></figure><p>Click the <strong>Split Data</strong> module to select it and spilt the data into two parts using 75% of the data for training and the remaining 25% for scoring as shown.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/238/1*ihPGTU0RFxFkOXqxB90e0Q.jpeg" /></figure><p>At this point we should run the experiment so that the S<strong>elect Columns in Dataset</strong> and <strong>Split Data</strong> modules have the data and latest column definitions to pass forward when we score the model. This is done by pushing the run button at the bottom of the screen.</p><p>Now it’s time to add the Learning algorithm we wish to use by expanding the <strong>Machine Learning Category</strong> on the left side of the canvas and expanding <strong>Initialize Model</strong>. Select the linear regression module and drag it to the canvas. Also find and drag the <strong>Train Model</strong> module to the experiment canvas. Connect the output of the <strong>Linear Regression</strong> module to the input of the <strong>Train Model</strong> and connect the training data (left port) of the <strong>Split Data </strong>module to the <strong>Train Model</strong> as shown.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/484/1*3NAO__g8XKbP5QZiF8vcrQ.jpeg" /></figure><p>Click the <strong>Train Model</strong> module, and then click <strong>Launch column selector</strong> in the <strong>Properties</strong> pane and then select the <strong>price</strong> column. <strong>Price</strong> is the value that our model is going to predict.. Move <strong>price</strong> from available columns to selected columns list.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/901/1*tcjxrrqHgggQRKtXXJCmPw.jpeg" /></figure><p>At last we can Run the experiment. We now have a trained regression model that can make price predictions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/644/1*Ib5R4yWa6bJnL7yBDonCXw.jpeg" /></figure><h3><strong>Predict new automobile prices</strong></h3><p>Now that we’ve trained the model, we can use it to score the other 25 percent of the data to see how well our model functions. We do this by dragging the <strong>Score Model</strong> module to the experiment canvas and connecting the output of the <strong>Train Model</strong> to it. We then connect the test data output (right port) of the S<strong>plit Data</strong> module to the <strong>Score Model </strong>module as shown.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/553/1*b8BQstKRmF_1jRX6haE_6A.jpeg" /></figure><p>Now run the experiment and view the output for <strong>Score Model</strong> by clicking the bottom port and selecting <strong>Visualize</strong>. The predicted prices are shown in the column <strong>Scored Labels</strong> along with all of the known feature data used by the model. The column <strong>price </strong>is the actual known price from the data set.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/772/1*Nq2V1M65KNOdVwN4WnIZhw.jpeg" /></figure><p><strong>Deciding if our model is a good model?</strong></p><p>The last step before we publish any model for use is to test the quality of the results. To do this we drag the E<strong>valuate Model</strong> module onto the canvas and simply connect it to the output of the <strong>Score Model</strong>. Now when you run this experiment again, you will be able to visualize statistical results.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/549/1*HTxZoZHwh3nzQGw8SwnC0w.jpeg" /></figure><p>This area is where I think this service still could be better. To select the model that is best, a user will have to iteratively run many different experiments, save the results and compare them until you get a best fit model. That requires statistical knowledge and an understanding of when to use linear regression vs. classification vs. logistical regression or some of the many open source algorithms which might be great for modeling the data. Further, if the user is really a citizen data scientist, do they really understand how to interpret these results and use them in context to decide on the best model?</p><p>In this case, for each of the reported results, being smaller is better as that indicates predictions that more closely match the data (less error). The exception being the Coefficient of Determination (also called R squared) which we seek to make as close to 1.0 as an indication of model accuracy. This model is a .91 predictive accuracy to fitting the data to the line. I’d love to tell you that is pretty good, but really the answer is it depends on your data and what you are trying to predict and the consequences of being wrong. To get an idea of how complicated this is you can read the following from Duke <a href="https://people.duke.edu/~rnau/rsquared.htm">https://people.duke.edu/~rnau/rsquared.htm.</a> Citizen data scientists will need more help from Microsoft in this area.</p><h3><strong>Publish the model as a Cloud Service</strong></h3><p>One really nice feature is how easy Studio makes it to get your model into production. For those of us who are not data engineers or IT and skilled at publishing a model in the cloud as an API for others to use, this makes getting your work out much easier.</p><p>The simplest way to publish a model is to use the <strong>Set up Web Service</strong> button and simply publish the model as a <strong>web service classic</strong>. This option converts your model from an experiment to a predictive experiment by eliminating data splits, training and other unnecessary steps in a model after you have decided on its features and algorithms. You run the model one last time to check the results and you are ready to go with an API key for others to use on Azure.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/562/1*wc28_y_nV6Rp5fRIslwljg.jpeg" /></figure><p>You can learn more about how to deploy your model here:</p><p><a href="https://docs.microsoft.com/en-us/azure/machine-learning/studio/publish-a-machine-learning-web-service">Deploy a Machine Learning Studio web service - Azure Machine Learning Studio</a></p><h3>Scalability &amp; Performance</h3><p>Deploying does raise the issues of what am I deploying to — What are the hardware resources I can use, what is my service level guarantee, is it a dedicated or multi-tenant cloud, security etc..?</p><p>Azure Machine Learning Service is multi-tenant and compute resources used on the back end will vary and are optimized for performance and predictability. Studio can be deployed on free tier with data sets no larger than 10 GB or on the standard paid tier which allows the use of many more paid resources and BYO storage.</p><p><a href="https://azure.microsoft.com/en-us/pricing/details/machine-learning-studio/">Pricing - Machine Learning | Microsoft Azure</a></p><p>One of the hot issues in data science is using GPUs to achieve very fast compute performance. I do see the Azure offers GPUs for compute intensive applications, but I don’t see a way to directly specify GPUs for Studio as it is a multi-tenant service. Perhaps the way to guarantee the compute performance needed is through the paid SLA that is part of the the standard paid tier or Microsoft may have other methods of guaranteeing GPU access that aren’t obvious in what I have read.</p><h3><strong>Summary</strong></h3><p>Microsoft has done an outstanding job of building a cloud service that clarifies, simplifies and ensures the integrity of the process of building machine learning models. Their process lays out visually a simple clear method of acquiring data, offers tools for cleansing data and choices of models. Studio goes on to require training and model scoring and will not let you proceed unless prior steps are correctly executed. Ultimately, Studio even makes deployment of models as a web service easy.</p><p>But as I said in the title, Studio is not a panacea that allows anyone to build machine learning models. Machine learning is complex and data science knowledge is still required. A user would need statistical knowledge to understand which algorithms to choose, how to choose features and to interpret the scoring results as to which model is the best fit for your circumstances. Also, to allow more flexibility modules may be inserted into the flow of cleansing and transforming data that can be custom built in R or Python etc.. This requires programming skills.</p><p>To take this product the next step for citizen data scientists Microsoft must offer more data science intelligence built in. Imagine if Studio could look at your data and what you want to predict and run through a series of algorithms, try different features, score the models and then offer up the model with best recommended fit! That would save the user a lot of time, effort, cost and require less heavy data science knowledge of the user.</p><p>I think Studio will work well for many users seeking to build models including citizen data scientists seeking a drag-and-drop solution with pre-built algorithms to more advanced enterprise users who can incorporate Studio work into an even broader ecosystem of Microsoft’s Azure Machine Learning Service. This service allows data scientists to work in a Python environment, provides more control over machine learning algorithms, deployment and supports open-source machine learning frameworks like PyTorch, TensorFlow, and scikit-learn. I look forward to working with this product more.</p><h3><strong>About the Author</strong></h3><p>Steve Dille is a Silicon Valley product management and marketing leader who has been on the executive teams of companies resulting in 5 successful company acquisitions and one IPO in the data management, analytics, BI and big data sectors. Most recently, he was the CMO of SparkPost, where he was instrumental in transitioning the company from an on-premises high volume email sender to a leading predictive analytics-driven cloud email API service growing it from $13M ARR to over $50M ARR. He is currently building deep knowledge in data science, AI and machine learning by pursuing his Master’s in Information and Data Science at UC Berkeley while working. His past education includes an MBA from University of Chicago Booth School of Business and a BS in Computer Science/Math from University of Pittsburgh. He has served as a software developer at NCR, product manager at HP, Data Warehousing Director at Sybase (SAP) and VP of Product or CMO at numerous other startups and mid-size companies.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8e8d3e6ed64e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science/how-microsoft-azure-machine-learning-studio-clarifies-data-science-8e8d3e6ed64e">How Microsoft Azure Machine Learning Studio Clarifies Data Science</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>