<?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 Setu Chokshi on Medium]]></title>
        <description><![CDATA[Stories by Setu Chokshi on Medium]]></description>
        <link>https://medium.com/@setu.chokshi?source=rss-45585d8a7d4c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*2eERnTtEQZGfGRIp.</url>
            <title>Stories by Setu Chokshi on Medium</title>
            <link>https://medium.com/@setu.chokshi?source=rss-45585d8a7d4c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 02:31:03 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@setu.chokshi/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[Getting started with Azure Bot Framework: Building and publishing your bot]]></title>
            <link>https://medium.com/@setu.chokshi/getting-started-with-azure-bot-framework-building-and-publishing-your-bot-f38a9642c65e?source=rss-45585d8a7d4c------2</link>
            <guid isPermaLink="false">https://medium.com/p/f38a9642c65e</guid>
            <category><![CDATA[bots]]></category>
            <category><![CDATA[microsoft-bot-framework]]></category>
            <dc:creator><![CDATA[Setu Chokshi]]></dc:creator>
            <pubDate>Fri, 05 Jan 2018 06:58:10 GMT</pubDate>
            <atom:updated>2018-01-05T07:36:15.097Z</atom:updated>
            <content:encoded><![CDATA[<p>The previous two blog posts (<a href="https://medium.com/@setu.chokshi/getting-started-with-azure-bot-framework-setting-up-hello-world-2b668dd6660d">Part 1</a> and <a href="https://medium.com/@setu.chokshi/getting-started-with-azure-bot-framework-understanding-the-files-and-the-framework-a9d1517943c3">Part 2</a>) you learnt the basics of building a bot and how the framework enables you to create various pieces in the bot framework. In this blog post we will take a look at creating a bot and publishing it on Azure App Services.</p><h3>Introduction</h3><p>For our scenario we will consider building an simple flower ordering system, where the end user is able to select the options from a predefined choices and set it to be delivered on a particular date with a custom message. I will be continuing on the EchoBot Template that we created earlier.</p><p>To create the order for the flowers, we will need to know the following:</p><ol><li>Which floral arrangement does the user want to order?</li><li>Who should we send it to?</li><li>When should we send it?</li><li>Where should we send it?</li><li>Special Message to be attached to the bouquet?</li></ol><p>Now that we have a template, lets create a class which contains these prompts.</p><h3>Order.cs</h3><p>This class is going to be the prompts that the user will need to answer. In this part we will also take a look at a new concept called FormFlow. The main purpose of FormFlow is to provide more simplified, guided conversations. This gives more flexibility and avoids ambiguity in the conversation. It required lesser efforts than dialogs, but we will take a look at that later in the blog.</p><p>Add a Order C# class to your project. To add a class, right-click on your project and navigate to the Add &gt; Class… option from the menu or Shift + Alt + C</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZGj6h2D4I8lDWqglmKRQPw.jpeg" /><figcaption>Add a Order Class in the project</figcaption></figure><p>Now replace the default code with the following:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/2971ca050c273ce706b5ac01228ca3e3/href">https://medium.com/media/2971ca050c273ce706b5ac01228ca3e3/href</a></iframe><p>Inside this class we have a method, which has a return type of IForm of the just created class itself:</p><pre>public static IForm&lt;Order&gt; BuildForm()</pre><p>For us to now get the information to process the order, we have a FormBuilder class that is responsible for processing the user request in the form of a flow, based on the properties defined in the Form class. For example, here we have defined the UserMessageproperty:</p><pre>[Prompt(&quot;When would you like to book your {&amp;}?&quot;)]</pre><pre>public DateTime DeliveryDate { get; set; }</pre><p>When the user sends a message to the bot, the FormBuilder runs the form and sends a message to the user saying “<em>When would you like to book your delivery date?</em>”. This happens because in the return method of the FormBuilder, the first step is Field and specifies the field name and when it is presented to the user, {&amp;} is replaced by the name of the property. So, the FormBuilder knows that the field expects a string and we defined a prompt message to that field, and the bot sends that prompt message back to the user.</p><p>We have also used choices by using an enumerated class which is presented to user when used {||}, the choices are presented as options.</p><pre>public enum Bouquet { ClassicAllWhiteArrangement, TimelessTulips, FieldsOfEurope, FloralTreasuresBouquet, FloralEmbrace }</pre><pre>[Prompt(&quot;What are the {&amp;} do you want to order? {||}&quot;)]</pre><pre>public Bouquet? FloralArrangement;</pre><p>This process of getting all the properties from the user will continue and get the user response. Finally, the FormBuilder will call the OnComplete delegate method, which will send the message to the user as “<em>We are confirming your order for Setu at 1/4/2018. It will be sent to Singapore. Your order number is d33d0a80–9971–4de1-b90a-276f9d4dc0b1</em>”</p><pre>OnCompletionAsyncDelegate&lt;Order&gt; createOrder = async (context, state) =&gt;</pre><pre>{</pre><pre>IMessageActivity reply = context.MakeMessage();</pre><pre>reply.Text = $&quot;We are confirming your order for {state.OrderFor} at {state.DeliveryDate.ToShortDateString()}. It will be sent to {state.Address} &quot; +</pre><pre>&quot;Your order number is: &quot; + Guid.NewGuid().ToString();</pre><pre>// Save State to database here...</pre><pre>await context.PostAsync(reply);</pre><pre>};</pre><p>In the above code you can also save the state in the database to actually process the order. We will keep that for a later blog post of linking the database. For now, tt just receives all the messages from the user and sends it back to the user.</p><pre>.OnCompletion(createOrder)</pre><pre>.Build();</pre><h3>MessagesController.cs</h3><p>Now lets modify the existing Message Controller file to include our new formflow. We have kept most of the code the same as the default one and made minor changes.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/bd97bb72387b53a0430ac75636d777cd/href">https://medium.com/media/bd97bb72387b53a0430ac75636d777cd/href</a></iframe><p>To initiate the FormBuilder from your Bot Framework, we need to do two things. One is to create a static method of having the return type of IDialog in the MessagesController class, which has a functionality to initiate FormFlow using the Chain class.</p><pre>internal static IDialog&lt;Order&gt; MakeRootDialog()</pre><pre>{</pre><pre>return Chain.From(() =&gt; FormDialog.FromForm(Order.BuildForm));</pre><pre>}</pre><p>The second is to call that method from the Post method.</p><pre>await Conversation.SendAsync(activity, MakeRootDialog);</pre><p>Now, run and deploy your bot application locally and test it in the bot emulator.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2mAdbsVo-Gw4XkW8BhymgA.jpeg" /><figcaption>Conversation with the Bot</figcaption></figure><h3>Deploying the Bot on Azure Web Services</h3><p>Bots are nothing but simple web service and as such they can be hosted on any platform. For the sake of simplicity, we will host it on Azure.</p><p>I will assume that you already have an Azure account. If not you can signup for free on <a href="https://azure.microsoft.com/en-us/">https://azure.microsoft.com/en-us/</a> .</p><p>Right click on the bot application and click publish</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/563/1*x97Hrzp6d0Yykmjodf6cBQ.jpeg" /><figcaption>Publish Bot to Azure</figcaption></figure><p>Choose Microsoft Azure App Service. We will be create a New Service.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p0eF36kPkKwHZ_k2ul804Q.jpeg" /></figure><p>If you have not logged into Azure, you will be prompted to do so. I have chosen a free app service plan. The free service plan will give you about 60 CPU minutes every day and 1GB of storage and RAM. For our purposes this should be more than sufficient. For the location, I have picked SouthEast Asia as that is the nearest location for me. You can choose an appropriate one for yourself.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xogQ63EKOzOPGtLWK19DWA.jpeg" /></figure><p>I have use the app name of FlowerOrderingBot. You might have to create one for yourself. The below screenshot shows the details that I have filled up. The App name that you provided will be used for generating your website name, that we will need later during the bot registration. The typical format is &lt;AppName&gt;.azurewebsites.net. In my case its <a href="http://flowerorderingbot.azurewebsites.net/"><em>flowerorderingbot.azurewebsites.ne</em></a><em>t</em> .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pFdcbMy8OQEB5oCaEfPdhQ.jpeg" /></figure><p>One you are comfortable, you can click create to continue to deploy the resources for hosting your app.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RFl5ptZNsyR3KiJl0xRaFw.jpeg" /></figure><p>You will see in the progress on the bottom right on the status of the resource creation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ayYEilqZxsI63fq2x_q_zQ.jpeg" /></figure><p>Once the resources are deployed, you will see the publish window as shown in the screenshot below. The credentials are already filled up for you and it also also selected the release configuration for deployment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lYrX0soPeY4N8poEsxGbAA.jpeg" /></figure><p>Click publish to deploy your bot. Once its completed, just like before it will open up the website for you. But you cant use the bot using the emulator yet, as you will need the credentials to access the bot. To do that, we will need to register the bot. Do take note of the Site URL created.</p><p>Registering the Bot</p><p>Logon to your Bot Developer Portal at <a href="https://dev.botframework.com/">https://dev.botframework.com/</a>. Click on Create a bot or skill. You may have to login and register, if you are using it for the first time. Use your same credentials as your Azure / Microsoft account.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QNJL416oH_LQZMqyarA2-w.jpeg" /><figcaption>Microsoft Bot Developer Portal</figcaption></figure><p>You will be then be directed to the portal.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FDWitAafk9kBQeMu1ZM8ag.jpeg" /></figure><p>Click create to register our bot. It will open up the azure portal. Select Bots Channel Registration and click create.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G56Fs-MXwzXUp0gks4Umqg.jpeg" /><figcaption>Bots Channel Registration</figcaption></figure><p>A form opens, up and I have filled in the required details.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/550/1*_O_WBqRoiFSxwNOZiBY41Q.jpeg" /></figure><p>You can provide any <strong>Bot name </strong>that you want and it can be same or different than you App Name on which you are hosting. We will need to update the Bot Name in the web.config later on.I have picked the P<strong>ricing tier </strong>to be F0, which is free. You get 10,000 messages and that should be more than sufficient for us to make use of it. The <strong>Messaging endpoint</strong> is the url of the website on which we have hosted the app. For my case it was <a href="http://flowerorderingbot.azurewebsites.net/">flowerorderingbot.azurewebsites.net</a>. I have just prefixed it with https and suffixed it with /api/messages. I have also disabled Application Insights. We will keep that for a separate blog post. Click Create when you are satisfied with the data that you have entered. In a few minutes your Bots Channel should be read. Open it up and navigate to the settings.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UApSvMxUfRh99q3YQTkW6w.jpeg" /><figcaption>Settings page for the Bots channel Registration</figcaption></figure><p>To be able to access the bot, we need the App Id and password. In the settings page, click on Manage. Note down the App Id as we will need to update it in the web.config later on. It will open up a separate page. Click on Generate New Password button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BSkcW2U2uP5BnOY6nhRRRw.jpeg" /><figcaption>Generate Password for the App ID</figcaption></figure><p>The password will be shown in a popup box. Do take note of the password as it will be shown only once.</p><p>you are done, click Save at the bottom of the page.</p><p>Now, lets go back to the code and open web.config and update the fileds with the information that we collected from the bot channel registration process.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7uJ2dgPFhHyq5h3mwgsBVA.jpeg" /></figure><p>For the current case, the BotId is flowerorderingbot; the MicrosoftAppId and the MicrosoftAppPassword are the ones that we got from the settings page. We now need to re-publish the bot. The steps remain the same, right-click on bot project, and click Publish; then, click Publish again to ensure the app published successfully.</p><p>Testing the Bot</p><p>We now have a successful running bot. Lets go ahead and test it. Navigate back to the Azure Portal and into your registered bot channel page. You will see the option of Test in Web Chat. Click on that and send the message hi.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/633/1*LjHVjPTeJUqpj3MjxiZslQ.jpeg" /><figcaption>Test in Web Chat</figcaption></figure><p>Your bot is now ready.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oYoTxFcWr4Yxit5iJ8n3KQ.jpeg" /><figcaption>Bot testing in Azure Web chat</figcaption></figure><h3>Configure Skype (and other Channels)</h3><p>Now that we have a working bot, lets publish it to Skype. To configure the channels, lets head back to the Azure Portal (<a href="https://dev.botframework.com/">https://portal.azure.com)</a>. Click your bot channel registration that you created earlier.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*w2xHAwrQNHVE3Q7EBswO_w.jpeg" /><figcaption>Connecting Bot to various channels</figcaption></figure><p>Click on Skype. You will get to the configuration page. We are not going to be changing anything here. Click Save.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rqGrZkuUWHp2WMolx-DMKA.jpeg" /></figure><p>You will need to accept the terms and conditions</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ClPkndJlK229vnWXCmPNwg.jpeg" /></figure><p>And that is all there is to it to configure your skype bot. Now lets add it to our own Skype contacts. Go back to the channels page and right click on the skype channel and cop the link. You can also click on the Skype link. It will open up a new page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/855/1*BYDskNCOt_R_fTDOiGpjhg.jpeg" /></figure><p>You will need to add the Skype bot to your contacts so that you are able to communicate with in Skype.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hj7CJyqci9s-xi9q1hiI5w.jpeg" /><figcaption>Adding the bot to the Skype Contacts</figcaption></figure><p>Once you add it to the contacts, it will open up Skype and then you are ready to chat with it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z-qOplc_4tixGIsGzYwR_g.jpeg" /></figure><p>Thats all. You have created, configured and published your bot in the Skype Channel. Now you are ready to chat with the bot.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fcg9gN1vVCjWWH-PmWliNw.jpeg" /><figcaption>Skype Conversation with the flower ordering bot</figcaption></figure><p>In the next blog post, we will see how we can add cognitive services to improve our bots understanding.</p><p>If you liked this post, don’t forget to clap.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f38a9642c65e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Kaggle Competition with Microsoft Cognitive Custom Vision Service]]></title>
            <link>https://medium.com/@setu.chokshi/kaggle-competition-with-microsoft-cognitive-custom-vision-service-45f504e7e664?source=rss-45585d8a7d4c------2</link>
            <guid isPermaLink="false">https://medium.com/p/45f504e7e664</guid>
            <category><![CDATA[microsoft-azure]]></category>
            <category><![CDATA[kaggle]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[computer-vision]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Setu Chokshi]]></dc:creator>
            <pubDate>Sun, 31 Dec 2017 16:00:38 GMT</pubDate>
            <atom:updated>2018-01-03T03:20:00.499Z</atom:updated>
            <cc:license>http://creativecommons.org/licenses/by/4.0/</cc:license>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yVuDvfq6IzNl3gn4bpcNvA.png" /></figure><h3>Introduction</h3><p>When we think training a computer vision application, often times it takes a lot of experience and compute power to be able to effectively train the neural networks. It often requires some coding experiences and knowledge of how to train the networks. Even when you are able to overcome that, it takes a few hours or days to train a network. And more often than not, the real life applications are very different from one used in the research papers.</p><p>Microsoft Cognitive Custom Vision service aims to eliminate the need for such custom training and you can just upload your images and have a custom computer vision application built just for your needs. Its so easy, anyone can do it. And, did I mention that is very fast. Even with the preview version, you can upload about 1000 images with various tags (max is 50 tags) and get a relatively good model developed with your custom use cases. Lets see how it works for a Kaggle Competition. For the uninitiated, Kaggle is a platform for predictive modelling and analytics competitions in which people compete to produce the best models for predicting and describing the datasets uploaded by companies and users. It provides some good datasets and has a very vibrant and helpful community.</p><p>I picked the <a href="https://www.kaggle.com/c/plant-seedlings-classification">Plant Seedlings Classification</a> competition. In this competition you have to determine the species of the seedling from the image. They have provided about 12 different classes of images and about 200 — 600 images per class.</p><h3>Prerequisites</h3><p>Make sure you register yourself on the Custom Vision website (<a href="https://www.customvision.ai/">https://www.customvision.ai/</a>). You can use your Azure Login to register for this service.</p><p>Once registered, you will come to an empty screen asking you to create a project</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*N0wsGV9A1qvn2_qzmdModw.png" /></figure><p>Lets start by clicking on New Project. I entered the name and the description as shown in the image below. I used a General Domain as our Plant Seedling Competition does not fit in any of the category.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VpgiQHWRniYFmqP4gYPihA.png" /></figure><p>Now we are ready to upload the images</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bSzdSjmJ7QNFDCTYbKZ0Qw.png" /></figure><p>Since we can upload only 1000 images in a project, I picked about 83 images per class (when sorted alphabetically). Lets upload images for each class.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3OJOtQ75sdKc7bHu0-Gd0w.png" /></figure><p>Select your images and assign the tags for each batch of images that are uploaded.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7Hn7avQpSGHmMg87_tHIOw.png" /></figure><p>Once you have completed the upload, your screen should look something similar.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OLlAT6Ug_DtTzfhOMn-_yQ.png" /></figure><p>And now we are ready to train. Click on the green train button to get the AI model to be developed for the images.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s23FxbKMFFsZ_Som4mhkMg.png" /></figure><p>The training takes a couple of minutes and then it will show you the results of the training. In my case the precision was around 61% while the recall was at 53%. The results are not very good, but they would do for starters.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*doIpqzjHkKoYnxZE9Sdt9g.png" /></figure><p>You can then click on the individual tag to see which images were an issue. The incorrectly classified images are marked with a bright red border around the image. Clicking on the image will give you a detailed breakdown of which classes was it predicted for.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cEbJF74BV_jq1w36kenaWA.png" /></figure><p>You can potentially consider replacing the incorrectly marked images with the ones with better quality. I did not do that. But I used the API to do the prediction for all the training images. The C# code to run this across all the training images can be found on my <a href="https://github.com/Microsoft/Cognitive-CustomVision-Windows/tree/master/Samples/CustomVision.Tools">Github</a>.</p><p>To make use of the API, you will need to know the Project ID and the Prediction API Key. You can get them by clicking on the gear button on the top right, to get the details.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*t21_09VkWey8MY2DTxpbZw.jpeg" /></figure><p>Once the prediction on the test in complete, you will find a prediction.csv file in the folder. You can use a modified version to be uploaded on the Kaggle Competition website. As expected the results are not good and you don’t get a good score on the leaderboard. But looking at 5 mins of work to get in there, its pretty awesome to get a position on Kaggle.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/978/1*kxzHTdhwuiZvFVzKxsuyHw.jpeg" /></figure><p>But if we are able to upload more images, then its very easy to get a very high score. I did a test with just 4 classes and my metrics were very high. I am sure that once it comes out of the preview it will be a super awesome service making computer vision accessible to all.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LozozQl9rcPfnrB7TCClRg.png" /><figcaption>Prediction Metrics for just 4 classes.</figcaption></figure><p>Hope you enjoyed the tutorial. If you have any specific feedback, do let me know. Don’t forget to clap or subscribe to my articles feed.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=45f504e7e664" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Getting started with Azure Bot Framework: Understanding the files and the framework]]></title>
            <link>https://medium.com/@setu.chokshi/getting-started-with-azure-bot-framework-understanding-the-files-and-the-framework-a9d1517943c3?source=rss-45585d8a7d4c------2</link>
            <guid isPermaLink="false">https://medium.com/p/a9d1517943c3</guid>
            <category><![CDATA[microsoft-bot-framework]]></category>
            <category><![CDATA[bots]]></category>
            <dc:creator><![CDATA[Setu Chokshi]]></dc:creator>
            <pubDate>Sun, 31 Dec 2017 11:31:02 GMT</pubDate>
            <atom:updated>2018-01-05T06:59:32.066Z</atom:updated>
            <cc:license>http://creativecommons.org/licenses/by/4.0/</cc:license>
            <content:encoded><![CDATA[<p>As you have seen in the previous blog post, the bot is very similar to that of a web API application. The bot application receives and responds to the POST requests using the JSON format.</p><p>It is the Global.asax.cs that drives the bot. As you can see in the code the class is derived from the HttpApplication base class and is very similar to a .NET web application. This class provides a variety of events that can be used to handle any critical tasks before or after the life-cycle event.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZXOqEDDAFiiCDuAFH6yXjw.png" /><figcaption>The base class in Global.asax.cs</figcaption></figure><p>The Application_Start() loads the configuration from WebApiConfig with the following line</p><pre>GlobalConfiguration.Configure(WebApiConfig.Register);</pre><p>The WebApiConfig class (under the App_Start folder in solution explorer) is used to configure the routes, services, handlers etc. In our case we have use the following code configures the server to receive and forward the incoming messages from the bot client to the controller class.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4c06425d803549d8c894a8bf776ba606/href">https://medium.com/media/4c06425d803549d8c894a8bf776ba606/href</a></iframe><p>If you remember from the previous post, we use <a href="http://localhost:3979/api/messages.">http://localhost:3979/api/messages.</a> When called, its forwards the request to a method tagged as POST on MessagesController. We can optionally include the Id parameter to the method as well. Controllers are endpoints or receivers of a user’s message. There can be more than one controller in a botapplication, and every controller should extend from System.Web.Http.ApiController. For bot applications using the default channels like Skype, Teams, and so on, there will always be one controller that accepts all types of messages from the user.</p><p>The application instance constructs the activity parameter from the details of the HTTP request. There are a lot of details available in the activity object.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S7eEOQBGeX5gQ09OTK9KGw.png" /><figcaption>Activity Object</figcaption></figure><p>Some of the key ones that are:</p><ul><li>Channel Type: Details of the channel used. In our case it was the emulator.</li><li>Unique ID for the request</li><li>The text and the format that it was sent in. In our case the text is “hi there” and the TextFormat is plain. Do note that it can also handle rich text formats as well.</li></ul><p>We used the RootDialog to generate our response to the input that was provided.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d63dda5a57bfd7720ccabf7188b497a6/href">https://medium.com/media/d63dda5a57bfd7720ccabf7188b497a6/href</a></iframe><h3>Dialogs</h3><p>Dialogs are the user interface for the bots. Dialogs enable the developer to logically separate various areas of bot functionality and guide the conversation flow. In our default example, we used the following code under the RootDialog.cs was used to generate the response that included the number of characters in the activity.text. This is then returned as System.Net.Http.HttpResponseMessage.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8af301fc64a072301d098c37936e2089/href">https://medium.com/media/8af301fc64a072301d098c37936e2089/href</a></iframe><p>But the dialog model is not limited to simple responses. Instead it provides various handlers to manage the entire lifecycle of multiple dialogs, interactions between the dialogs, the current dialog, the state machine for all dialogs and the loading/saving of the dialog state.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/271/1*-uzldR8wY8TFQU8oAq4gfA.png" /><figcaption>Inheritance diagram for Dialogs Source:<a href="http://bit.ly/2q4qLtq">http://bit.ly/2q4qLtq</a></figcaption></figure><p><strong>IBotData</strong>: This interface provides function definitions for managing the dialog state to either UserData or PrivateConversationData or ConversationData.</p><p><strong>IBotToUser</strong>: This interface provided the function definitions for creating and sending messages to the users.</p><p><strong>IDialogStack</strong>: This interface is responsible for managing the stack of dialogs in the conversation process. It provides support in transitioning from one dialog to another.</p><p>Dialog stack means creating a stack in which dialogs are placed on top of other dialogs. There is always a root dialog when the conversation starts with the user. This root dialog can further invoke other dialogs, and they are placed on top of the calling dialog in a stack. The dialog that is on top of the stack is the current dialog in progress and controls the conversation. Every new message sent by the user will be subject to processing by that dialog until it either closes or redirects to another dialog. When a dialog ends its execution, it’s removed from the stack, and the previous dialog in the stack assumes control of the conversation. Dialog stacks are a means and mechanism for the framework to know the hierarchy of dialogs in conversation, the current dialog, and the last dialog.</p><p>Dialog context is the entry point into the dialog framework. By the time a message from the user reaches a method within a dialog, the context is already populated with the dialog stack, the current dialog and the state for it. It is then available to every method and function in a dialog. The context helps in retrieving the state, transitions and managing the stack.</p><p>In the<a href="https://medium.com/@setu.chokshi/getting-started-with-azure-bot-framework-building-and-publishing-your-bot-f38a9642c65e"> next blog post</a>, we will look at putting these ideas into practice.</p><p><a href="https://medium.com/@setu.chokshi/getting-started-with-azure-bot-framework-building-and-publishing-your-bot-f38a9642c65e">Getting started with Azure Bot Framework: Building and publishing your bot</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a9d1517943c3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Getting started with Azure Bot Framework: Setting up & Hello World]]></title>
            <link>https://medium.com/@setu.chokshi/getting-started-with-azure-bot-framework-setting-up-hello-world-2b668dd6660d?source=rss-45585d8a7d4c------2</link>
            <guid isPermaLink="false">https://medium.com/p/2b668dd6660d</guid>
            <category><![CDATA[bots]]></category>
            <category><![CDATA[microsoft-bot-framework]]></category>
            <dc:creator><![CDATA[Setu Chokshi]]></dc:creator>
            <pubDate>Sun, 31 Dec 2017 10:01:02 GMT</pubDate>
            <atom:updated>2018-01-05T07:07:27.198Z</atom:updated>
            <cc:license>http://creativecommons.org/licenses/by/4.0/</cc:license>
            <content:encoded><![CDATA[<p>In the <a href="https://medium.com/@setu.chokshi/getting-started-with-azure-bot-framework-34d663ac1bbb">previous post</a>, you made sure you that you have the requisites before you get started. I will show you step by step on setting up your environment and building your first bot.</p><p>First Steps</p><ol><li>Visual Studio 2017: You can make use of the Visual Studio 2017 community edition from the Visual Studio website (<a href="https://www.visualstudio.com/">https://www.visualstudio.com/</a>). I am making use of the VS2017 Enterprise edition.</li><li>Download and install Bot Emulator from <a href="https://emulator.botframework.com/">https://emulator.botframework.com</a>. As of this writing the current version is 3.5.34.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AT_3T3v0tOVry7Yi3Fxx5Q.png" /><figcaption>Downloading Bot Framework Emulator</figcaption></figure><p>3. Download the bot framework application template from <a href="http://aka.ms/bf-bc-vstemplate">http://aka.ms/bf-bc-vstemplate</a>. This is required as the framework is still in review phase and is not part of the visual studio installation. Copy the zip file the the VS templates folder for C#. The templates are usually located in</p><pre>%USERPROFILE%\Documents\Visual Studio 2017\Templates\ProjectTemplates\Visual C#\</pre><p>Open Visual Studio and make sure to update all the Visual Studio (VS) extensions. You can do so by navigating to Tools &gt; Extensions and Updates &gt; Updates.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/943/1*OhKg3Ya03l4_qpVudWBBwg.png" /><figcaption>Updating VS Extensions</figcaption></figure><p>Now lets create a new C# project using the new Bot Application Template.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/943/1*tkBvFfJHraIxwj24GtKFiw.png" /><figcaption>Create new Bot Application Template</figcaption></figure><p>The existing template is a fully functional Echo Bot that takes the user text input and returns it as an output.</p><p>Without modifying the application, lets just build (Build &gt; Build Solution or F6) and run the bot (Debug &gt; Start without Debugging or Ctrl +F5). Visual studio will automatically load your default browser and open up the page at <a href="http://localhost:3979.">http://localhost:3979.</a> Note that the port number will vary from system to system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/810/1*yyn7ndl0I_u4oPlwShoBmA.png" /><figcaption>Bot Landing Page</figcaption></figure><p>Now lets open the Bot Emulator Framework. This the interface that you will use for testing and debugging the bot applications during the development.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/954/1*0V1kZPH2C87NcVeDd6ECpQ.png" /><figcaption>Bot Emulator</figcaption></figure><p>Lets interact with the default bot that we created. Make sure that you are still running the bot. As you can see from the landing page the end point of your bot is available <a href="http://localhost:3979/api/messages.">http://localhost:3979/api/messages.</a> Copy this into the bot emulator and click connect.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/954/1*yISmg3zjFFqvdlP7NBhLuQ.png" /><figcaption>Setting the Bot Api</figcaption></figure><p>Now you are ready to interact with the bot. Type in your message “<em>Hello World</em>”. The bot immediately responds back to you with “<em>You sent Hello World which was 11 characters</em>”. You will also notice in the logs of you the end point APIs are used to interact with the bot. Clicking on the HTTP Response codes and messages, you can follow the steps that were used to interact with the Bot and the payloads for each in the JSON format.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*t73PRzRuynAD-7H8txX6qA.png" /></figure><p>Side Note:</p><p>If you seeing the Warning in the image below, it means that the references in your application needs to be updated. Right click on references in the Solution Explorer and Click “<em>Manage NuGet Packages…</em>”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/414/1*mKJZ_OCoHZXLs83gfKOViQ.png" /></figure><p>Click on Updates and make sure to update the Microsoft Bot Builder.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LB3LoxkOH_POP0XHRKZuow.png" /><figcaption>Update Microsoft Bot Builder</figcaption></figure><p>Rebuild the solution and you will notice that the warnings have disappeared.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gH4AUpsqQRJeenwz9Gtt2A.png" /><figcaption>Without SDK warnings.</figcaption></figure><p>That’s all there is to it to get started with Azure Bot Framework. In the <a href="https://medium.com/@setu.chokshi/getting-started-with-azure-bot-framework-understanding-the-files-and-the-framework-a9d1517943c3">next blog</a>, I will explain on what each of these files are and what purpose does it serve.</p><p>If you want to get your hands dirty, jump on to the <a href="https://medium.com/@setu.chokshi/getting-started-with-azure-bot-framework-building-and-publishing-your-bot-f38a9642c65e">part 4</a> where we will be creating and publish a flower ordering bot.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2b668dd6660d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Getting started with Azure Bot Framework: Introduction]]></title>
            <link>https://medium.com/@setu.chokshi/getting-started-with-azure-bot-framework-34d663ac1bbb?source=rss-45585d8a7d4c------2</link>
            <guid isPermaLink="false">https://medium.com/p/34d663ac1bbb</guid>
            <category><![CDATA[bots]]></category>
            <category><![CDATA[microsoft-bot-framework]]></category>
            <dc:creator><![CDATA[Setu Chokshi]]></dc:creator>
            <pubDate>Sun, 31 Dec 2017 04:10:52 GMT</pubDate>
            <atom:updated>2017-12-31T06:08:00.716Z</atom:updated>
            <cc:license>http://creativecommons.org/licenses/by/4.0/</cc:license>
            <content:encoded><![CDATA[<p>As I continue with the getting started with Azure Machine Learning series, I also wanted to link in the application of Machine Learning and AI. Developing the bots linking in various ready to use AI services (aka Cognitive services) would be a better way to learn and expand your knowledge both in the theory and the applications.</p><p>In this section I will walk you through how to setup your own bots and get them ready. Though I will expect the reader to be familiar with basic programming concepts and where the content is difficult, I will provide some step by step introduction.</p><h3>Conversation as a Platform</h3><blockquote>Conversation as a Platform (CaaP) is the future of Microsoft</blockquote><blockquote>— Satya Nadella at the 2016 Build Conference.</blockquote><p>What he meant what that he wanted to see more conversation interfaces like Cortana that allow you to make human like conversations. Human-like conversations is an approach in which the application can understand and respond to what the user is saying. They make it very easy to book a flight, order flowers or even setup appointments for you.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UexrDUKkor_6j_S2isR7EQ.png" /><figcaption>Example of a bot used by 1–800-Flowers using Facebook messenger</figcaption></figure><p>The most selling feature of bots is that everything happens right in front of you. You do not have to switch screens, navigate, or even scroll up and down to figure out a way to interact with the application. Simple words like Yes, No, or OK can get things done for you. Bots are expected to be intelligent and context aware, and it makes no or less sense to have a bot with limited set of responses. So how do we define a bot.</p><blockquote>A bot is a software application that is automated to do a predefined set of tasks using human interactions (text and voice) through any medium, like a browser, desktop application, or phone.</blockquote><p>Bots can further be classified into two categories, namely Chat Bots and AI Bots. Chat bots are usually rule based and can serve a single purpose where the options and the type of interactions are limited. The AI bots as the name suggests are backed by Artificial Intelligence that can determine the actions like making recommendations based on your purchase history or can understand the context when you mention “Repeat the order”. It can distinguish that you want to repeat the last placed order not actually repeat it before placing the order.</p><p>With the current technology, the bots can be integrated into existing message platforms like Skype, Facebook Messenger, Slack, and so on. And with the help of Microsoft Cognitive Services has introduced a multitude of intelligence-based APIs that are effective and easy to integrate within your bots.</p><h4><strong>Introduction to Microsoft Bot Framework</strong></h4><p>Microsoft Bot Framework is a comprehensive offering from Microsoft to build and deploy intelligent and intuitive bots using Conversation as a Platform(CaaP). You can integrate your bots with usual services like Skype, Slack, SMS or email.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6bDeujeTkEzjGyMVctwdCQ.png" /><figcaption>Microsoft Bot Framework</figcaption></figure><p>The framework consists of four key pieces:</p><ol><li><strong>Bot Builder SDK</strong>: Available for Node.js and C#. This provides support for user management, session and state management, authentications and conversation models. The SDK provides dialogs with powerful systems that are composable and isolated. The built in dialogs also can be supported by the powerful AI framework like LUIS. Since they are stateless, it will also allow use the scale the bots vertically. For other languages the developer can leverage the easy to use REST API. Do note that if you are using the REST API you do need to implement the security procedures to establish trust between a bot and the Bot Connector.</li><li><strong>A bot connector</strong>: Think of it as your bridge between your bot and the various channels the use will use to communicate with your bot. It also manages the conversation state.</li><li><strong>A developer portal</strong>: Allows you to connect your bot to various channels. It uses the Rest API to communicate with the bot API.</li><li><strong>A bot directory</strong>: A list of bots published by the developers. You can search and connect with any both available in the directory in your favorite channel.</li></ol><h3><strong>Building your bots</strong></h3><p>Building a bot is no different than developing any software application. The only difference being that everything for the bot is developed around the conversation part with the user. You will see how easy it is to get started with developing your own bots.</p><p>Before we start, do make sure you have the following ready with you</p><ol><li>A Microsoft (duh!) email account.</li><li>An Azure subscription. You can avail of a free trial at <a href="https://azure.microsoft.com/en-us/">https://azure.microsoft.com/en-us/</a></li><li>A developer account with services like Skype (<a href="https://dev.skype.com/">https://dev.skype.com/</a>) or Slack (<a href="https://slack.com/developers">https://slack.com/developers</a>). There are others as well, but I will primarily use these two for my examples.</li></ol><p>In the next blog post I will cover on setting up the Bot Framework and building your first bot.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=34d663ac1bbb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Getting started with Azure Machine Learning]]></title>
            <link>https://medium.com/@setu.chokshi/getting-started-with-azure-machine-learning-51713cebc3cd?source=rss-45585d8a7d4c------2</link>
            <guid isPermaLink="false">https://medium.com/p/51713cebc3cd</guid>
            <category><![CDATA[decision-tree]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[azure]]></category>
            <category><![CDATA[azure-machine-learning]]></category>
            <dc:creator><![CDATA[Setu Chokshi]]></dc:creator>
            <pubDate>Sun, 05 Nov 2017 10:08:49 GMT</pubDate>
            <atom:updated>2017-11-05T10:08:49.837Z</atom:updated>
            <cc:license>https://creativecommons.org/licenses/by-sa/4.0/</cc:license>
            <content:encoded><![CDATA[<p>This is the blog version of my Azure Machine Learning talk series being held in Singapore.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TC2AG-EtMdxY_hSYA2BWpg.jpeg" /><figcaption>A tree generated in Azure ML for the Pima India Diabeters dataset</figcaption></figure><h3><strong>Introduction and Motivation</strong></h3><p>If you are reading this then you probably understand the need and the importance of machine learning. You probably are itching to get started with machine learning. But everywhere you look, job boards, tutorials, etc. you find that there ask is always for a PhD or having expertise in statistics, linear algebra or programming or any combination of the three. Even when you want to just get started, the courses start off with a deep dive into Math. There is no doubt that the math is important, but when you are starting out, trying to understand and build intuition about the machine learning algorithms, simple explanations of the models help.</p><p>I recently attended the awesome Deep Learning Tutorials by Jeremy Howard and Rachel Thomas of <a href="http://www.fast.ai/">fast.ai</a> . In the introduction they gave an analogy that has stuck in my mind. It goes this way:</p><p>Lets say when you were a kid and wanted to get started playing a sport, like football or even hit the ball. You went and told your parent that “Hey, can we get started with football”. Your parent did not go “Hey, before you hit your first ball, let me explain you the rules” Or “Let me teach you the physics of the ball movement” Or “Lets start to understand how this ball is made”. You, most likely, took a ball, went to the field and got started. No physics, no rules. You just got started. And once you started to love the sport, you learnt the rules. You learnt the physics. You learnt all the nitty gritty details that was to learn about the sport. But the first step was to build an interest in the sport.</p><p>I am hoping that these set of tutorials will help you develop an interest in machine learning and help you kick start you love and passion for the area. In the course of this blog series, we will build not only the intuition for the models, but take some time to understand the math, hopefully in a fun way. I will try to build most of the models in Excel to explain the math and how and why it works (where its possible).</p><p>And that is also the reason and my motivation to pick Azure Machine Learning (Azure ML) as the base to help you get started. I do not want to overwhelm you with the programming details, where most likely you will copy paste the code. But hopefully with Azure ML you will develop and gain an intuitive understanding to help you build your super awesome chat bot or a machine learning model.</p><p>Azure ML also allows you to take your model into production with a few clicks of a button. So in case you plan to continue towards using Azure ML, you can be assured that your learning and models won’t go to waste.</p><p>So lets get stared.</p><h3><strong>5 questions data science can answer for us</strong></h3><p>Before we get going, lets spend sometime to understand what machine learning can do for us. Though the number of applications are large, all of them can be grouped into 5 questions that data science can answer for us.</p><h4>1. Is this A or B? or C or D…?</h4><p>You would have seen a lot of examples of these types of algorithms in daily life. For example, when you click a picture, how does the app know that you are a male or female? Have you see the results from <a href="https://how-old.net/">how-old.net</a>? With a fairly decent accuracy its able to predict whether the person is male or female and their age as well.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/365/1*Ut956rqvebQAguWPgRATzw.jpeg" /><figcaption>Output of How-Old.Net</figcaption></figure><p>But if the person, as you see in the image above, changes their expressions, suddenly the tool goes from identifying the same person as a young female to an aged man. There are limitations to what classifications can do and we will cover them as we get deeper into the classification models.</p><p>When classification is done between two classes, Is this A or B, its called binary classification or two class classification. When you have more than two classes its called multi-class classification (Is this A or B or C or D or…).</p><h4>2. Is this weird?</h4><p>This question is usually answered by a family of algorithms called Anomaly detection algorithms. In this you would want to (quickly) identify which are the weird data points that are not only rare and hard to find but they could have a material impact on the process. Lets take a couple of examples:</p><ol><li>Am I being hacked? Out of the total network traffic, the intrusion traffic is going to much less. But if not detected, can wreck your critical infrastructure.</li><li>Detecting fraudulent transactions on your credit card to prevent abuse. Of the total transactions, the fraudulent transactions amount to a very small number.</li><li>Medical diagnoses to identify if the pixels represent a cancerous growth. Again, of the total pixels in an image, you will be looking at a very small number of pixels to identify cancerous cells.</li></ol><p>Unlike classification algorithms, a metric of accuracy would not be a correct way to evaluate the model. Why? Lets take another example. Lets say you are trying to diagnose a disease that occurs only 1 in a million people. If you were using accuracy as your metric, then your best algorithm just says there is no disease as it will have the accuracy or 99.9999%. But that is incorrect. Instead we end up using a metric called Detection Rate (Recall). Recall can be defined as the ration between the correctly identified ‘anomalous’ events to the total number of ‘anomalous’ events. So in our example, the Recall would be 0 as we failed to identify the diseases in that one person.</p><h4>3. How much? or How many?</h4><p>When you are looking to predict a number to answer the questions of how much or how many, you will refer to the regression algorithm family. If you have heard about Linear regression or Ordinary Least Square (OLS) regression, then you have already know quite a bit about them. These have often been used for example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*6ARZgyxzxY3-RIHjrv2FEw.gif" /><figcaption>Weibull curve (Source: <a href="http://www.weibull.com/hotwire/issue14/relbasics14.htm">http://www.weibull.com/hotwire/issue14/relbasics14.htm</a>)</figcaption></figure><ol><li>What effect of price and promotion on the sales of a product?</li><li>How many parts of an engine will fail in next two years?</li></ol><h4>4. How is this organized?</h4><p>When you want to understand how is the underlying data organized and you don’t have examples that you have know outcome for. Clustering algorithms help you gather a bunch of data and separate them into groups with similar properties or characteristics. You can then explore these groups to understand what makes them similar (or different). By exploring these groups you can then clearly extract the insights that will help you make better decisions.</p><p>These are useful when you are trying to recommending movies based on their viewing habits or even grouping your financial investments to ensure a diversified portfolio.</p><p>Clustering algorithms fall into a family of Unsupervised Learning. This means that the data is not labeled and does not have a known result. For example, in your clustering algorithm you can determine the number of groups your data will be clustered into but cannot dictate what the groups will be clustered into.</p><h4>5. What should I do now?</h4><p>When you are trying to determine what should I do now, you will want to explore the family of algorithms called “Reinforcement Learning Algorithms”. You would have (un)knowingly used these algorithms while training a pets. When they do a good thing, you give them a small treat. Or in a your day to day life where good behaviors are encouraged either verbally or monetarily.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/979/1*-h_t8QJ8mknUM2BAzY9L3w.jpeg" /><figcaption>nuTonomy self driving car</figcaption></figure><p>Reinforcement algorithms learn as they go. They often learn based on the examples and training that is provided. For example, the famous AlphaGo played a lot of games against itself to help it determine the best possible move(s).</p><p>In case of self driving car, it needs to make decision whether to stop or continue when it sees an object on the road.</p><p>How you ask a question is a clue to get you to the right family of algorithms that will help you answer your question. And yes make sure that you have the data to answer your question.</p><p>I am planning to the following algorithms in detail with the basics worked out in excel. We will also explore these algorithms in Azure Machine Learning to firm up your grasp on them.</p><ol><li>Classification Algorithms:</li></ol><ul><li>Decision Trees which will include decision forest, decision jungles and boosted decision tree.</li><li>Support Vector Machines</li><li>Logistic Regression.</li></ul><p>2. Recommendation system algorithms: We will cover the data sets where we have explicit ratings data like movie ratings and come up with near state of the art results with the algorithm available on the Azure Machine Learning.</p><p>3. Regression algorithms.</p><ul><li>Linear Regression</li><li>Decision Forest and boosted decision tree.</li></ul><p>4. Anomaly detection</p><ul><li>Support vector machines</li><li>K-Means</li></ul><p>These cover 13 algorithms out of the 24 that are available in Azure Machine Learning platform. If time permits, I will cover the rest.</p><p>One more thing, a sharp eyed reader would have noticed that some regression algorithms are used for classifications and some of them have been used in various other families. Don’t worry, we will cover them as we go along and will explain the how’s and the why’s as well.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=51713cebc3cd" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>