<?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 Manish Dharod on Medium]]></title>
        <description><![CDATA[Stories by Manish Dharod on Medium]]></description>
        <link>https://medium.com/@manishdharod?source=rss-8ef50c43940a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*OHfz-KdfktRXS5lM.jpg</url>
            <title>Stories by Manish Dharod on Medium</title>
            <link>https://medium.com/@manishdharod?source=rss-8ef50c43940a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 11:33:59 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@manishdharod/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[Why does any discussion on ML always include some math?]]></title>
            <link>https://medium.com/@manishdharod/why-does-any-discussion-on-ml-always-include-some-math-e0c8770d4a94?source=rss-8ef50c43940a------2</link>
            <guid isPermaLink="false">https://medium.com/p/e0c8770d4a94</guid>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Manish Dharod]]></dc:creator>
            <pubDate>Sun, 20 Aug 2017 04:18:08 GMT</pubDate>
            <atom:updated>2017-08-20T04:18:08.789Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ivv1wt-bwV9cExNKIZZrEA.png" /></figure><p>Coming from a traditional programming background, I struggled with this question quite a bit initially when I started to learn and understand ML. When I heard anyone talk about ML, they always talked about math to a certain degree. It was as if that ML is actually math but disguised as programming :). It maybe sounding like I hate math but its mostly because I was not trained in math and in traditional programming there is hardly any serious math that is needed to understand, learn and practice it.</p><p>After spending few months pondering on this, I have 2 ideas/theories to explain this….</p><h3>1. Abstraction of math is still kinda missing in ML</h3><p>So if you go back in time, to the earliest days of computers, the programming was done as a set of boolean algebra steps being performed on hardware. It was assembly language. At that time, you needed to have an understanding of boolean algebra which is basically math. Slowly we were able to create tools that could take a more abstract level language instructions and convert them into assembly language and so did not worry about boolean algebra. Fast forward to now, we have many layers of abstraction on top of the assembly language. This means we don’t have to use boolean algebra to understand and learn programming.</p><p>I think that this applies to ML, in the sense that we are in the earliest days of ML (even though it has existed for many decades). There has recent progress to move to a more abstract level language constructs like maybe the Tensor Flow from Google. But we are still far away from the point when we won’t have to use math at all to understand and learn ML. We are not there yet!</p><h3>2. ML Is Fundamentally ‘Math’!</h3><p>The approach to solving any problem in traditional programming is logic. While the approach to solving problems in ML is fundamentally rooted in Math.</p><p>At a conceptual level ML is nothing but a machine automatically figuring out the function f given sample inputs and with (supervised) or without (unsupervised) the expected y.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e0c8770d4a94" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How is Machine Learning different from traditional programming?]]></title>
            <link>https://medium.com/@manishdharod/how-is-ml-different-from-traditional-programming-938448468684?source=rss-8ef50c43940a------2</link>
            <guid isPermaLink="false">https://medium.com/p/938448468684</guid>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Manish Dharod]]></dc:creator>
            <pubDate>Mon, 14 Aug 2017 03:28:29 GMT</pubDate>
            <atom:updated>2019-04-23T02:37:20.425Z</atom:updated>
            <content:encoded><![CDATA[<p>If you are coming from a software background or you understand how software/programs are written today, this is a common question that comes to mind especially when you hear about Machine Learning (<strong>ML</strong>). To get to the answer, however, its important to layout and understand the progression of computation in general. This will make it much easier to understand the shift in paradigm</p><h3><strong>Computation</strong></h3><p>Let us start off by talking about computation. Computation can be simply defined as ‘information processing’. So in a generalized way, you have some information and you do something to it to generate some other type of information. Say you want to multiply two numbers. So the computation involves taking those two numbers as inputs, ‘processing it’ and generating the desired output.</p><h3><strong>Computers and ‘Traditional’ Programming</strong></h3><p>Now let&#39;s move onto computers which are basically machines that we invented to do computations i.e. process information to generate the desired result eg. multiplication of two numbers. Modern day computers do that using general purpose hardware (called CPU) that is ‘programmed’ to do different types of computations (multiply, add, divide, etc.) Without going into too much of detail, if you we were to explain it in a general way, at its basic level, programming involves writing rules using logic and loops. For the most part, today, this is done by writing code/higher level abstraction of commands using programming languages like Python, Java and others. This code is then translated into the set of instructions that the hardware understands to then generate the output in the desired format. I am going to call this current paradigm of using logic and loops written in high-level programming languages like Python or Java etc to tell the computer what to do, as ‘<em>Traditional programming</em>’. I have also seen this being referred sometimes as <em>rule-based</em> programming.</p><p>One way that the computer achieves this by adding the first number n times where n is the second number. It uses local memory to save the sub-results on the way to the final computation. This requires the computer to have some sort of number representation (how the information is represented to be able to process it), ability to do basic logic and loop operations and have some memory. If you think about the evolution of the invention of computers, it seems clear (in the hindsight) that humans invented it by thinking about it in a very logical fashion and hence developed something that gives precise and predictable output every time.</p><p>It wouldn’t have made much sense to invent a device that solves such a problem using probability and learning from trial and error. Why would you want to do that when you can use logic and loops plus some memory to get a precise answer with 100% prediction. This use of logic and loops with memory etc works great until you hit certain problems where the need for computation resources (capacity and speed of CPU, the capacity of memory etc) is so high that this approach of using logic and loops breaks down. Image recognition is one such example. It would require the best super computers to take a say a billion images and categorize them as having different objects, scenes etc (even for a narrow application of a self-driving car for example). And the reason for this becomes very obvious once you start trying to solve this with logic and loops. Andrew Ng has done a good job (though in a very brief manner) to explain the issue here.</p><p>On the other hand we already that even a small kid can recognize images fairly easily in a very young age when the kid&#39;s brain is not even a 3-pound object yet. So that begs the question of how? How in the world that a piece of 3-pound object learn and master this so effortlessly? That&#39;s when we likely realized that the brain must be doing it in a very different way.</p><h3><strong>Human Brain</strong></h3><p>Before we go to ML, its must for us to understand where does the idea of “ML” comes from? For that, we need to segway into the human brain. Based on how we defined computation above, its not very hard to see that our human brain is really a computation device. As an example, the human brain also can multiply two numbers and must be processing those numbers in some way to generate the desired output. In fact, its fairly obvious that it may have been the other way round, meaning that the human brain was the reason why we got motivated to invent computing machines in the first place.</p><h3><strong>‘Computation’ by Human Brain</strong></h3><p>So did we end up inventing computers based on how the human brain works? The answer is NO. There may have been other reasons but my guess is that the key reason is that when we invented computers, we hardly knew how the human brain works let alone replicating it into the machine?</p><p>Let us understand the difference in the approach of our existing computers and how the human brain is likely working (based on our observation, intuition and now with more clarity on the building blocks of the brain including neurons, synapses, etc.)</p><p>To do this, let&#39;s take the example of multiplying two numbers. How does our brain do that? To develop the intuition for this, let&#39;s see what we do to teach multiplication to our kids? A toddler&#39;s brain learns addition or multiplication through a combination of observation, language and fundamentally <em>pattern recognition</em>. We teach our kids to remember multiplication tables. They then develop the intuition behind it only later as they understand what multiplication really means. In other words, they don’t necessarily learn multiplication by way of a logical progression of adding something x number of times for example.</p><p>To generalize this, you can say that the brain got some inputs (the two numbers), it was told that the answer to the multiplication is y. So it ‘learned’ to recall the answer y in the future when it is asked to multiply those 2 numbers again.</p><p>Let&#39;s take this a lot further, all the way to recognizing animals, objects, humans, etc that a toddler can easily do with input coming through his eyes and processed in milliseconds by its brain to recognize it. But as it turns out it&#39;s super hard for even the best supercomputers of today to do with the traditional programming approach of using logic and loops! This can be easily by understanding what it takes to recognize an image with logic.</p><p>This begs a question then how did we end of invent the present day computing devices that use logic ‘gates’ (AND, OR, NOR etc.) at the hardware level that led to higher level coding/programming languages of today. I honestly haven’t researched this part. Nonetheless, we are where we are. Let us fast forward to the point where we figured out the key computing element/hardware within our brain is a neuron. And as we started figuring how it works, 1960s when we started creating computing machine that tries to replicate the basic understanding of the neurons</p><h3><strong>Traditional Programming</strong></h3><p>Contrast that with our human brain, it becomes fairly obvious to see that at a fundamental level, the human brain is also really a computing device. As an example, you can use a computer to multiply two numbers and you do the same thing using your brain. So the obvious question is whether the human brain also works like our computer with basic logic functions at its core and then those core logic functions abstracted out to higher order functions like multiplication, comparison etc. The interesting question is whether the human brain does that multiplicatio in the same way as our modern day computers? In other words, is human brain also work with certain types of problems or computation cannot be easily solved or done using logic to do a lot of To get to this question, first, let&#39;s write down a generalized definition of what a program does? To put it simply, a program tells the computer how to generate the desired output/s y for a given set of input/s x. To put this in Mathematical terms, a program tells the computer how to perform a function f on inputs x to generate y. So you are basically solving y = f(x). Even though higher level programming hardly requires you to think in terms of Math, I am using Mathematical representation mostly because given how I have understood the intuition behind ML, logical and easier approach to explain the difference between ML and traditional programming?</p><h3><strong>Traditional Programming</strong></h3><p>Let us dig a little deeper into the function fThis is actually not just a great question but one that fundamentally changes the way we think about solving problems. This also leads us to the realization that the human brain is truly a computing device! This sounds quite a bit unintuitive because you may ask, what has biology and chemical substances and their reactions have anything to do with computing and Math? This is a phenomenally insightful question because this gives us a different perspective of the nature of matter, evolution and the universe itself! So I decided to dedicate a <a href="https://medium.com/@manishdharod/how-does-human-brain-work-and-why-is-it-vastly-better-at-certain-things-compared-to-todays-aae4d06db7df">different post</a> on this topic.</p><p>For now lets just assume we figured out that by modeling the problems using Math, we can come up with radically different and much better ways of solving those problems. Better in terms of efficiency of computing resources. In <a href="https://medium.com/@manishdharod/why-do-we-compare-machines-with-human-brain-8e41ce097a85">this post</a>, I talked about the reason why we are obsessed with mimicking the human brain.</p><h3><strong>Traditional Programming (Logic or rule-based)</strong></h3><p>In case of traditional programming, the function f is nothing but a rule-based program that you write with logic written in the form of if-else statements, for/while loops, math or boolean operators etc. In other words, we provide all the steps to the computer that collectively represent the function f.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jSVXsRKvANMNyQvE__sWvg.png" /></figure><p>So essentially traditional programming = writing step-by-step logic to mimic function f in order to generate y that satisfies y = f(x).</p><h3>New Paradigm (Machine Learning)</h3><p>Now lets consider a completely new paradigm to achieve the same thing. Instead of providing the step-by-step logic to the computer, what if we only give the x and the corresponding expected y to the machine and the machine figures out the function f?!!</p><p>This may sound magic or crazy idea because the first question that comes to mind is, how does the machine know how to create the function f by just looking at the input and the output?</p><h3>Simple Example</h3><p>To explain why this is not such a crazy idea, lets take an example to illustrate why this makes</p><p>Say, you want to predict the price of a house based on its square footage area. This is clearly a problem of regression. Lets assume that you have some sample data for the square footage of houses in your area and the price for those houses.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/618/1*oPCfT8K2tOHu3OhGl67Dyw.png" /></figure><p><strong>Traditional Programming Approach</strong></p><p>You look at this data and see the pattern which will then help you to write a program using traditional programming as…</p><p>y = 100,000 + (x*0.1)</p><p>So in this case, a human looked at the data, found a pattern and gave the machine step-by-step instructions of what it needs to do.</p><p>This can also be represented as y = b + (x * m)</p><p><strong>Machine Learning Approach</strong></p><p>Now the question is whether its possible to just provide these x and y values to a machine and have it figure out the entire equation, which includes two things:</p><p>A. The <em>class </em>of the equation: Meaning if its linear, quadratic, ellipse etc.?</p><p>Or whether is any other formitself (meaning the form b+x*m and b) (or “learns”) the constant</p><p>(b) as 100,000 and the multiplying factor (m) as 0.1?</p><p>As it turns out that, its possible to do that. The way this can be achieved is by taking the following approach:</p><ol><li>Let the machine choose a random value for the constant (b) and a random value for the multiplying factor (m) and then use those values to generate y</li><li>Then take this value of y and subtract it with the expected value of y. This will give you an error</li><li>The next step is to choose a slightly higher value of m and a slightly higher value of b and generate y again and the error. If the error is less than the previous error then, choose an even slightly higher value of m and an even slightly higher value of b. On the other hand of the error was larger than the previous step then use a higher value of m and a lower value of b.</li><li>Continue this with all 4 permutations (higher m &amp; higher b, higher m and lower b, lower m and higher b, and lower m and lower b) until you get an error that is lower than the previous case.</li><li>If you follow steps 2, 3 and 4 1000 times or say million times, the machine will automatically figure out the value of m as 100,000 and the value of b as 0.1</li></ol><p>So what happened here is that the machine “learned” from the data. The important pieces needed for this approach were the a) data itself, b) the regression function and c) the trial and error method to figure out the value of the constant and the multiplying factor. Lets call the combination of regression function + the trial and error method as the “ML Algorithm” that was used in this example. So data and the algorithm is what the machine needs.</p><p>At this point, you might think that I tricked you because I used a simple case where f was a linear regression function and we knew what that function is in the first place! And so we also knew that there are just 2 parameters b and m. Hence the “Algorithm” was a piece of cake. What if the output is not linear and we don’t know the function? How do we even start in that case?</p><h3>‘Real’ Example</h3><p>Here is an example of such a scenario…..In the above case, the input was just the square footage. What if the input is not just that but also the number of bedrooms, the zip code and the age of the house? Its fairly clear that in this case, f is definitely going to be a complex non-linear function.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aS9MZVVdxusKt9DmYolv3Q.png" /></figure><p><strong>Traditional Programming Approach</strong></p><p>Now consider writing a traditional program to predict the value of y. You will realize that its not easy to figure out the pattern here and hence it will be a complex set of rules that you have write. You may try to approach this by doing the following:</p><ol><li>Consider the houses in a given zip code and understand how the price correlates with the sq. footage, bedrooms and age.</li><li>Then if you see a pattern then you may write the logic like if the house is between 1000 and 2000 sq ft and it has only 1 bedroom and its between 20 to 25 years old in 94539 zip code then the price is Y.</li><li>You would continue to figure out such patterns from the data and then keep refining the logic until you have considered all combinations of the input values and predicted a price for the house.</li></ol><p>However with this approach you can easily see that if the data points are say 1000 or more and the number of inputs are larger then figuring out the overlapping patterns and using logic/rules can easily become super complex and something that can’t be easily done by traditional programming.</p><p>In this case, we see that you don’t know the function f and hence you don’t know the parameters. So how can we use machine learning like we did in the previous example?</p><p><strong>Machine Learning Approach</strong></p><p>&lt;TBD&gt;</p><p>References:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FkvGsIo1TmsM%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DkvGsIo1TmsM&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FkvGsIo1TmsM%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/1e0b57a65e084622f957fe484bf556eb/href">https://medium.com/media/1e0b57a65e084622f957fe484bf556eb/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=938448468684" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding the human brain and where are we in terms of mimicking it in AI?]]></title>
            <link>https://medium.com/@manishdharod/how-does-human-brain-work-and-why-is-it-vastly-better-at-certain-things-compared-to-todays-176165a4decc?source=rss-8ef50c43940a------2</link>
            <guid isPermaLink="false">https://medium.com/p/176165a4decc</guid>
            <category><![CDATA[science]]></category>
            <dc:creator><![CDATA[Manish Dharod]]></dc:creator>
            <pubDate>Sun, 16 Jul 2017 23:26:50 GMT</pubDate>
            <atom:updated>2019-09-07T20:57:11.318Z</atom:updated>
            <content:encoded><![CDATA[<p>In my previous posts (<a href="https://medium.com/@manishdharod/why-do-we-compare-machines-with-human-brain-8e41ce097a85">here</a> and <a href="https://medium.com/@manishdharod/how-does-human-brain-work-and-why-is-it-vastly-better-at-certain-things-compared-to-todays-aae4d06db7df">here</a>) I talked about the reason behind our obsession to mimic our brain. Now, lets talk about our brain, what it does, how much we know about its functioning and where we are in mimicking it.</p><p>Before I get your hopes too high, let me just state a humbling fact first…At this point in time, we don’t clearly understand exactly how human brain works. We know a lot of bits and pieces but we don’t have a “unified theory” i.e. a clear view of how all those pieces fit together.</p><h3>Where are we in terms of our understanding of human brain?</h3><p>The current state of affairs in brain science might be a little bit analogous to the time in cosmology and astrophysics when we had invented the telescope and had identified/observed few things but still hadn’t observed a whole lot and the a grand theory (like Einstein’s relativity) was missing. (though, as it turns out, quantum mechanics means that a ‘grander’ theory is still missing in astrophysics).</p><p>When it comes to human brain, with <a href="http://fmri.ucsd.edu/Research/whatisfmri.html">Functional MRI</a> and other techniques we have the ‘telescope’ (actually ‘microscope’) but we don’t have a theory that explains everything that we observe + there are things that these techniques haven’t allowed us to observe yet. I will touch upon some of those in this post.</p><h3><strong>Anatomy &amp; Structure Of The Brain — 3 important ideas:</strong></h3><p>In order to appreciate and understand how the brain works, its vital to understand the anatomy and structure of the brain. In order to keep it simple here, I will talk about 3 main ideas that are important for creating an AI i.e. mimicking the human brain.</p><ol><li><strong>Different physical regions in the brain perform different functions</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/556/1*F1635bQKwIyexh0y2jphuw.png" /></figure><p>2.<strong> A neuron is the basic ‘building block’ of the brain. There are 100B neurons in human brain. Each neuron is connected to a set of other neurons making a “network” of an estimated 100 Trillion connections. Neurons transmit and receive chemical and electrical signals in somewhat of a binary format. They either “fire” or they don’t</strong> ¹ ²<strong>.</strong></p><p>3.<strong> The biggest idea that is relevant here is the “one learning algorithm” hypothesis</strong></p><p>Apart from being the basic building block of the brain, a neuron also seems to be displaying a very interesting and important property which makes it likely that the same neuron can actually perform multiple different types of functions. This is a crucial discovery that has led to mimicking a neuron to create an AI that is capable of general intelligence without having to reprogram it for every different task. Since this hypothesis is so important for AI, I have added Andrew Ng’s two very insightful lectures in Stanford/Coursera (in the references section below) because they demonstrate the evidence behind this hypothesis in a clear and concise manner. I would highly encourage you to go through the text and/or video (#3 in the references section at the end of this post)</p><h3>What does our brain do?</h3><p>Our brain obviously does a lot of things, as you can see in the image above. Now even though I am not a neuroscientist, I have taken the liberty :) to put everything that the brain does into 9 key functions or ‘buckets’. I did this because it seemed logical to create a higher level abstraction of the details. This is interesting because it gives us some insight into the problem solving approach that the our brain takes when it needs to simplify things. Is there something here for our computers to take inspiration?</p><p>At the end of this section, we will get an appreciation of the complexity involved in trying to mimic the brain and state of affairs in AI.</p><p><strong>9 Key Brain Functions And Where We Are In AI:</strong></p><ol><li><strong>Sensing (external)</strong>: Visual information sent from retina of the eye to the brain, auditory information sent from cochlea of the ear, touch, smell, temperature of the environment (through skin) and so on..</li><li><strong>Sensing (Internal)</strong>: Body temperature, water content, salt, glucose and oxygen levels in the blood etc..</li><li><strong>Motor control</strong>: Initiating body movements. For each and every organ in the body.</li></ol><p>Again, I took the liberty to evaluate these 3 functions together when it comes to our understanding of brain and state of affairs in AI. I have done the same for several of the functions below where I have combined 2 or 3 functions for the sake of simplicity and it made sense to me in terms of logical abstraction.</p><p><strong>Where do we stand with sensing and motor control?</strong></p><p>Note that with Functional MRI and other techniques, we have observed what happens in the brain when we sense things in the external to the body and internally. We also have observed what happens when we control our body movements. So we know reasonably well the how and even the why? part of sensing and motor control.</p><p>So in essence, we have made massive progress in sensing and motor control of physical objects. For example we have motion sensors at home that can trigger an alarm and a software that alerts security agencies. In short, we are very good at sensing and controlling movement of things with machines.</p><p>4. <strong>Wakefulness and Sleep</strong>: This is called the <em>circadian rhythm</em></p><p><strong>Where do we stand with wakefulness and sleep?</strong></p><p>We can observe what is happening in the brain during the circadian rhythm i.e. the difference between arousal and sleep states of the brain. Meaning that we know what happens in the brain when are we awake vs when we sleep. And we clearly know the <a href="http://www.wired.co.uk/article/sleep-deprivation-brain-connectivity-changes">bad things that happen when we don’t get enough sleep</a>. We also know the good things that happen when we sleep <a href="https://www.nhlbi.nih.gov/health/health-topics/topics/sdd/howmuch">enough</a> including more <a href="https://www.ted.com/talks/russell_foster_why_do_we_sleep/transcript?language=en">creativity, memory, overall mental health</a> etc. But we don’t yet exactly know <a href="http://www.bbc.com/news/science-environment-32606341">why?</a> There is likely more than one reason why we sleep? and hence multiple <a href="http://healthysleep.med.harvard.edu/healthy/matters/benefits-of-sleep/why-do-we-sleep">theories</a>, some of which are <a href="https://www.ted.com/talks/russell_foster_why_do_we_sleep/transcript?language=en">getting good traction vs others</a>. One of them being <a href="https://www.ted.com/talks/jeff_iliff_one_more_reason_to_get_a_good_night_s_sleep">‘garbage collection’ or cleaning up</a>. Related topic of dreams is another area we know little about.</p><p><a href="https://www.nigms.nih.gov/education/pages/Factsheet_CircadianRhythms.aspx">Its worth noting here that the circadian rhythm is likely to do a lot with the biological nature of this ‘computing device’</a>. So its likely that we may not have bother about replicating this functionality while creating an AI. But its not impossible that we may realize that this circadian rhythm if applied to the AI also might help with efficiency, resource usage etc.</p><p>5. <strong>Learning, memory and decision making</strong>: This is the most exciting function of the brain when it comes to AI and we will shortly see why?</p><p><strong>Where do we stand with learning, memory and decision making?</strong></p><p>a. We know that we change our behavior and decisions based on experience so there is some mechanism in the brain that helps us learn all the way from when we are infants to the time until we die. There is clearly lot more learning during the initial years but learning as such, never stops.</p><p>b. In order to learn we obviously store information/experience (i.e. memory) in some form.</p><p>c. And using the learning and memory, we make decisions.</p><p>So combining these 3 into a single function made sense. You can view these 3 functions as the core of “computation” and by itself can provide us a big leap in AI if we can do these functions artificially in a way that is similar to the human brain. Hence this is where most of the focus is when it comes to AI research and applications. Self-driving cars and Natural Language Processing are two examples that I discussed in the previous post.</p><p><strong>Memory</strong></p><p>Lets talk about memory first. We know from experience and lot of observations that memory places a crucial role in learning and decision making process. There has been considerable <a href="https://www.theguardian.com/education/2015/sep/16/what-happens-in-your-brain-when-you-make-a-memory">advance in understanding how memories are represented and made in human brain, but we still don’t know a whole lot</a>. Note that memories in today’s computers are vastly different compared to how the memory is created human brain. So its likely that we may have to re-architect the artificial memories in our machines to be able to replicate the human brain to achieve the speed in learning and decision making, in areas where our machines today don’t work well. Or maybe we can get away with the existing memory by only changing the architecture for learning and decision making. We don’t know yet.</p><p><strong>Learning &amp; Decision Making: This is where all the action in AI currently is!</strong></p><p>When it comes to learning and decision making, there are 3 things we have observed in human brain that make it extremely compelling to replicate it to create an AI</p><p>a) <strong>Better ‘Algorithm’</strong>: We can do certain things lot better compared to the fastest computers today. Making decisions with limited and ambiguous information is a very important general capability because that’s how most decisions in the real world need to be made.</p><p>b) <strong>General Purposeness</strong>: What we have observed in the brain is that the nerve cells in each region of the brain (performing different functions) are very similar to each other in terms of their structure and how they work. And given that we know our brain can learn and do an extremely wide variety of tasks, brain is clearly a computing device that has an architecture which is suited for general intelligence. This makes it absolutely interesting and potentially very rewarding because as it stands today, the “intelligence” or architecture(hardware+software) in today’s computers is definitely not general. Meaning that every time we want the machine to do a different type of task, we have to write a different software. Hence its not so scalable.</p><p>c) <strong>Efficiency</strong>: Even if our brain consumes disproportionate amount of power <a href="https://hypertextbook.com/facts/2001/JacquelineLing.shtml">(it consumes 20% of power with only 2–3 percent of body mass), it is still amazing that just a 3 pound object consuming less than 20W of power per day</a>, can do things better than today’s super computers with massive amount of computing and power consumption. <a href="https://en.wikipedia.org/wiki/Watson_(computer)">IBM’s Watson</a> is a very good example of that. So we can learn immensely from brain when it comes to efficiency (doing more with limited computing and energy resource).</p><p>The field of neural networks is where most of the action, excitement and interest lies in AI. And this area is fundamentally focussed on mimicking the learning and decision making functions of our brain.</p><p>Now lets look at some of the ‘higher-order’ functions that human brain excels compared to other living organisms.</p><p>6. <strong>Creativity</strong>: Our ability to come-up with totally novel ideas from almost no-where is one of the fascinating things about human brain. Meaning without necessarily an exhaustive amount of computing and memory. We all know from our own experience that we sometimes come-up with new ideas just all of a sudden and many times by almost magically connecting the dots from extremely wide range of topics that may logically seem totally disparate and unconnected in any way. If we can figure out how our brain does that, then that could potentially help to solve some of the most intractable problems facing our society.</p><p>7. <strong>Motivation and goal setting</strong>: Even though motivation and goal setting may sound like a touchy feely topic, the reality is that goals drive our brain to do what we do. So goal is a fundamental aspect of why certain neurons in our fire in certain ways. A simple example is the goal to survive and live. So in the face of danger (like an approaching tiger) this goal translates to the ability of our brain to generate an intense flow of energy in the body that allows us to run at a speed that is way beyond our normal routine and stamina that we would generally think not possible to muster. Based on our observations inside the brain, goals are “encoded” in the form a variety of structures, chemistry and processes. For example, Amygdala is a region of the brain that is responsible for what is called as “Fight or Flight” response, which is needed for us to react to a dangerous situation. This region of the brain triggers a set of chemical processes that help us potentially to get a surge of energy in the body to run really fast in case our brain decides to opt for the flight response.</p><p>Its interesting to note that unlike hundreds of thousands of years ago when we were hunter gatherers, we don’t face predators in our daily life anymore. However our brain hasn’t necessarily changed dramatically to mirror that change in the environment. The likely reason is that the same Amygdala and its Flight and Fight response is now helping us from “modern-life dangers” like reacting fast during a likely accident scenario or fire etc. On the same lines non-physical dangers like bankruptcy i.e. concerns about finances, triggers the same area (Amygdala). So its fascinating to realize that even though the “hardware” of the brain did not substantially change over say tens of thousands of years, we were able to adapt to a completely new environment around us. This gives us an insight about the beautiful architecture of the brain when it comes to its “flexibility” or “general purposeness”.</p><p>8. <strong>Emotions</strong>: Closely related to motivation and goal settings, emotions are a fundamental aspect of being alive. Based on our observations of the brain and body, there are clearly neural activities and chemical processes associated with different types of emotions like happiness, love, anger etc. If we are creating AI that needs live with us and interact with us like humans do, emotions are a crucial aspect of those interactions. Hence we need to understand how and why emotions are created? And then mimic them in AI.</p><p><strong>Where we stand with creativity, motivation and goal setting, And Emotions?</strong></p><p>We know the different regions of the brain that gets activated (neural activity) when we do creative things, get motivated, set goals and become emotional. These are the ‘higher-order’ functions of the brain that are worth replicating if we truly want an AI who can do everything that we do and can “live” alongside with us. However, we still have a long way to go in terms of understanding how these functions in the brain work. Though one could argue that first order priority for us in terms of AI would be to first mimic the learning, memory and decision making functions. And then move into these higher-order functions as the second step because with the first order functions, there is little practical use of higher-order functions as such.</p><p>9. <strong>‘Master control’</strong>: How are all the above 8 functions working in tandem? Is there a master control?</p><p><strong>Where we stand with ‘master control’?</strong></p><p>We have observed that even though the neural activity happens in different areas of the brain, each portion of the brain doesn’t function in isolation. So there is likely to be something in the brain that helps each of these brain regions and functions work in tandem (like a “network”). In other words some kind of a ‘master control’ or ability of the brain to ‘orchestrate’ all of the above functions. However we don’t know how this orchestration happens? And this is an important function of the brain that needs to be mimicked to make real solid advances in AI. In my later posts I will talk about <a href="https://www.youtube.com/watch?v=nlPMYUzWDVM&amp;t=1472s">certain approaches</a> that are being taken in this direction.</p><p>10. <strong>Self-awareness</strong>: I said 9 things and tagged the ‘master control’ as the last one. But I am adding a 10th one because even though we experience self-awareness, we really don’t what it is? We don’t know if its something that is separate from the 9 things listed above or whether these 9 things when put together somehow automatically generate the idea of self-awareness? i.e We don’t if its really a standalone “function”. The other reason is of course that this gets into philosophy and religion: out of scope for this discussion!</p><p><strong>References:</strong></p><ol><li>Here is a good video by Khan Academy about the basic anatomy of a neuron.</li></ol><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fob5U8zPbAX4%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dob5U8zPbAX4&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Fob5U8zPbAX4%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/18eb0fb39a7effe328bf9c8d6fc7cfe9/href">https://medium.com/media/18eb0fb39a7effe328bf9c8d6fc7cfe9/href</a></iframe><p>2. Here is another one that goes into a little more depth of how the neuron in our brain works…</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FHZh0A-lWSmY%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DHZh0A-lWSmY&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FHZh0A-lWSmY%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/63773f46bba422bb04d29c921c5519ba/href">https://medium.com/media/63773f46bba422bb04d29c921c5519ba/href</a></iframe><p>3. The link to the videos of the lectures is below but I am putting down key excerpts from these lectures if you would rather just read it as text…</p><blockquote>The brain can learn to see and process images, hear, learn to process our sense of touch, learn to do math, learn to do calculus, and the brain does so many different and amazing things. It seems like if you want to mimic the brain you have to write lots of different pieces of software to mimic all of these different fascinating, amazing things that the brain does. But there is this fascinating hypothesis that the way the brain does all of these different things is not with like a thousand different programs, but instead, the way the brain does it is with just a single learning algorithm. This is just a hypothesis but let me share with you some of the evidence for this.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*36_eVuU7j3ao9m-aPVW7ng.png" /></figure><blockquote>This part of the brain, that little red part of the brain, is your auditory cortex and the way you’re understanding my voice now is your ear is taking the sound signal and routing the sound signal to your auditory cortex and that’s what’s allowing you to understand my words.</blockquote><blockquote>Neuroscientists have done the following fascinating experiments where you cut the wire from the ears to the auditory cortex and you re-wire,</blockquote><blockquote>in this case an animal’s brain, so that the signal from the eyes to the optic nerve eventually gets routed to the auditory cortex.</blockquote><blockquote>If you do this it turns out, the auditory cortex will learn to see. And this is in every single sense of the word “see” as we know it. So, if you do this to the animals, the animals can perform visual discrimination task and as they can look at images and make appropriate decisions based on the images and they’re doing it with that piece of brain tissue.</blockquote><blockquote>Here’s another example.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hgnXFNaiTc-w1UOtHtJC0w.png" /></figure><blockquote>That red piece of brain tissue is your somatosensory cortex. That’s how you process your sense of touch. If you do a similar re-wiring process then the somatosensory cortex will learn to see. Because of this and other similar experiments, these are called neuro-rewiring experiments.</blockquote><blockquote>There’s this sense that if the same piece of physical brain tissue can process sight or sound or touch then maybe there is one learning algorithm that can process sight or sound or touch. And instead of needing to implement a thousand different programs or a thousand different algorithms to do, you know, to do the thousand wonderful things that the brain does, maybe what we need to do is figure out some approximation or to whatever the brain’s learning algorithm is and implement that and that the brain learned by itself how to process these different types of data.</blockquote><blockquote>To a surprisingly large extent, it seems as if we can plug in almost any sensor to almost any part of the brain and so, within the reason, the brain will learn to deal with it.</blockquote><blockquote>And there’s a sense that if we can figure out what the brain’s learning algorithm is, and, you know, implement it or implement some approximation to that algorithm on a computer, maybe that would be our best shot at, you know, making real progress towards the AI, the artificial intelligence dream of someday building truly intelligent machines.</blockquote><p>Here is the full video that I will highly encourage you to see…</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fm3U1_Zv4_Ik%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dm3U1_Zv4_Ik&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Fm3U1_Zv4_Ik%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/f52ad8b6506850000d187c1559800c35/href">https://medium.com/media/f52ad8b6506850000d187c1559800c35/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=176165a4decc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Is the human brain a computing device?]]></title>
            <link>https://medium.com/@manishdharod/how-does-human-brain-work-and-why-is-it-vastly-better-at-certain-things-compared-to-todays-aae4d06db7df?source=rss-8ef50c43940a------2</link>
            <guid isPermaLink="false">https://medium.com/p/aae4d06db7df</guid>
            <dc:creator><![CDATA[Manish Dharod]]></dc:creator>
            <pubDate>Sun, 09 Jul 2017 00:13:30 GMT</pubDate>
            <atom:updated>2019-09-07T20:35:01.223Z</atom:updated>
            <content:encoded><![CDATA[<h3>Is the human brain a computing device? i.e. Does it even make sense to compare a biological thing like a human brain with man-made computer?</h3><p>For those who find the idea of comparing the human brain (which is purely biological in nature) with computers (that are purely man-made and dead matter) to be strange, it&#39;s worth spending some time to grasp the idea and rationale behind looking at the human brain as a “computing device”.</p><p>It&#39;s important to note that while doing this, we will ignore the self-awareness or consciousness part of it for multiple reasons including the fact that we don’t know really understand them in the first place!</p><p>Lets us start by considering things that both the human brain and computers can do.</p><h3>1st example: Numerical Computation</h3><p>The simplest one being numerical computation. Humans can compute 2+2 and also much more complex math and we have now created computers that can do that too (much faster than our brains can). We can remember things and computers can also do that, meaning there is some type of memory in the brain. So if you just focus on the task of computing 2+2, you realize that the numbers like 2, 0, -2, etc. and meaning of ‘+’ (let&#39;s call it “rules”) have to be somehow represented in both our brains and the computer. This is one simple example to illustrate that the brain is indeed a computing device.</p><h3>2nd example: Image recognition</h3><p>Now let&#39;s consider a slightly more complex example of identifying a chair when you see it with your eyes and when you feed that image or video to a computer. The human brain receives the visual signals from our eyes and very quickly classifies some of the characteristics of the object namely, color, shape, size, moving vs stationary, etc. With this observation, we can hypothesize that there has to be some classification mechanism in the brain for each characteristic. With the help of fMRI, we know that this hypothesis is true. As an example, we now know that <a href="https://en.wikipedia.org/wiki/Cerebral_achromatopsia">damage to a specific region of the brain can cause color blindness.</a> Now in order to focus on this ability of the human brain of being able to identify a chair, it makes sense to think about an infant who sees a chair for the first time and then try to hypothesize what the brain might be doing. If you do that, it becomes fairly obvious that the identification and ‘labeling’ of an object as a chair with its characteristics fundamentally depend on the idea of learning. Meaning observing what others are doing with that object, comparing it with other objects of different sizes, shapes, and color and then creating this mental model of the chair as an object that is inanimate and is used to sit.</p><p>Now note that each of these aspects including representation of each pixel in an image in terms of its color (including the contrast and brightness) etc. can be done in computers. We can also write ‘rules’ so that computers can identify an object like a chair. The way you would do that is that you would write rules that take a collection of the pixels in an image and classify the color, shape, etc. all the way to building an entire model for a chair. So this complex example also illustrates that the brain is indeed a computing device.</p><h3>Image recognition by today’s computers</h3><p>While we are at it, let&#39;s take the example of recognizing a chair to get an appreciation of why it&#39;s so hard for a computer to do this?</p><p>Given that today’s computers are logic/rule-based with some memory, in order to recognize an object like a chair, each image will need to be broken down into millions of pixels to have enough granularity (and information’). And then write rules so that the computer can match the set of pixels to that of an image of a chair. When you try to do that, you realize fairly quickly that there will need a write billions or trillions of “rules” to distinguish different objects because the permutations and combinations of all the clusters of pixels in say 10,000 images are going to be very very large. Now even if you imagine that you write those many rules, it&#39;s not very hard to realize that even a supercomputer will take a very long time to compute these many rules and come back with an answer. So it makes obvious sense to understand how the brain of an infant can do this so efficiently (measured in terms of the amount of energy used by the brain and its size).</p><p>Next…. <a href="https://medium.com/@manishdharod/how-does-human-brain-work-and-why-is-it-vastly-better-at-certain-things-compared-to-todays-176165a4decc">How does the human brain work and why is it vastly better at certain things compared to today’s computers?</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aae4d06db7df" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why are we obsessed about comparing machines with the human brain?]]></title>
            <link>https://medium.com/@manishdharod/why-do-we-compare-machines-with-human-brain-8e41ce097a85?source=rss-8ef50c43940a------2</link>
            <guid isPermaLink="false">https://medium.com/p/8e41ce097a85</guid>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Manish Dharod]]></dc:creator>
            <pubDate>Mon, 03 Jul 2017 01:11:09 GMT</pubDate>
            <atom:updated>2019-09-07T20:24:48.650Z</atom:updated>
            <content:encoded><![CDATA[<p>Why the obsession of comparing machine intelligence with what the human brain can do? especially given that computers today can do a whole lot of things in milliseconds that the human brain can’t do even in years!</p><h3><strong>How do computers work today?</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jP6BW10EmNsTfHEdfZ0fKg.png" /><figcaption>The Most Basic Representation of Today’s Computer</figcaption></figure><p>For the most part, computers today use logic-based software (let&#39;s call it ‘conventional’ software). The way the conventional software works is that you program a discrete set of rules in the form of if-else statements or loops at the most basic level and the computer applies those rules on the inputs to give the desired output. Computers have gotten a lot faster over the years so they can now perform those discrete set of rules much faster and efficiently. Hence we can now create an extremely complex and large set of rules and get the results in milliseconds, seconds or minutes depending on the complexity and the number of those rules.</p><h3>What are the limitations of conventional software?</h3><p>As it turns out, even though the logic-based software approach has worked really well for a very wide variety of problems, it still sucks badly when it comes to problems that involve an extremely large number of rules. For example, let&#39;s pick the problem of understanding natural language. To make sense of a sentence in any language you have to not just consider all the formal rules of the grammar but also the colloquial usage, the poetic usage, sarcasm and many other styles of writing. Moreover, the context and relationship of words within a sentence matters because the same words can be used in many different ways in any language. So if you want to write a conventional rule-based software, the number of permutations and combinations of all the rules to make sense of a single sentence or a paragraph will make it almost impossible for even the fastest supercomputers of today to produce results in a reasonable amount of time. Another important aspect of language is that it is always evolving, so these set of rules need to be constantly updated to keep up with that evolution of the language. This is where the conventional logic-based software breaks down!</p><p>Now if you consider the above example of natural language processing (NLP), even a toddler can do a better job compared to the fastest computers on the planet. The situation is similar if you consider some other capabilities like image recognition or speech recognition (a combination of NLP and sound recognition), you find that an even young child can do a much better job compared to the fastest supercomputers of today.</p><p>Now when you combine few such capabilities like for example image recognition and sound recognition, you have everything needed to create a completely self-driving car that never gets distracted with phone calls and texts, never get tired or falls asleep while driving and never drinks and drives! = Eliminating <a href="http://cyberlaw.stanford.edu/blog/2013/12/human-error-cause-vehicle-crashes">93%</a> of <a href="http://asirt.org/initiatives/informing-road-users/road-safety-facts/road-crash-statistics">37,000 deaths, 2.3M injuries and $230B in costs just in US alone!</a></p><p>Image/video recognition is also fundamental to having better robots doing almost everything physical that humans currently do including manufacturing, driving and cooking!</p><p>We talked about image/video recognition and natural language processing. But there are other things that human brain does better than conventional software including email spam detection, predicting the prices of flight/houses/stocks etc., recommending movies, music etc based on the viewing/listening patterns.</p><p>Hence comparing machines with human brain is not just a geeky obsession.</p><p>The implications of making machines equal or better than human brain, cannot be overstated.</p><p>Apart from being maybe a much better algorithm, there are 2 other very important and interesting features of the human brain that make it interesting for AI</p><p>A) <strong>It&#39;s ‘General Purposeness’</strong>: What we have observed in the brain is that the nerve cells in each region of the brain (performing different functions) are very similar to each other in terms of their structure and how they work. And given that we know our brain can learn and do an extremely wide variety of tasks, brain is clearly a computing device that has an architecture which is suited for general intelligence. This makes it absolutely interesting and potentially very rewarding because as it stands today, the “intelligence” or architecture(hardware+software) in today’s computers is definitely not general. Meaning that every time we want the machine to do a different type of task, we have to write a different software. Hence it&#39;s not so scalable.</p><p>B) <strong>Its Efficiency</strong>: Even if our brain consumes disproportionate amount of power <a href="https://hypertextbook.com/facts/2001/JacquelineLing.shtml">(it consumes 20% of power with only 2–3 percent of body mass), it is still amazing that just a 3 pound object consuming less than 20W of power per day</a>, can do things better than today’s supercomputers with massive amount of computing and power consumption. <a href="https://en.wikipedia.org/wiki/Watson_(computer)">IBM’s Watson</a> is a very good example of that. So we can learn immensely from the brain when it comes to efficiency (doing more with limited computing and energy resource).</p><p>Next….<a href="https://medium.com/@manishdharod/how-does-human-brain-work-and-why-is-it-vastly-better-at-certain-things-compared-to-todays-aae4d06db7df">Is the human brain a computing device? Or Does it even make sense to compare a biological thing like the human brain with a man-made computer?</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8e41ce097a85" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is the difference between AI and Machine Learning?]]></title>
            <link>https://medium.com/@manishdharod/what-is-the-difference-between-ai-and-machine-learning-2e2c7d2789f3?source=rss-8ef50c43940a------2</link>
            <guid isPermaLink="false">https://medium.com/p/2e2c7d2789f3</guid>
            <dc:creator><![CDATA[Manish Dharod]]></dc:creator>
            <pubDate>Sat, 01 Jul 2017 21:26:03 GMT</pubDate>
            <atom:updated>2017-07-02T01:17:23.385Z</atom:updated>
            <content:encoded><![CDATA[<p>Simply put, AI is a thing or a noun while ML is technique or a verb. You can use ML to create an AI. So So AI is a type of a machine</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2e2c7d2789f3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is Supervised and Unsupervised Machine Learning?]]></title>
            <link>https://medium.com/@manishdharod/what-is-supervised-and-unsupervised-machine-learning-2d2bc901238e?source=rss-8ef50c43940a------2</link>
            <guid isPermaLink="false">https://medium.com/p/2d2bc901238e</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[unsupervised-learning]]></category>
            <category><![CDATA[supervised-learning]]></category>
            <dc:creator><![CDATA[Manish Dharod]]></dc:creator>
            <pubDate>Sun, 25 Jun 2017 01:51:24 GMT</pubDate>
            <atom:updated>2017-07-30T03:56:26.689Z</atom:updated>
            <content:encoded><![CDATA[<p>Machine Learning can be broadly classified into Supervised and Unsupervised learning.</p><p>Instead of reinventing the wheel, I figured I should use the following excerpt from <a href="https://mixpanel.com/blog/2017/06/06/machine-learning-guide-product-managers/">this</a> article as-is, since the author (<a href="https://twitter.com/neal_lathia">Neal Lathia</a>) has done a wonderful job at describing this. I encourage you to read his <a href="https://mixpanel.com/blog/2017/06/06/machine-learning-guide-product-managers/">entire article</a> on the Mixpanel blog. Its quite well written.</p><blockquote><strong>Unsupervised learning is about identifying patterns</strong></blockquote><blockquote>The examples that are usually fed into unsupervised ML algorithms are characterized by the fact that there is no deterministic ‘correct’ answer that the algorithm needs to learn to predict. Products that use unsupervised learning are typically surfacing patterns in user data.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/348/1*BtanUhT3LRzClagt9jYz9g.png" /></figure><blockquote>A simple example is “Trending this Week” on Foursquare. Is there any data out there that could tell us, objectively, that a venue should or should not trend this week? No. Instead, there is data that shows how Foursquare users were visiting venues that week — and patterns in that data create trending venues. Note that this is different from whether users think that the output of the algorithm is correct or not (“what? McDonald’s is trending?”).</blockquote><blockquote><strong>Supervised learning is about predicting an outcome</strong></blockquote><blockquote>The examples that are fed into supervised ML algorithms, instead, have a deterministic outcome that the algorithm needs to try and predict. The most classic example of this in action is spam-detection.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/398/1*K0vfs0kyIZtL6Yqf5633dg.png" /></figure><blockquote>You give the algorithm examples of emails that are and are not spam; each example email is <em>labeled </em>with whether it is spam or not. Then, given a new email, you ask the algorithm: is this spam? Remember, the algorithm’s goal is to minimize how many mistakes it makes. If the algorithm says yes, you push that email into the user’s spam box.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2d2bc901238e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What are the types of problems that ML can solve?]]></title>
            <link>https://medium.com/@manishdharod/what-are-the-types-of-problems-that-ml-can-solve-c6a10d01f7c2?source=rss-8ef50c43940a------2</link>
            <guid isPermaLink="false">https://medium.com/p/c6a10d01f7c2</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[unsupervised-learning]]></category>
            <category><![CDATA[supervised-learning]]></category>
            <dc:creator><![CDATA[Manish Dharod]]></dc:creator>
            <pubDate>Sun, 25 Jun 2017 01:35:05 GMT</pubDate>
            <atom:updated>2017-07-30T03:59:42.725Z</atom:updated>
            <content:encoded><![CDATA[<p>Currently ML is good at solving certain types of problems and this list is likely to grow in the future.</p><p>Instead of reinventing the wheel, I figured I should use the following excerpt from <a href="https://mixpanel.com/blog/2017/06/06/machine-learning-guide-product-managers/">this</a> article as-is, since the author (<a href="https://twitter.com/neal_lathia">Neal Lathia</a>) has done a wonderful job at describing this. I encourage you to read his <a href="https://mixpanel.com/blog/2017/06/06/machine-learning-guide-product-managers/">entire article</a> on the Mixpanel blog. Its quite well written.</p><blockquote><strong>Types of problems:</strong></blockquote><blockquote>1. Helping users find the right thing when they search? This is a <strong>ranking problem</strong>. Google, Bing, and Twitter search are all doing this — trying to sort things when you query so that the thing you’re looking for is at the top.</blockquote><blockquote>2. Giving users things they may be interested in, without them explicitly searching? This is a <strong>recommendation problem</strong>. Netflix, Spotify, who-to-follow on Twitter are examples — these products are suggesting things to engage users.</blockquote><blockquote>3. Figuring out what kind of thing something is? This is a <strong>classification problem</strong>. Gmail spam/not spam and Facebook photos (detecting faces) are examples here.</blockquote><blockquote>4. Predicting a numerical value of a thing? This is a <strong>regression problem</strong>. Predicting how much a flight will cost in two hours is an example.</blockquote><blockquote>5. Putting similar things together? This is <strong>clustering</strong> in action. Amazon’s customers-als0-bought is the most notable example, and we saw Spotify’s playlist addition recommendations above as well.</blockquote><blockquote>6. Finding uncommon things? This is usually <strong>anomaly detection</strong>. Most “trending” products (Foursquare, Twitter, Facebook) are examples, that surface things that are being tweeted/visited/talked about more than usual.</blockquote><blockquote>In general, 1–4 are examples of supervised learning, and 5 &amp; 6 fall into the unsupervised learning domain. However, there are obvious cross-overs here: for example, a recommendation problem is a kind of classification problem — the algorithm is trying to predict whether a user would (or would not) be interested in a thing.</blockquote><p>Next…. <a href="https://medium.com/@manishdharod/what-is-supervised-and-unsupervised-machine-learning-2d2bc901238e">What is supervised and unsupervised machine learning?</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c6a10d01f7c2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is Artificial Intelligence (AI)?]]></title>
            <link>https://medium.com/@manishdharod/what-is-ai-8d3f106c663d?source=rss-8ef50c43940a------2</link>
            <guid isPermaLink="false">https://medium.com/p/8d3f106c663d</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Manish Dharod]]></dc:creator>
            <pubDate>Sun, 25 Jun 2017 01:01:25 GMT</pubDate>
            <atom:updated>2019-09-07T18:32:07.569Z</atom:updated>
            <content:encoded><![CDATA[<p>The term AI is being used a lot more frequently than machine learning for many reasons. One key reason is that it has used in general literature, movies etc while machine learning has used typically more by folks in the sciences. There are a lot of issues with the term AI though. To start with, there needs to be a clear definition of “Intelligence” itself. The reality is that there is none. Part of the problem is that intelligence is a spectrum all the way from the intelligence within a single cell organism to human intelligence (assuming we are focussing on intelligence only of a living system). If you just pick human intelligence, it is also spectrum all the way from the brain of a newborn to an adult brain. And even within the adult brain, there are different abilities, all the way from complex numerical computation to recognizing images to even more higher-order complex creative tasks like composing music or creating art and so on. So the context in which the term AI is used, matters. Two very broad ways AI is used are the following:</p><ol><li>The science-fiction version of the definition of AI would be <em>a machine that can do </em><strong><em>every</em></strong><em> single thing that an adult human brain can do equally or better</em>. The extreme end of that being human self-awareness or consciousness of course. One of the interesting things about the human brain is its ability to demonstrate “general” intelligence. This means that you can teach a human anything new in any domain (of course keeping its limitations like memory capacity etc in mind). In other words, the human brain automatically adapts and learns even with new “inputs” that it has never seen ever.</li><li>If you go beyond science fiction, the term AI is used to refer to <em>a machine that does a </em><strong><em>specific</em></strong><em> task that is equal or better than a human brain doing the same task</em>. For example, numerical computation is one of those tasks. So you could (and <a href="https://en.wikipedia.org/wiki/Ray_Kurzweil">Ray Kurzweil</a> does) say that today’s computer and cell phone are already an AI because they can do specific tasks much better and faster than any human brain can. For a long time (<a href="https://www.livescience.com/49007-history-of-artificial-intelligence.html">from 1950’s until very recently</a>), machines were not able to do certain higher-order tasks that a child’s brain does quite easily including things like recognizing images, understanding natural language etc. This has however dramatically changed in the last decade or so due to a variety of software/algorithmic breakthroughs, advancements in hardware (GPUs) and availability of a large amount data, all coming together to create a <a href="https://a16z.com/2016/06/10/ai-deep-learning-machines/">perfect storm!</a> And so now AI is quite often used to refer to <em>a </em><strong><em>machine that is capable of higher-order tasks like image recognition, natural language processing, playing very complex games like Chess and GO etc.</em></strong></li></ol><p>Based on these two broad distinctions, you can see AI from the lens of a machine that is capable of special intelligence vs one that is capable of General Intelligence. <a href="https://cbmm.mit.edu/video/demis-hassabis-towards-general-artificial-intelligence">Demis Hassabis of Deep Mind looks at it this way</a>. In his view, machines like IBM’s Deep Blue that was able to beat the best human chess player, IBM’s Watson that was able to beat humans in Jeopardy and Google’s Alpha Go that was able to beat the best human GO player are all of the type ‘artificial special intelligence’. Meaning that they are able to beat humans on one specific task at a time. His goal is to build artificial general intelligence (or AGI) that is capable of General Intelligence¹ meaning a single machine that is capable of doing everything equal or better than an adult human brain. This is when the real world will meet the science fiction of today!</p><p>Next….<a href="https://medium.com/@manishdharod/why-do-we-compare-machines-with-human-brain-8e41ce097a85">Why are we obsessed about comparing machines with the human brain?</a></p><p><strong>References:</strong></p><ol><li><a href="https://www.verywell.com/what-is-general-intelligence-2795210">What is general intelligence in humans?</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8d3f106c663d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is Machine Learning?]]></title>
            <link>https://medium.com/@manishdharod/what-is-machine-learning-2aa31f233ad6?source=rss-8ef50c43940a------2</link>
            <guid isPermaLink="false">https://medium.com/p/2aa31f233ad6</guid>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Manish Dharod]]></dc:creator>
            <pubDate>Sun, 25 Jun 2017 00:53:48 GMT</pubDate>
            <atom:updated>2017-07-30T04:12:42.380Z</atom:updated>
            <content:encoded><![CDATA[<p>Machine Learning, as opposed to AI, has a much more clearer definition. It refers to the set of algorithms and techniques that allow machines to learn from experience. Meaning that if you provide a set of inputs and expected outputs, the machine will learn to create a set of <em>rules </em>or<em> logic </em>such that it can predict what an output should be when it is given a new input.</p><p>As an example, if you provide a set of images to a machine learning algorithm and classify them for it (<em>train </em>it), the algorithm will learn and create a set of rules to then classify images. So now if you give it an image then it will be able to classify that image to one of the types that you specified while <em>training </em>it.</p><p>On those lines, you can say that Google’s page-rank algorithm is a machine learning algorithm because for any set of keywords, Google’s search results get better and better as more people search for them and click on links. Though we know that this information is really fed to a ‘hard coded’ or logically programmed page-rank algorithm that uses this information to learn and predict better. And so this algorithm is not a general purpose algorithm that can be used to solve other types of problems but something that is specific to the task of predicting web search results for a given set of keywords. One of the programmed rules is the age of the website, i.e. how long has it existed?. So for a very new website, Google will give it a low ranking even if its “machine learned” portion really likes the content. The weight of those 2 aspects changes over time. In other words its sort of a hybrid of machine-learning and logical pre-specified rule.</p><p>On the other hand, if a machine is built purely based on neural network algorithm then this means there are no logically programmed pre-specified rules that dictate its behavior/output.</p><p>To put it differently, Machine Learning is a way of creating a program that does something, without you having to figure out exactly how to do it. Compare that to the usual way we create programs, where we need to be able to code every step (if this happens, then do that, and then do that). In practice, the way this happens is that you give an ML algorithm a data set with examples, and the algorithm’s job is to learn from the examples. I have talked about this a little bit more in <a href="https://medium.com/@manishdharod/why-do-we-compare-machines-with-human-brain-8e41ce097a85">this</a> post.</p><p>Next…. What is a neural network? (coming soon), <a href="https://medium.com/@manishdharod/what-are-the-types-of-problems-that-ml-can-solve-c6a10d01f7c2">What are the types of problems that Machine Learning can solve?</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2aa31f233ad6" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>