<?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 Tanya K. Kumar on Medium]]></title>
        <description><![CDATA[Stories by Tanya K. Kumar on Medium]]></description>
        <link>https://medium.com/@tanikkumar?source=rss-a355c699587b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*kCI1WQw5UWK8VVIHFwd0xA.jpeg</url>
            <title>Stories by Tanya K. Kumar on Medium</title>
            <link>https://medium.com/@tanikkumar?source=rss-a355c699587b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 20:56:28 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@tanikkumar/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[Elements of Machine Learning — A glimpse]]></title>
            <link>https://medium.com/@tanikkumar/elements-of-machine-learning-a-glimpse-f6933d7d1a1b?source=rss-a355c699587b------2</link>
            <guid isPermaLink="false">https://medium.com/p/f6933d7d1a1b</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[one-fourth-labs]]></category>
            <category><![CDATA[expert-systems]]></category>
            <dc:creator><![CDATA[Tanya K. Kumar]]></dc:creator>
            <pubDate>Sun, 10 Feb 2019 17:51:22 GMT</pubDate>
            <atom:updated>2019-02-10T18:15:53.314Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Elements of Machine Learning — A glimpse</strong></h3><p>Getting a computer to perform a task using various models and by learning from data without using explicit instructions, is referred to as Machine Learning. Let us try to understand this with an example.</p><h4><strong>The Rainfall Estimation Example</strong></h4><p>I am currently working on a project that deals with the estimation of rainfall using a weather radar. The radar sends signals (electro-magnetic waves) into the atmosphere that return to the radar upon striking water molecules. The power of the returned signal gives us a parameter called reflectivity. There exists a relation between reflectivity and water content or rainfall that is unknown to us. What I would like my computer to do is to be able to infer this relationship using given data and to generate an accurate estimate of rainfall on its own without me having to give it an algorithm to compute rainfall. This would be an example of Machine Learning.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/663/1*RSS7bZxiT2i4-GQ6sHElOA.jpeg" /><figcaption>Functioning of weather radar (Source: <a href="https://www.metoffice.gov.uk/">https://www.metoffice.gov.uk</a>)</figcaption></figure><p>The purpose of this post is to create an understanding of the various elements involved in solving tasks as the one mentioned above using Machine Learning. But, before we delve into the aspects Machine Learning, let us have a look at its predecessor and why it is not efficient.</p><h4><strong>Expert Systems — Machine Learning Predecessor</strong></h4><p>Expert systems are computer systems that solve complex specific tasks by making decisions depending on the nature of given data, much like a human who is an expert in a field. This is accomplished mostly using various if-then-else statements given by a human.</p><p>Going back to the rainfall estimation example, say there exists an expert in radar meteorology who can say that reflectivity values in a particular range will amount to heavy rainfall whereas the values belonging to another range will give us minimal rainfall, from his past experience and knowledge. This logic can then be implemented as an expert system using a few conditions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/365/1*mSHzph_nOcPPiQBrsO1S1A.png" /></figure><p>This seems like a good enough model when data is not too vast or when just a classification of rainfall is sufficient. But, this system isn’t always the most viable option. What happens when data is so vast that the ranges cannot be clearly described, or when an actual value of rainfall is required, not just a classification. The quality and quantity of rainfall also varies from season to season. This leads to possibility of the existence of a changing relationship between reflectivity and rainfall. These and a few other limitations of expert systems brings us to Machine Learning.</p><h3><strong>Machine Learning — Its indispensable constituents</strong></h3><p>Unlike Expert Systems, in Machine Learning, the machine does not know any rules. It deals with figuring out a model that best describes the relationship between various parameters of given data. The task of describing of Machine Learning is best accomplished with a description of its essential components:</p><h4>1. Data</h4><p>For a machine to learn anything it needs access to a lot of data. In current times, plenty of data is easily available (though obtaining radar and rainfall data from concerned authorities is a Herculean task). However, it should be noted that the data must be numeric in nature or machine readable and usable. For example, it is impossible for the machine to learn the relationship between reflectivity and rainfall if only either data is available .In short several sets of input and output data must be available. If not, it is referred to as unsupervised Machine Learning. In this type, data could be clustered into various groups by identifying patterns and nothing more.</p><h4>2. Task</h4><p>Task is a description of what exactly you want to do with given data. In our example, we want the machine to predict the rainfall given the reflectivity. Another example would be deciding whether or not an obstacle exits in the path of a self-driving car using images of the path ahead. It is a definition of what the input is and what the output should be.</p><h4>3. Model</h4><p>The relation between the input and the expected output is called a model. The actual relation may be unknown to us though, several approximate ones may exist. A Machine Learning engineer needs to provide the machine with these approximate relations. This is quite a job as most real data is very high dimensional and may be difficult to plot or visualise. Nevertheless, the engineer has the freedom to choose a wide variety of models, as modern computers perform computations and come up with results quickly.</p><h4>4. Loss Function</h4><p>This is a function that helps decide which of the approximate models generate results closest to the actual model. Some examples of this function are: Squared Error Loss, Cross Entropy Loss and KL Divergence. The loss function we used in our rainfall analysis is the Squared Error Loss. This is the most commonly used function. This method provides the sum of the errors in predictions of all the input-output pairs. The differences between predicted result and actual value are squared before being added to avoid cancellations due to sign change.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yhuN0WdVY75PNY_jcaYV2Q.png" /></figure><h4>5. Learning</h4><p>This is the process of estimating the coefficients or parameters of the best chosen model. The parameters are chosen such that output of the model is as close as possible to the actual value. A brute-force method that tries out all possible values of all parameters is impractical. To do this efficiently, we need to optimise (here, minimise) the loss function with respect to the parameters. Various optimisation and learning algorithms are available including gradient-descent algorithm, Adagrad, RMSProp etc.</p><h4>6. Evaluation</h4><p>It is a way of seeing how well the Machine Learning model works. One way is to compute accuracy. Accuracy is a percentage that gives an idea as to how correct the predictions are. This can also be computed by giving the model three tries. If any one of the three trials gives a correct value, it can be considered an accurate measurement. When large number of values are used in the computation, this seems to be a fair enough estimate of correctness. Evaluation may seem similar to the loss function. It is different in the fact that it computes correctness of predicted output using new data as opposed to the training data (input-output data) using which loss function is computed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/764/1*B2wFeAH7ZEsIZTARNKp6qA.png" /></figure><p>The overall process can be summarized as:</p><ul><li>Human collects and curates usable data (both input and output).</li><li>Human defines the task (what output he expects).</li><li>Human gives a set of approximate models.</li><li>Human chooses appropriate loss function.</li><li>Machine chooses best model and parameters.</li><li>Evaluates the correctness of the chosen model and parameters.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YarFCB__MCcAITkdSlDmfg.jpeg" /></figure><p><em>The inspiration for this post has been the course on Deep Learning offered by </em><a href="http://www.onefo/"><em>One Fourth Labs.</em></a><em> (</em><a href="https://padhai.onefourthlabs.in/">https://padhai.onefourthlabs.in/</a>)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f6933d7d1a1b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>