<?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 anonymous on Medium]]></title>
        <description><![CDATA[Stories by anonymous on Medium]]></description>
        <link>https://medium.com/@rsvr000?source=rss-6795713bdf6d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*ec4FhYtMOPzT-HNi.jpg</url>
            <title>Stories by anonymous on Medium</title>
            <link>https://medium.com/@rsvr000?source=rss-6795713bdf6d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 05:55:04 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rsvr000/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[Programming MP neuron]]></title>
            <link>https://medium.com/@rsvr000/programming-mp-neuron-2453dc47884e?source=rss-6795713bdf6d------2</link>
            <guid isPermaLink="false">https://medium.com/p/2453dc47884e</guid>
            <dc:creator><![CDATA[anonymous]]></dc:creator>
            <pubDate>Thu, 16 Apr 2020 07:59:17 GMT</pubDate>
            <atom:updated>2020-04-16T07:59:17.652Z</atom:updated>
            <content:encoded><![CDATA[<h4>Before we create MP neuron there are some steps to follow:</h4><h4>step 1:</h4><p>I am importing sample data using sklearn.datasets . Here I am importing breast cancer data . Our job is to tell whether the given sample has benign or malignant cancer.</p><h4>step 2:</h4><p>Next step is to divide the data set to two parts training set and testing set. I am using sklearn.model_selection to divide the data set to test and train set. <br>I can choose the ratio of test split to train split using test_size = ‘ratio’ also I can keep the ratio of benign and malignant ratio in test and train same as original data set using stratify = ‘ class label’ . I can keep the split same every time I run it using random_state = 1</p><h4>step 3:</h4><p>I have real world inputs but MP neuron only takes boolean inputs . So change to inputs to boolean form using pandas cut we want two bins and labels equal to 0 and 1 , this will divide the every feature name values to either 0 or 1 taking some value between them to compare and decide which label will it take. After converting the data to 0’s and 1’s now make the test data and train data to numpy arrays using ‘values’.</p><h4>step 4:</h4><p>Now coming to algorithm ,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/482/1*boBijH2Ke17VNb2XrUEKLw.png" /><figcaption>program to find the efficiency of the MP neuron</figcaption></figure><p><em>the output would be,</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/175/1*AJrQCiDgSJlOhHHRSWdTRA.png" /><figcaption>for b = 28 the efficiency is maximum i.e 84%</figcaption></figure><p>Now since I got b = 28 for train data , now I check this for test data and find the efficiency. I am using sklearn.accuracy_score for finding the accuracy directly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/356/1*0brjgONNidaRQ9OIS2AFzw.png" /><figcaption>Accuracy is 78% for b = 28</figcaption></figure><h4>step 5:</h4><p>To make the MP neuron as template such that it can be used for any data sets ,I am creating class of MP neuron.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/399/1*HetrVmZj5xWqeL-Cm85ZuQ.png" /><figcaption>MP neuron class that calculates best thresholding factor and corresponding efficiency</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2453dc47884e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is sklearn??]]></title>
            <link>https://medium.com/@rsvr000/what-is-sklearn-529edb226eb1?source=rss-6795713bdf6d------2</link>
            <guid isPermaLink="false">https://medium.com/p/529edb226eb1</guid>
            <category><![CDATA[sklearn]]></category>
            <dc:creator><![CDATA[anonymous]]></dc:creator>
            <pubDate>Wed, 15 Apr 2020 13:02:22 GMT</pubDate>
            <atom:updated>2020-04-15T13:29:18.516Z</atom:updated>
            <content:encoded><![CDATA[<p>sklearn is the python <strong>library</strong> .</p><h4>So what is library??</h4><p>library is a collection of functions and methods that allows you to perform many actions without writing your code.</p><h4>let’s continue with sklearn :</h4><p>It is known as Scikit-learn . The sklearn library contains a lot of efficient tools for machine learning and statistical modeling including classification, regression, clustering and dimensionality reduction.</p><h4>let’s now deal with one module in sklearn known as “datasets”</h4><p>For ease of testing, sklearn provides some built-in datasets in sklearn.datasets module.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=529edb226eb1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is Perceptron???]]></title>
            <link>https://medium.com/@rsvr000/what-is-perceptron-9b6e58774d03?source=rss-6795713bdf6d------2</link>
            <guid isPermaLink="false">https://medium.com/p/9b6e58774d03</guid>
            <dc:creator><![CDATA[anonymous]]></dc:creator>
            <pubDate>Wed, 15 Apr 2020 11:17:23 GMT</pubDate>
            <atom:updated>2020-04-15T12:51:21.899Z</atom:updated>
            <content:encoded><![CDATA[<p>Perceptron is the advanced model of MP neuron .</p><h4>what is the necessity of Perception when MP neuron is present??</h4><p>Firstly , MP neuron has certain limitations , they are inputs are boolean and it cannot be used when inputs are inhibitory. So , we developed MP neuron to Perceptron . Perceptron can take real world input and we can also assign weights to the inputs .</p><h4>Taking Inputs:</h4><p>While taking inputs , we can have different range of data . So to minimize the effect of larger value data input to have to standardise the data inputs . The formula for standardising the data is given by :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/230/1*IzMrYNbXhccpsSveY1PwkA.png" /><figcaption>standardisation formula</figcaption></figure><h4>Geometrical Interpretation:</h4><p>MP neuron can only have linear shape with fixed slope and fixed intercept. Even though perceptron can only deal with linearly separable data , it can have wide range of slope values and intercept values.</p><h4>loss :</h4><p>the outputs of both perceptron and MP neuron are boolean. Generally loss is known as :<br>loss = (no. of correctly guessed outputs)/(total outputs)</p><h4>Algorithm:</h4><p>we intialize the weights of the given data , then compute the loss. If we have loss then we again iterate the values of weights and threshold value , and compute loss . We repeat the procedure until we get satisfied with the loss .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/1*hM3v5uEkGUp-uVHGUh_9Xg.png" /><figcaption>algorithm</figcaption></figure><h4>Explaining Algorithm:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/398/1*lcWF117udSbSkfWbJuy2Gg.png" /><figcaption>explanation of algorithm for positive values</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/416/1*jK5KJCHu9MvsoQ6HbWkRVA.png" /><figcaption>explanation of algorithm for negitive values.</figcaption></figure><h4>Summary:</h4><p>Perceptron model is the simplest model for binary classification .</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9b6e58774d03" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is MP neuron]]></title>
            <link>https://medium.com/@rsvr000/what-is-mp-neuron-50e8c356f033?source=rss-6795713bdf6d------2</link>
            <guid isPermaLink="false">https://medium.com/p/50e8c356f033</guid>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[mp-neuron]]></category>
            <dc:creator><![CDATA[anonymous]]></dc:creator>
            <pubDate>Wed, 15 Apr 2020 07:17:03 GMT</pubDate>
            <atom:updated>2020-04-15T10:04:46.667Z</atom:updated>
            <content:encoded><![CDATA[<p>What is MP neuron</p><p>basically this is defined from the biological neuron , since it acts the same way . What is MP neuron and where is it used ? and also what are the functions of it ? we will learn this is in detail in this post.</p><p>So coming to what actually MP neuron is , like lets take an example of our brain , it has to decide whether I should go or not based on some inputs such as :<br>1)if it is raining <br>2)if I have some important works to do <br>3)Or If I am sick<br>So my mind should process the above points and decide whether I should go or not . I any one of the points satisfy then my mind says I should not go or else I am free to go . This is just the simplified view of what happens in our brain to decide a output.</p><p>Similarly , we are trying to make some artificial device that should decide the output based on the input we provide , this is MP neuron . So as summary we can say that MP neuron is just model derived from biological neuron used to derive the output based on the input provided.</p><h4>is this model (MP neuron) still used now ????</h4><p>the answer is NO. Because the inputs of MP neuron are boolean and outputs are also given in boolean form . The next reason is we cannot assign the weights to the inputs of MP neuron i.e what if we have a inhibitory input (Inhibitory inputs are those that have maximum effect on the decision making irrespective of other inputs). So we came up with the more advanced artificial neuron.</p><h4>So where exactly we can use MP neuron :</h4><p>inputs can either be <em>excitatory</em> or <em>inhibitory</em>. Inhibitory inputs are those that have maximum effect on the decision making irrespective of other inputs i.e., if <strong><em>x_3</em></strong> is 1 (not home) then my output will always be 0 i.e., the neuron will never fire, so <strong><em>x_3</em></strong> is an inhibitory input. Excitatory inputs are NOT the ones that will make the neuron fire on their own but they might fire it when combined together. Formally, this is what is going on:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/550/0*IpkCUYGpYRTYW4bC.png" /></figure><p>We can see that <strong><em>g</em>(x)</strong> is just doing a sum of the inputs — a simple aggregation. And <strong><em>theta</em></strong> here is called thresholding parameter. For example, if I always watch the game when the sum turns out to be 2 or more, the <strong><em>theta</em> </strong>is 2 here. This is called the Thresholding Logic.</p><h3>OR Function</h3><p>We already discussed that the OR function’s thresholding parameter <strong><em>theta</em></strong><em> </em>is 1, for obvious reasons. The inputs are obviously boolean, so only 4 combinations are possible — (0,0), (0,1), (1,0) and (1,1). Now plotting them on a 2D graph and making use of the OR function’s aggregation equation <br>i.e., <strong><em>x_1 + x_2 </em>≥<em> </em>1 </strong>using which we can draw the decision boundary as shown in the graph below. Mind you again, this is not a real number graph.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*xf8A8J6HSOF3J2yS.png" /></figure><p>We just used the aggregation equation i.e., <strong><em>x_1 + x_2 =</em>1 </strong>to graphically show that all those inputs whose output when passed through the OR function M-P neuron lie ON or ABOVE that line and all the input points that lie BELOW that line are going to output 0.</p><p>Voila!! The M-P neuron just learnt a linear decision boundary! The M-P neuron is splitting the input sets into two classes — positive and negative. Positive ones (which output 1) are those that lie ON or ABOVE the decision boundary and negative ones (which output 0) are those that lie BELOW the decision boundary.</p><p>Lets convince ourselves that the M-P unit is doing the same for all the boolean functions by looking at more examples (if it is not already clear from the math).</p><h3>this is all about MP neuron . Some of the part of this post is taken from <a href="https://medium.com/u/202534492f47">Akshay L Chandra</a></h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=50e8c356f033" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>