<?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 Durga  on Medium]]></title>
        <description><![CDATA[Stories by Durga  on Medium]]></description>
        <link>https://medium.com/@durgasai2111996?source=rss-67ef25da0a77------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*PrFuYiKcomTn-qvc</url>
            <title>Stories by Durga  on Medium</title>
            <link>https://medium.com/@durgasai2111996?source=rss-67ef25da0a77------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 06:09:40 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@durgasai2111996/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[MCP Neuron]]></title>
            <link>https://medium.com/@durgasai2111996/mcp-neuron-f5758ea91d14?source=rss-67ef25da0a77------2</link>
            <guid isPermaLink="false">https://medium.com/p/f5758ea91d14</guid>
            <dc:creator><![CDATA[Durga ]]></dc:creator>
            <pubDate>Mon, 17 Jul 2023 15:27:34 GMT</pubDate>
            <atom:updated>2023-07-17T15:27:34.859Z</atom:updated>
            <content:encoded><![CDATA[<p>The MCP Neuron First proposed in 1943 by the neurophysiologist Warren McCulloch and the logician Walter Pitts, the McCulloch-Pitts the MCP neuron is a simple mathematical model of a Biological Neuron.</p><p>To understand how this model works, let’s begin with a very simplified explanation of a biological neuron. These are electrically excitable, interconnected nerve cells in the brain which process and transmit information through electrical and chemical signals. These neurons are all connected with each other to form a neural network in the brain. The connections between neurons are known as <em>Synapses</em>. A single neuron in this simplified explanation consists of three parts:</p><ul><li>Soma: the main part of the neuron which processes signals</li><li>Dendrites: branch-like shapes which receive signals from other neurons</li><li>Axon: a single nerve which sends signals to other neurons</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/349/0*2yxQV1rc9lbYF0Sy" /></figure><p>The idea behind the MCP neuron is to abstract the biological neuron into a simple mathematical model. The neuron receives incoming signals as 1s and 0s, takes a weighted sum of these signals and outputs a 1 if the weighted sum is at least some threshold value or a 0 otherwise.</p><p>Formally this mathematical model can be specified as follows:</p><ul><li>Let [x1, … , xm] be a vector of input signals where each xi has a value of 0 or 1</li><li>Let [w1, … , wm] be a vector of corresponding weights where each wi has a value of 0 or 1 or -1.</li><li>Input signals with a weight of 1 are called <em>excitatory</em> since they contribute towards a positive output signal in the sum</li><li>Input signals with a weight of -1 are called <em>inhibitory</em> since they repress a positive output signal in the sum</li><li>Input signals with a weight of 0 do not contribute at all to the neuron</li><li>Then for some threshold value t, we can define a function which outputs 1 if the weighted sum of the input signals is greater than t or 0, otherwise</li></ul><p>The MCP Neuron is illustrated below. Note that the xi input signals are analogous to the <em>dendrites</em>, the activation function is analogous to the <em>soma</em> and the output is analogous to the <em>axon</em>.</p><p>McCulloch’s and Pitt’s original experiment was to see if they could use this model to construct different <a href="http://www.ee.surrey.ac.uk/Projects/CAL/digital-logic/gatesfunc/"><em>logic gates</em></a> by simply specifying what the weights and threshold should be. It turns out the MCP Neuron can be used to model the AND, OR and NOT logic gates, as well as compositions of these three logic gates.</p><h4>Conclusion</h4><p>The MCP Neuron seems almost too simple to represent AI of any kind, yet it is and it isn’t. Formal logic is a fundamental component of intelligence. For any machine to have AI, it surely should be able to comprehend logic gates. The idea being that logic gates can be stringed together to form logic circuits, capable of executing any kind of instruction. This is indeed what underpins modern computational processors. However, we know that CPUs aren’t really “intelligent” — they are just able to process any instruction given to them at lightning speed.</p><p>What makes the MCP Neuron different is that it can reproduce logic gates using a biologically inspired algorithm. In the field of AI, this is a promising achievement, since it almost surely makes sense that any kind of AI should resemble the brain — which is after all the great stage of human intelligence.</p><p>The problem with the MCP Neuron is that every logic gate which it could model (and hence every logic circuit which a collection of neurons could model) has to be pre-programmed. This stands out as a massive contrast to the brain, which learns from experience. Nonetheless, it would take another 14 years before Frank Rosenblatt’s landmark debut of the <em>Perceptron</em> — the first <em>learning algorithm</em> of its kind. The perceptron (and hence artificial neural networks) is a direct extension of the MCP Neuron — making the MCP Neuron a cornerstone of AI, and thus marks the very beginning of <em>deep learning</em>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f5758ea91d14" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Brief History of Deep Learning]]></title>
            <link>https://medium.com/@durgasai2111996/brief-history-of-deep-learning-f094e50f7d29?source=rss-67ef25da0a77------2</link>
            <guid isPermaLink="false">https://medium.com/p/f094e50f7d29</guid>
            <dc:creator><![CDATA[Durga ]]></dc:creator>
            <pubDate>Mon, 17 Jul 2023 14:04:02 GMT</pubDate>
            <atom:updated>2023-07-17T14:04:02.214Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>1.1943: (</strong>Warren McCulloch and Walter Pitts)</h3><p>The foundations of artificial neural networks were laid by researchers such as Warren McCulloch and Walter Pitts, who developed mathematical models of artificial neurons.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*kurerGiyErhk-CiM.jpg" /></figure><p>The first Artificial Neuron was Named as MCP Neuron. This McCulloch Pitts Neuron has very limited capability and has no learning mechanism. Yet it will lay the foundation for artificial neural network &amp; deep learning.</p><h3><strong>2.1958: (</strong>Frank Rosenblatt)</h3><p>Frank Rosenblatt introduced the perceptron, a type of artificial neural network capable of learning and making decisions. However, the limitations of computational power and data availability hindered the progress of deep learning during this time. “The Perceptron: A Perceiving and Recognizing Automaton”, Rosenblatt shows the new avatar of McCulloch-Pitts neuron — ‘Perceptron’ that had true learning capabilities to do binary classification on it’s own.</p><p>An algorithm for pattern recognition based on a two-layer computer neural network using simple addition and subtraction. He also proposed additional layers with mathematical notations, but these wouldn’t be realized until 1975.</p><h3><strong>3.1969:(Marvin)</strong></h3><p>He proved that ,“Perceptrons” in which they show that Rosenblatt’s perceptron cannot solve complicated functions like XOR. For such function perceptrons should be placed in multiple hidden layers which compromises perceptron learning algorithm. This setback triggers the winter of neural network research. And also this perceptron is works on linearly seperable and not works on non-linear seperable dataset.</p><h3><strong>4.1970:</strong></h3><p>Seppo Linnainmaa publishes general method for automatic differentiation for backpropagation and also implements backpropagation in computer code. The research in backpropagation has now come very far, yet it would not be implemented in neural network till next decade.</p><p>In the 1980s and 1990s, research on artificial neural networks continued, but with limited success. The popular backpropagation algorithm, which allows neural networks to adjust their weights during training, was rediscovered, enabling deeper networks to be trained. However, due to challenges such as the “vanishing gradient” problem and the lack of large-scale labeled datasets.</p><h3><strong>5.1971:</strong></h3><p>Alexey Grigoryevich Ivakhnenko continues his research in Neural Network. He creates 8-layer Deep neural network using Group Method of Data Handling (GMDH).</p><h3><strong>6.1986:</strong></h3><p>Geoffrey Hinton, Rumelhart, and Williams in their paper “Learning Representations by back-propagating errors” show the successful implementation of backpropagation in the neural network. It opened gates for training complex deep neural network easily which was the main obstruction in earlier days of research in this area.</p><p>Research on artificial neural networks continued, but with limited success. The popular backpropagation algorithm, which allows neural networks to adjust their weights during training, was rediscovered, enabling deeper networks to be trained. However, due to challenges such as the “vanishing gradient” problem and the lack of large-scale labeled datasets, deep learning remained a niche area of research.</p><p>The breakthrough for deep learning came in the late 2000s when researchers made significant advancements in three key areas: computational power, big data, and algorithmic improvements.</p><p>Computational Power: The availability of powerful graphics processing units (GPUs) allowed researchers to train deep neural networks more efficiently. GPUs were originally designed for rendering graphics but were found to be highly parallelizable and well-suited for deep learning computations.</p><p>Big Data: The proliferation of the internet and the digitalization of various industries led to the generation of vast amounts of data. This availability of labeled datasets, such as ImageNet, enabled the training of deep neural networks on a larger scale, leading to improved performance.</p><p>Algorithmic Improvements: Researchers developed novel deep learning algorithms and architectures that addressed the challenges of training deep neural networks. One notable algorithm is the convolutional neural network (CNN), which demonstrated remarkable success in image recognition tasks. Another breakthrough was the introduction of the deep belief network (DBN) and the subsequent development of deep learning models based on unsupervised learning, such as stacked autoencoders.</p><h3><strong>7. 2012:</strong></h3><p>A significant milestone in deep learning was achieved when a deep convolutional neural network called AlexNet won the ImageNet Large Scale Visual Recognition Challenge, outperforming traditional computer vision techniques by a large margin. This result attracted widespread attention and sparked the rapid adoption and development of deep learning across various domains.</p><p>Since then, deep learning has made significant contributions to various fields, including computer vision, natural language processing, speech recognition, and reinforcement learning. Techniques such as recurrent neural networks (RNNs), long short-term memory (LSTM) networks, and generative adversarial networks (GANs) have further expanded the capabilities of deep learning models.</p><p>The field of deep learning continues to advance rapidly, with ongoing research focused on improving model interpretability, robustness, and training efficiency. Deep learning has revolutionized AI applications and has become a fundamental tool in many industries, from healthcare and finance to autonomous driving and recommender systems.</p><p>AlexNet, a GPU implemented CNN model designed by Alex Krizhevsky, wins Imagenet’s image classification contest with accuracy of 84%. It is a huge jump over 75% accuracy that earlier models had achieved. This win triggers a new deep learning boom globally.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f094e50f7d29" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Difference Between ML and DL]]></title>
            <link>https://medium.com/@durgasai2111996/difference-between-ml-and-dl-c053e4e31d79?source=rss-67ef25da0a77------2</link>
            <guid isPermaLink="false">https://medium.com/p/c053e4e31d79</guid>
            <dc:creator><![CDATA[Durga ]]></dc:creator>
            <pubDate>Mon, 17 Jul 2023 11:38:39 GMT</pubDate>
            <atom:updated>2023-07-17T11:38:39.133Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/proxy/0*-HfcIKxJNMvNROyS.png" /></figure><h3><strong>Machine Learning:</strong></h3><p>ML is Subset of Artificial Intelligence. It is a tool by using which we are going to Copy or Mimic Natural Intelligence. That focuses on the development of algorithms and statistical models that enable computers to learn and make predictions or decisions without being explicitly programmed. It involves training algorithms on large datasets to identify patterns and relationships and then using these patterns to make predictions or decisions about new data.</p><p>when ever we going to finding a function we use statistical concept. Machine Leaning allows the computers to learn from the experiences by its own, use statistical methods to improve the performance and predict the output without being explicitly programmed.</p><p><strong>y=f(x) , </strong>here y = output , x = input , f = function</p><p>it shows the relationship of input’s and output’s and gives the best fit function.</p><h4>How does Machine Learning work?</h4><p>The working of machine learning models can be understood by the example of identifying the image of a cat or dog. To identify this, the ML model takes images of both cat and dog as input, extracts the different features of images such as shape, height, nose, eyes, etc., applies the classification algorithm, and predict the output. Consider the below image:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/568/0*zU-Yi76GfBMEL-h3.png" /></figure><h3>Deep Learning:</h3><p>DL is subset of ML and AI. It works technically in the same way as machine learning does, but with different capabilities and approaches. It is inspired by the functionality of human brain cells, which are called neurons, and leads to the concept of artificial neural networks. It is also called a deep neural network or deep neural learning.</p><p>when ever we going to finding a function we use Logical Structure.</p><h4>How Deep Learning Works?</h4><p>We can understand the working of deep learning with the same example of identifying cat vs. dog. The deep learning model takes the images as the input and feed it directly to the algorithms without requiring any manual feature extraction step. The images pass to the different layers of the artificial neural network and predict the final output.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/570/0*pVHvla669tU6ktsa.png" /></figure><h3><strong>Main Difference between ML and DL:</strong></h3><ol><li>In ML the function can use Statistical Concept but in DL function can use Logical Structure.</li><li>When we have less amount of data then we use ML. Because if the amount of data has increases the performance also increase but once upon a stage the performance not increases and it will be stable.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/774/1*wwcPbAgInXaSPKdvyMzJ4A.png" /></figure><p>But when we have a large amount of data then there we will use DL. If data increases in DL the performance should also be increases. The below graph shows the how performance increases.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/636/1*fQkY6HHXJBqR6FiPtN0oCQ.png" /></figure><p>3. In ML Training time is Less, But in DL Training time is High.</p><p>4. In ML Hardware requirements are CPU’s , But in DL High performance Hardware are required like GPU’s / TPU’s.</p><p>5. ML is easy Interpretability, But DL is very very difficult to Interpretability.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c053e4e31d79" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Gini Index Vs. Entropy For Decision Trees (Python)]]></title>
            <link>https://medium.com/@durgasai2111996/gini-index-vs-entropy-for-decision-trees-python-1a3fdad4ab29?source=rss-67ef25da0a77------2</link>
            <guid isPermaLink="false">https://medium.com/p/1a3fdad4ab29</guid>
            <dc:creator><![CDATA[Durga ]]></dc:creator>
            <pubDate>Tue, 30 May 2023 08:44:08 GMT</pubDate>
            <atom:updated>2023-05-30T08:44:08.934Z</atom:updated>
            <content:encoded><![CDATA[<h3>Gini Index:</h3><p>The Gini index or Gini impurity is the measure of impurity or heterogeneity of a set of data samples. The Gini indexing is a decision tree criterion.</p><p>It is commonly used in decision tree algorithms to determine the best split point for dividing the data based on a feature.</p><p>The Gini index calculates the probability of misclassifying a randomly chosen element if it were randomly labeled according to the distribution of classes in the subset. It ranges from 0 to 1, where 0 indicates that the subset is pure (all samples belong to the same class), and 1 indicates maximum impurity (the subset contains an equal number of samples from each class).</p><p><strong>Gini index Formula:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/442/0*BYIis5iVAMJblG6i.jpeg" /></figure><p>Where each random p<em>i</em> is our probability of that point being randomly classified to a certain class.</p><p>To calculate the Gini index, the following steps are typically followed:</p><ol><li>Calculate the proportion of each class in the subset.</li><li>Square each proportion and sum the squared values for each class.</li><li>Subtract the sum from 1 to obtain the Gini index.</li></ol><p>The formula for the Gini index is as follows:</p><p>Gini Index = 1 — (p_1^2 + p_2^2+ … + p_n^2)</p><p>where p_1, p_2, …, p_n are the proportions of each class in the subset.</p><p>When building decision trees, the Gini index is used to evaluate the quality of potential splits. The split that minimizes the Gini index is chosen, as it results in the greatest reduction in impurity or maximizes the homogeneity of the resulting subsets.</p><p>In summary, the Gini index is a measure of impurity used in machine learning to determine the best splits in decision tree algorithms. It helps in creating more accurate and effective decision trees by selecting the most informative features to split the data.</p><h3>Entropy:</h3><p>Entropy is simply “how much variance the dataset has.”</p><p>In machine learning, entropy is a concept used to measure the impurity or disorder of a set of data samples. It is commonly used as a criterion for evaluating the quality of splits in decision tree algorithms.</p><p><strong>Entropy Formula:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/442/0*e89g6Rtl9yDp0-e9" /></figure><p>Entropy in machine learning is closely related to the concept of information theory. It measures the uncertainty or randomness in a dataset based on the distribution of classes or labels within that dataset. A dataset with high entropy indicates a diverse mixture of classes, while low entropy suggests a more homogeneous dataset with a dominant class.</p><p>The formula to calculate entropy is as follows:</p><p>Entropy = — sum(p_i * log2(p_i))</p><p>where p_i represents the proportion of samples belonging to the i-th class in the dataset.</p><p>In this formula, the logarithm is typically base 2, resulting in the entropy being measured in bits. The entropy value ranges from 0 to log2(n), where n is the number of classes. A value of 0 indicates a completely pure dataset where all samples belong to the same class, and higher values represent higher levels of impurity or uncertainty.</p><p>Entropy is commonly used in decision tree algorithms, such as the ID3 or C4.5 algorithms, to determine the best attribute to split the data. The split that maximizes the reduction in entropy (i.e., minimizes the disorder) is chosen as the optimal split.</p><p>By using entropy as a criterion, decision trees can effectively partition the data based on the most informative features, resulting in more accurate and effective predictions.</p><p>In summary, entropy in machine learning is a measure of impurity or disorder in a dataset. It quantifies the uncertainty within the data based on the distribution of classes or labels. It is widely used in decision tree algorithms to guide the process of splitting the data and building accurate predictive models.</p><h3>Advantages and Difference:</h3><p>The Gini Index and the Entropy have two main differences:</p><ul><li>Gini Index has values inside the interval [0, 0.5] whereas the interval of the Entropy is [0, 1]. In the following figure, both of them are represented. The gini index has also been represented multiplied by two to see concretely the differences between them, which are not very significant.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/404/0*avdB7itYtq-oKIU7.png" /></figure><ul><li>Computationally, entropy is more complex since it makes use of <strong>logarithms </strong>and consequently, the calculation of the Gini Index will be faster.</li></ul><p>Therefore, we are going to analyze the impact on the training time when using one criterion or the other. For that purpose, different synthetic datasets have been generated. All these datasets have 10 features and they can be grouped into 4 groups, depending on whether the features are informative, redundant, repeated, or random:</p><h3>Conclusions</h3><p>In this post, we have compared the gini and entropy criterion for splitting the nodes of a decision tree.</p><p>On the one hand, the gini criterion is much faster because it is less computationally expensive.</p><p>On the other hand, the obtained results using the entropy criterion are slightly better.</p><p>Nevertheless, as the results are so similar, it <strong>does not seem to be worth the time invested in training when using the entropy criterion</strong>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1a3fdad4ab29" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>