<?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 Charishma Maradapu on Medium]]></title>
        <description><![CDATA[Stories by Charishma Maradapu on Medium]]></description>
        <link>https://medium.com/@maradapucharishma?source=rss-8ab08efb26d1------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*uYFOdFaGa9cB-nwmvxoUrQ.jpeg</url>
            <title>Stories by Charishma Maradapu on Medium</title>
            <link>https://medium.com/@maradapucharishma?source=rss-8ab08efb26d1------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 02:56:12 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@maradapucharishma/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[Deep Network Challenges]]></title>
            <link>https://medium.com/@maradapucharishma/deep-network-challenges-965b79f8f1fe?source=rss-8ab08efb26d1------2</link>
            <guid isPermaLink="false">https://medium.com/p/965b79f8f1fe</guid>
            <category><![CDATA[neural-network-algorithm]]></category>
            <category><![CDATA[vanishing-gradient]]></category>
            <category><![CDATA[overfitting]]></category>
            <category><![CDATA[vanishing]]></category>
            <category><![CDATA[deep-learning]]></category>
            <dc:creator><![CDATA[Charishma Maradapu]]></dc:creator>
            <pubDate>Tue, 11 Jun 2024 09:01:27 GMT</pubDate>
            <atom:updated>2024-06-11T09:01:27.212Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction:</h3><p>Deep learning has revolutionized various fields, but building effective deep neural networks comes with its challenges. Two significant problems encountered in the development of deeper networks are <strong>overfitting</strong> and the <strong>vanishing/exploding gradient </strong>issues. These challenges can hinder the performance and training of neural networks.</p><p>What is Overfitting?</p><p>Overfitting means high variance. Overfitting occurs when you have low bias and high variance. When a model learns too much from the training data, it won’t perform well on new, unseen data because it captures the noise in the training data as well. In other words, it captures the noisy data too.</p><p>Overfitting = Training Error ↓ validation error ↑</p><p>Overfitting occurs when the training error decreases (↓) while the validation error increases (↑). It’s akin to the model ‘mugging up’ or memorizing the training data without truly learning the underlying patterns.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*S2YxDOdMX5h02jHd.jpeg" /><figcaption>Overfitting</figcaption></figure><h3>Reasons Behind Overfitting :</h3><p>Overfitting occurs in deep neural networks due to several reasons:<br><strong>1. Complex Logical Structure : </strong>When the architecture of the neural network is highly complex, with many layers and neurons, it can model the training data very closely, including its noise and minor fluctuations. This complexity allows the network to fit the training data too well, leading to overfitting.</p><p><strong>2. Insufficient Data : </strong>When there is not enough training data relative to the complexity of the model, the network has less information to learn general patterns. As a result, it may learn the specific details and noise in the training data, causing overfitting.</p><p><strong>3. Optimization Equation : </strong>Overfitting happens when the optimization process makes the model fit the training data too closely, especially if regularization is missing or the learning rate is not set correctly.</p><p><strong>4. Number of epochs : </strong>Training for too many epochs can cause the model to memorize the training data, decreasing training error (↓) but increasing validation error (↑).</p><h3>Strategies to Overcome Overfitting in Deep Learning</h3><h4>Overfitting Issue by Complex Structure :</h4><p>Overfitting can also arise from having a complex network structure, which includes a higher number of hidden layers and neurons. As the number of neurons and hidden layers increases, the network’s capacity to memorize the training data also increases, leading to overfitting. This happens because the model becomes too flexible and starts capturing noise in the training data instead of learning the underlying patterns.</p><h3>Causes of Overfitting Due to Complex Structure</h3><ol><li><strong>Excessive Neurons</strong>: A large number of neurons in each layer can lead to the model becoming overly complex, fitting even the smallest fluctuations in the training data.</li><li><strong>Many Hidden Layers</strong>: Deep networks with many hidden layers can capture intricate details of the training data, including noise, leading to poor generalization on unseen data.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*zGsqKQd5r9Ddgszv.png" /><figcaption>Model Complexity</figcaption></figure><p><strong>Solutions to overfitting caused by Complex Structure :</strong></p><p><strong>Reduce Network Complexity</strong>:</p><p><strong>Optimal Architecture Search</strong>: Experiment with different architectures to find the simplest network that performs well on your task. Start with fewer layers and neurons and gradually increase complexity if necessary.</p><h4>Overfitting Issue by Insufficient Data :</h4><p>Overfitting can also occur when there is insufficient data to train a model effectively. When the training dataset is small, the model tends to memorize the training examples rather than learning general patterns. This results in poor performance on new, unseen data.</p><h3>Causes of Overfitting Due to Insufficient Data</h3><ol><li><strong>Limited Variability</strong>: A small dataset lacks the variability needed for the model to generalize well, leading it to overfit the specific samples it has seen.</li><li><strong>Noise Sensitivity</strong>: With fewer examples, the model is more likely to learn noise and anomalies in the training data, mistaking them for underlying patterns.</li></ol><h3>Solutions to Overfitting Caused by Insufficient Data</h3><ol><li><strong>Data Augmentation</strong>:</li></ol><p><strong>Augment Training Data</strong>: Use techniques such as rotation, flipping, scaling, cropping, and other transformations to artificially increase the size and diversity of the training dataset. This helps the model learn more general features and reduces overfitting.</p><p><strong>2. Transfer Learning</strong>:</p><p><strong>Pre-trained Models</strong>: Use models pre-trained on large datasets and fine-tune them on your smaller dataset. Transfer learning leverages the knowledge the model has gained from the larger dataset, improving performance and reducing overfitting.</p><p><strong>3. Simplify the Model</strong>:</p><p><strong>Reduce Complexity</strong>: Use a simpler model architecture with fewer parameters (e.g., fewer layers and neurons). A less complex model is less likely to overfit a small dataset.</p><h4><strong>Overfitting Issue by Optimization Equation:</strong></h4><p>When using the optimization equation, regularization terms are employed to mitigate overfitting.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/0*-xYBJ-IWvgz2uaQI.png" /></figure><h4>Ridge — L2 Regularization :</h4><p>In Deep Neural Networks, L2 regularization is commonly used. It aids in reducing the magnitudes of the weights.L2 dont make un important features to zero, it makes nearly equals to zero</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/563/0*JINd_kzsCTsCAay-.png" /><figcaption>Ridge</figcaption></figure><h4>Lasso — L1 Regularization :</h4><p>L1 regularization can be challenging to compute due to its modulus, leading to increased training time. This is why it’s less favored in Deep Learning.</p><p>L1 regularization is preferred for feature selection as it can set unnecessary weights to zero, resulting in sparser models. However, this sparsity may lead to loss of connections. On the other hand, L2 regularization does not set unimportant features exactly to zero but reduces them close to zero, preserving connections.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/437/0*obzyaU6MFxj1zylC.png" /><figcaption>Lasso</figcaption></figure><h4>Elastic Net — L1L2 Regularization :</h4><p>Elastic Net regularization involves balancing both L1 and L2 terms.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*FkOMKj9PcinUgSXn" /></figure><p>The regularization parameter (λ) controls the trade-off between fitting the data well and maintaining simplicity in the model. A small λ may lead to overfitting, while a very high λ may result in underfitting.</p><p>We use Regularization to reduce variance, but in the process of reducing variance bias will increase by using regularization…</p><p>So there comes <strong><em>Drop out</em></strong></p><h3>Drop Out:</h3><p>✓ Drop out is a technique by using which we can achieve regularization(to overcome overfitting) in Deep Neural Network.</p><p>✓ Drop out is trying to introduce randomness because of this randomness it achieves regularization.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/0*nrQKZzNArBfxejNR.jpg" /></figure><h4>How it works :</h4><p>⩥ In a neural network, using the same logical structure for training in all epochs can lead to overfitting.</p><p>⩥ To counter this, dropout creates new networks for every epoch by randomly altering the neural network structure.</p><p>⩥ This randomness prevents the model from giving too much importance to any particular feature, ensuring more equal importance across features.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/0*nr_d8X5RKpjEQDwF" /><figcaption>Working of Dropout</figcaption></figure><p><strong>Drop Out Rate :</strong></p><p>✓ Dropout rate is denoted as p.</p><p>✓ The dropout rate value is always between ‘0’ and ‘1’.</p><p>✓ Dropout is applied only during training.</p><p>✓ You can apply dropout to each layer except the “output layer”.</p><p>✓ p=0.5 In every epoch, it randomly drops 50% of neurons from the respective layer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/0*kH9gnjq5tWvkHizP.png" /><figcaption>Drop out rate</figcaption></figure><p>✓ Neurons are like features in hidden layers; dropout helps in generalizing by dropping neurons.</p><p>✓ If dropout is applied to the output layer, it might drop some classes, hence it should not be applied to the output layer.</p><p>✓ Dropout is applied for each epoch, changing neurons for each epoch.</p><p>✓ Due to overfitting, a model may capture noisy points, resulting in a non-smooth curve.</p><p>✓ You can use a different dropout rate for each layer or a constant rate for every layer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*-vhRexzwkWq9ve2o.png" /></figure><p><strong>Disadvantages of Dropout :</strong></p><p>✖️Dropout can increase training time due to instability in loss. The model changes for every epoch, causing the loss to fluctuate between unstable and stable states, which prolongs the convergence process.</p><h3>Overfitting Issue by Number of Epochs :</h3><p>Early stopping is a technique used to solve the problem of overfitting caused by an excessive number of epochs.</p><p>Number of Epochs (↑) Overfitting (↑)</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*FulO2WAdSUmngGqbqi920Q.png" /></figure><h4>Early Stopping :</h4><p>Early stopping will halt the model training whenever the model starts to overfit. You can set a high number of epochs, but the training will stop based on monitoring metrics such as loss or accuracy.</p><p><em>Parameters of Early Stopping</em></p><p><strong>1.Metric to Monitor</strong>:</p><ul><li>Loss - Validation Loss</li><li>Accuracy - Validation Accuracy</li></ul><p>For each epoch, the chosen metric is monitored to determine the model’s performance.</p><p><strong>2.</strong> <strong>Threshold :</strong></p><p>A specific value set for the monitored metric. If the improvement is below this threshold, it could trigger early stopping (if combined with patience).</p><p><strong>3. Patience :</strong></p><p>The number of epochs to wait for an improvement in the monitored metric before stopping the training. If there is no improvement within the specified patience period, training stops. For example, if patience is set to 1, the training will stop if there is no improvement after 1 epoch.</p><h3>Vanishing Gradient/Exploding Gradient</h3><p>what is vanishing/Exploding Gradient?</p><h4>Vanishing Gradient :</h4><p>As the backpropagation algorithm advances backwards from the output layer towards the input layer, the gradients can become smaller and smaller, approaching zero. This leads to negligible weight updates in the initial or lower layers, preventing the gradient descent from converging to the optimum.</p><h4>Exploding Gradient :</h4><p>Conversely, in some cases, the gradients can become progressively larger as the backpropagation algorithm progresses. This results in very large weight updates, causing the gradient descent to diverge. This often happens when there are too many hidden layers, created to model complex relationships.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*2S_xzhSypWDzdG12.png" /></figure><p>Reasons Behind Vanishing/Exploding Gradient:</p><ol><li>Activation function</li></ol><p>Using activation functions like sigmoid or tanh can lead to vanishing/exploding gradients.</p><p>2. Weight Initialization</p><p>Improper weight initialization can exacerbate vanishing/exploding gradient problems.</p><h4>Solutions to Vanishing/Exploding Gradient Issues caused by Activation Fucntion :</h4><p><strong>Switch to ReLU:</strong> Replacing sigmoid or tanh activation functions with ReLU (Rectified Linear Unit) or its variants (Leaky ReLU, Parametric ReLU) can mitigate vanishing gradient problems because these functions do not squash the gradients in a way that causes them to vanish.</p><h4>Solutions to Vanishing/Exploding Gradient Issues caused by Weight Initialization:</h4><ul><li><strong>He Initialization:</strong> For layers with ReLU activation functions, use He initialization (initialize weights from a normal distribution with mean 0 and variance 2/n​, where n is the number of input units in the layer).</li><li><strong>Xavier Initialization:</strong> For layers with sigmoid or tanh activation functions, use Xavier initialization (initialize weights from a normal distribution with mean 0 and variance 1/n).</li></ul><h3>Conclusion :</h3><p>To sum up, when training neural networks, we need to watch out for two things: overfitting and vanishing/exploding gradients. Overfitting occurs when our model learns too much from the training data, so we use tricks like regularization to keep it in check. Vanishing/exploding gradients happen when the signals guiding our learning become too weak or too strong, which we can fix by choosing the right activation functions and initializing weights carefully. By addressing these challenges, we can make sure our neural networks learn well and work reliably in the real world.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=965b79f8f1fe" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SQL Keys Decoded : Quick Reference]]></title>
            <link>https://medium.com/@maradapucharishma/sql-keys-decoded-quick-reference-f1b6d08e0be3?source=rss-8ab08efb26d1------2</link>
            <guid isPermaLink="false">https://medium.com/p/f1b6d08e0be3</guid>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[sql-keys]]></category>
            <category><![CDATA[sql-database-management]]></category>
            <category><![CDATA[sql-database]]></category>
            <dc:creator><![CDATA[Charishma Maradapu]]></dc:creator>
            <pubDate>Mon, 20 May 2024 06:52:43 GMT</pubDate>
            <atom:updated>2024-05-20T06:53:39.183Z</atom:updated>
            <content:encoded><![CDATA[<h3>SQL Keys Decoded : Quick Reference</h3><p><strong>Keys in SQL :</strong></p><p>In SQL, the different types of keys are the set of attributes used to identify a specific row from a table and to find or create the relation between two or more tables. For example, the keys identify the rows by combining one or more sets of columns. SQL provides different types of keys such as super key, candidate key, etc. Generally, all the SQL keys use constraints to uniquely identify the rows from the larger set of datasets.</p><h3><strong>Types of SQL Keys :</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bkllAlxCjRji_HD0WK27kQ.png" /><figcaption>Types of SQL Keys</figcaption></figure><p>We are defining here a relational database having 2 tables:</p><h4><strong>Employee Table :</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/770/1*0PxtR4ZEkD_czD8uWOJi_A.png" /></figure><h4><strong>Department Table :</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/778/1*udDI8Fq8Dl_c596sPnsu-Q.png" /></figure><h3><strong>1.Candidate Key :</strong></h3><p>✓ A Candidate Key is a set of one or more columns that can uniquely identify a record in a table.</p><p>✓ There can be multiple Candidate Keys in one table.</p><p>✓ Each Candidate Key can function as a Primary Key.</p><p>✓ The value for a Candidate Key is always unique and non-null for all records.</p><p>✓ Every table must have at least one Candidate Key.</p><p>✓ A Candidate Key is a minimal Super Key, meaning it is a Super Key with no redundant attributes.</p><p>✓ The value of the Candidate Key is unique and cannot be NULL for any record.</p><h4><strong>Example :</strong></h4><p>Emp_Id is the candidate key for relation Employee.</p><h3><strong>2.Primary Key :</strong></h3><p>✓ A primary key is a set of one or more fields/columns of a table that uniquely identify a record in a database table.</p><p>✓ It cannot accept null or duplicate values.</p><p>✓ Only one candidate key can be the primary key.</p><p>✓ Out of all the candidate keys possible or created for a specific table, there should be only one key used to retrieve unique records from the table.</p><p>✓ It is a thumb rule that there can be only one primary key for a table.</p><p>✓ It can identify only one record at a time.</p><p>✓ A primary key is also called as unique identifier of a record.</p><h4><strong>Example :</strong></h4><p>Emp_Id is the primary key for relation Employee.</p><h3><strong>3.Super Key :</strong></h3><p>✓ A super key is a set of one or more columns that can be used to identify a record uniquely in a table.</p><p>✓ Example: Primary key, unique key, and alternate key are subsets of super keys.</p><p>✓ A super key can contain multiple columns that might not be able to identify records in a table independently, but when grouped with certain columns, they can identify records uniquely.</p><p>✓ A super key supports NULL values.</p><p>✓ Adding zero or more columns to the candidate key generates the super key.</p><p>✓ A candidate key is a super key, but the reverse is not true.</p><h4><strong>Single Column Super Keys :</strong></h4><p>A single column super key uniquely identifies each record in the table. In this table, the following columns can serve as single column super keys if their values are unique across all records:</p><h4><strong>Example :</strong></h4><p>⩥ Emp_Id: Each Emp_Id value is unique for each employee.</p><p>⩥ Email: Each Email value is unique for each employee.</p><h4><strong>Multiple Column Super Keys :</strong></h4><p>Multiple column super keys are combinations of columns that together uniquely identify each record. Here are some examples:</p><h4><strong>Example :</strong></h4><p>⩥ Emp_Id, Mobile_No: Even though Emp_Id alone is sufficient, this combination is also a super key.</p><p>⩥ Emp_Id, Email: Similarly, combining Emp_Id with Email forms a super key.</p><p>⩥ Mobile_No, Email: If both Mobile_No and Email are unique for each employee, their combination forms a super key.</p><h3><strong>4.Alternate Key :</strong></h3><p>✓ An Alternate Key is a key that can work as a primary key.</p><p>✓ It is a candidate key that currently is not a primary key.</p><p>✓ It is also called a secondary key.</p><p>✓ The alternate key is a column or collection of columns in a table that can uniquely identify each row in that table.</p><p>✓ Every table in the database can have multiple options for a primary key, but only one column can be set as the primary key.</p><p>✓ All keys that are not primary keys are called the alternate keys of that table.</p><p>✓ It maintains data integrity by providing a backup option for uniquely identifying records.</p><p>✓ While the primary key is the direct path to distinctiveness, the alternate key is a secondary assurance.</p><p>✓ This secondary assurance becomes crucial when the primary key might not be feasible due to complexity, length, or other considerations.</p><p>✓ Alternate keys are very flexible.</p><p>✓ They cater to scenarios where different parts of the database’s user base or application require unique identification using other attributes.</p><p><strong>Example :</strong></p><p>In the Employee relation, Emp_Id, as well as Mobile_No both, are candidate keys but Mobile_No will be an alternate key (only one out of many candidate keys)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/946/1*gOHfyhz7j-sCH6DzQHOEbg.png" /></figure><h3><strong>5.Composite/Compound Key :</strong></h3><p>✓ A composite key is a combination of more than one field/column of a table.</p><p>✓ It can be a candidate key or a primary key.</p><p>✓ It becomes important when it is not possible for a single column/attribute to uniquely identify all the records of a table.</p><p>✓ It acts as a primary key if there is no primary key in a table.</p><p>✓ To create a composite key, you need to define multiple columns as primary or unique.</p><p>✓ This combination of columns ensures that each set of values is unique and no two rows have the same values in all the specified columns.</p><h3><strong>6.Unique Key :</strong></h3><p>✓ Unique Key can be a column or set of columns that can uniquely identify the tuple from the database.</p><p>✓ One or more fields can be declared as a unique Key.</p><p>✓ The unique Key column can also hold the NULL value.</p><p>✓ The use of unique keys improves the performance of data retrieval.</p><p>✓ It makes searching for records from the database much faster and efficient.</p><h4><strong>Example :</strong></h4><p>In the Employee relation, a Unique Key could be applied to the email column, allowing null values to be present while maintaining the uniqueness requirement for non-null entries.</p><h3><strong>7.Foreign Key :</strong></h3><p>✓ A foreign key is a column in one table that points to a primary key in another table.</p><p>✓ When one table points to another, it’s called referencing the second table, while the second table is referenced.</p><p>✓ The column in the referencing table is called the foreign key, and in the referenced table, it’s the primary key.</p><p>✓ Foreign Key may have duplicate and NULL values if it is defined to accept NULL values.</p><h4><strong>Example :</strong></h4><p>Emp_Id in the Department table is a foreign key to Emp_Id in Employee relation.</p><h3><strong>Difference between Primary Key and Composite Key :</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/926/1*neeV3kLxSibsqtWALK2xgg.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f1b6d08e0be3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[MCP Neuron Unleashed: A Deep Dive into AI’s Foundational Concept]]></title>
            <link>https://medium.com/@maradapucharishma/mcp-neuron-a0ac6a98a165?source=rss-8ab08efb26d1------2</link>
            <guid isPermaLink="false">https://medium.com/p/a0ac6a98a165</guid>
            <dc:creator><![CDATA[Charishma Maradapu]]></dc:creator>
            <pubDate>Wed, 08 May 2024 15:47:53 GMT</pubDate>
            <atom:updated>2024-05-08T15:52:13.756Z</atom:updated>
            <content:encoded><![CDATA[<h3>MCP Neuron:</h3><p>This is the first type of artificial neuron that tries to imitate how our brain cells work. It was created by Warren McCulloch, who had a background in biology, and Walter Pitts, who was a mathematician and logician.</p><h4><strong>Warren McCulloch:</strong></h4><p>He was a biologist who believed that real neurons (brain cells) were very complex but thought they could be explained in a simpler way.</p><h4><strong>Walter Pitts:</strong></h4><p>He was a mathematician and logician, which means he was really good at working with numbers and patterns. He helped turn the idea of a simplified biological neuron into something that could be understood using mathematical rules.</p><h4><strong>Biological Neuron:</strong></h4><p>This is a type of cell in our brains that helps us think and process information.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/0*YkxmkGGUHTZfQWr5.png" /><figcaption>Structure of Biological Neuron</figcaption></figure><h4><strong>Understanding How Neurons Work: A Simple Guide</strong></h4><h4>1.Dendrites:</h4><p>Dendrites are like the ears of a neuron. They listen for electrical messages, which we call inputs, from other neurons and pass them to the soma.</p><h4>2.Inputs:</h4><p>Inputs are the electrical messages received by the dendrites. They carry information from other neurons.</p><h4>3.Soma:</h4><p>The soma, or cell body, is like the brain of the neuron. It processes the electrical messages it receives from the dendrites and decides what to do next.</p><h4>4.Axon:</h4><p>The axon is like a long wire that carries the decision made by the soma. It sends this decision as an electrical signal to other neurons.</p><h4>5.Axon Terminal:</h4><p>At the end of the axon, the electrical signal reaches the axon terminal. From here, it jumps to the next neuron through a small gap called the synapse.</p><h4>6.Synapse:</h4><p>The synapse is like a bridge between neurons. It’s where the electrical signal jumps from one neuron to another, allowing them to communicate.</p><p>McCulloch and Pitts made a simplified version of this cell in their experiments.</p><h4><strong>Simplified version of Biological Neuron:</strong></h4><ul><li><strong>Take Input:</strong> Like real neurons, this artificial one takes in information from other neurons or from the environment.</li><li><strong>Process: </strong>Using mathematical rules created by Pitts, it does something with this information, like adding it up or deciding if it’s important.</li><li><strong>Provide Output:</strong> After processing, it sends out its own signal to other neurons, telling them what it thinks or what to do next.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/850/1*-kVzaLlTrvUtaC06v4AKhA.png" /></figure><h3><strong>Artificial Neuron :</strong></h3><p>An artificial neuron is a simplified mathematical model inspired by the workings of biological neurons in the human brain. It takes in inputs, processes them using mathematical operations, and produces an output. These neurons are the building blocks of artificial neural networks, fundamental to artificial intelligence and machine learning algorithms. They play a crucial role in tasks such as pattern recognition, classification, and decision-making, allowing machines to learn from data and make predictions.</p><h3><strong>Mathematical Representation of Neuron:</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/850/1*jz6w8cPM_S_TlIPq2FeZmg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/369/0*vyv_ZTrHywFa-CcB.png" /></figure><p>Where,</p><p>g is going to acts as dendrite</p><p>f is going to acts as Soma</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/550/0*Vz4dY0dG-Auz0RHv.png" /></figure><p>g(x) is a simple aggregation function (summation) where it takes all your inputs and merges them with the help of the mathematical addition function.</p><p>f(x) is thresholding function</p><h4>Activation= Function :</h4><p>Neurons not always provide output</p><p>✓ It provides output when it gets sufficient information only</p><p>so that’s why we are using <strong>Thresholding function</strong> or <strong>Activation function</strong></p><p>✓ It generates output if and only if it satisfies the condition or threshold</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*5R3G-rCLyOegqJYG.jpg" /><figcaption>Activation Function</figcaption></figure><h4><strong>MCP Neuron Conditions :</strong></h4><ul><li>Inputs should be boolean.</li><li>f(x) can only learn boolean relationships.</li><li>The output of the MCP Neuron is boolean.</li></ul><p><strong>Case-1 :</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*TYcRbhBTY2EDvuN1.jpg" /></figure><p>→Threshold for And for binary is θ = 2</p><p>→Same with or function</p><p>→But for XOR function, MCP neuron doesn’t work because it doesn’t represent a linear relationship between inputs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*u_gl4Ix6pFIE6TZo.jpg" /></figure><h4><strong>Advantages of MCP Neuron:</strong></h4><ul><li>Easy to understand and implement.</li><li>Foundation for Neural Networks.</li><li>Demonstrated the potential for complex computations using simple processing units.</li></ul><h4><strong>Disadvantages of MCP Neuron :</strong></h4><ul><li>It can only learn linear Boolean relationships.</li><li>The threshold needs to be manually set.</li><li>Inputs must be Boolean, and the output is always Boolean (unable to handle real values).</li><li>It assigns equal importance to all input features.</li></ul><h4><strong>Conclusion :</strong></h4><p>In conclusion, the MCP neuron, despite its simplicity, has paved the way for the development of artificial intelligence. Its straightforward design and foundational principles have not only made it accessible for learning and implementation but have also laid the groundwork for more complex neural networks. Through its demonstration of the potential for complex computations using simple processing units, the MCP neuron has played a crucial role in shaping the future of AI technology.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a0ac6a98a165" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[History of Deep Learning]]></title>
            <link>https://medium.com/@maradapucharishma/history-of-deep-learning-70bc5990ad86?source=rss-8ab08efb26d1------2</link>
            <guid isPermaLink="false">https://medium.com/p/70bc5990ad86</guid>
            <dc:creator><![CDATA[Charishma Maradapu]]></dc:creator>
            <pubDate>Wed, 08 May 2024 09:19:03 GMT</pubDate>
            <atom:updated>2024-05-08T09:56:58.234Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>What is Deep Learning ?</strong></p><ul><li>Deep learning is like teaching a computer to think and learn like a super-smart friend. Just as you’d show your friends lots of pictures to help them recognize things, deep learning shows the computer tons of examples so it can understand things, make smart choices, and even predict what might happen next. It’s like giving the computer a special pair of glasses that helps it see the world in an amazing new way.</li><li>Deep learning is a subfield of artificial intelligence (AI) that focuses on the development of algorithms and models inspired by the Logical structure and function of the human brain’s neural networks.</li><li>Deep learning is a subset of machine learning, which itself is a subset of AI.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/626/0*bIBL9DGVohZ1BMSV.jpg" /></figure><p><strong>Applications of Deep Learning :</strong></p><p>✓ Image Recognition</p><p>✓ Speech Recognition</p><p>✓ Language Translation</p><p>✓ Autonomous Vehicles</p><p>✓ Recommendation Systems</p><p>✓ Healthcare Diagnostics</p><p>✓ Natural Language Understanding</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/647/0*TWMY0kX7Y48IXgex.jpg" /></figure><h3><strong>History of Deep Learning :</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*6o4wthjp4Ena2OzX9PU1Ng.png" /></figure><h4><strong>The Birth of Artificial Neurons: The McCulloch-Pitts Neuron Model (1943)</strong></h4><p>In 1943, Warren McCulloch and Walter Pitts came up with a clever idea to mimic how our brain cells work using math. They called it the McCulloch-Pitts neuron, or MCP neuron for short. This neuron was like a tiny decision-maker. It would add up all the information it received, then decide whether to “fire” or not based on a set rule. This simple concept was a big deal because it laid the groundwork for how computers could learn and think more like humans. It opened the door to creating powerful tools like deep learning, which we now use for things like recognizing pictures, understanding speech, and even driving cars autonomously.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*yKyeXutfdTYf41qy.png" /><figcaption>MCP Neuron</figcaption></figure><h4><strong>The Perceptron Revolution: Frank Rosenblatt’s Leap into Neural Networks (1960&#39;s):</strong></h4><p>In 1960, Frank Rosenblatt introduced a groundbreaking concept known as the perceptron. Inspired by the McCulloch-Pitts neuron model and motivated by the desire to create a computer that could learn and adapt, Rosenblatt’s perceptron was a significant leap forward in the field of artificial intelligence. The perceptron was essentially a single-layer neural network capable of learning to classify input data into two categories. It achieved this by assigning weights to each input and combining them to make a decision, much like a simple brain cell.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*6eG5xmUXf-fD_Bzn.png" /><figcaption>Perceptron</figcaption></figure><h4><strong>Perceptrons and the AI Winter1: Limitations in Handling Non-Linear Data :</strong></h4><p>In 1969, Marvin Minsky and Seymour Papert published their influential book “Perceptrons,” which highlighted the limitations of single-layer perceptrons, especially in handling non-linearly separable data. Their research demonstrated that perceptrons, including the one introduced by Frank Rosenblatt in 1960, could only learn and classify patterns that were linearly separable meaning they could be divided into two groups by a straight line or plane.</p><p>This revelation led to a period known as the “AI winter,” characterized by diminished funding and interest in artificial intelligence research. The inability of perceptrons to handle more complex tasks and data structures dampened enthusiasm for neural network research and prompted a shift towards other approaches in AI, such as expert systems and symbolic reasoning.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*iCbsDrEtlJIJ7goO.png" /></figure><h4><strong>Hinton’s Breakthrough: Backpropagation Unleashed</strong></h4><p>In the 1980s, Geoffrey Hinton, along with his colleagues, introduced a clever trick called the backpropagation algorithm. This algorithm made training neural networks easier. Instead of getting stuck, neural networks could now learn from their mistakes and get better at tasks like recognizing patterns or understanding language.</p><p>With backpropagation, errors in predictions were sent backward through the network, helping it adjust its internal settings, or “weights,” to improve. This breakthrough by Hinton and his team sparked renewed interest in neural networks, leading to many new discoveries and paving the way for today’s powerful deep learning technologies.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*DmAAAz7EcO7Dczaz.png" /><figcaption>Back Propogation</figcaption></figure><h4><strong>The Second AI Winter: Challenges with Deep Networks</strong></h4><p>In the early 1990s, excitement about artificial intelligence fizzled out once again in what’s now called “AI winter 2.” This time, the trouble arose from trying to train deeper neural networks with lots of layers. Computers weren’t powerful enough, and there weren’t good methods to train these complex networks efficiently.</p><p>As a result, interest in neural networks dwindled, and researchers focused on other AI methods that seemed more promising. This slowdown in neural network research lasted through much of the 1990s, but a few persistent researchers kept working, laying the groundwork for the comeback of deep learning in the 21st century.</p><h4><strong>The Quiet Beginnings of Modern Deep Learning (2006) :</strong></h4><p>In 2006, modern deep learning wasn’t well-known. These techniques faced big problems like needing a lot of computer power and not being easy to use. Many people in artificial intelligence preferred other methods that they thought were simpler and more reliable.</p><p>Because of this, deep learning wasn’t popular and wasn’t used much. It would take a few more years and some big improvements in technology before deep learning became a big deal in artificial intelligence.</p><h4><strong>The Deep Learning Breakthrough: Geoffrey Hinton and AlexNet (2012)</strong></h4><p>In 2012, something big happened for deep learning. Geoffrey Hinton and his team did some important research, and a super strong network called AlexNet was introduced. It showed that deep learning could be amazing, especially for recognizing images. This got a lot of people excited about deep learning. It became really popular, and everyone started talking about how it could change artificial intelligence.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*5oEOowCEsv4y22Ia.png" /><figcaption>Alex Net</figcaption></figure><h4><strong>Conclusion :</strong></h4><p>In wrapping up, the story of deep learning shows how we humans keep finding smarter ways to teach computers. Starting from simple ideas, it’s now at the heart of AI, changing how we use technology. As we look ahead, let’s thank the folks who laid the groundwork. Together, let’s keep using deep learning to make AI work for us in amazing new ways!</p><h4>Image references:</h4><ol><li>Pexels</li><li>Pixabay</li><li>Flickr</li><li>Wikimedia Commons</li><li>StockSnap</li><li>Burst by Shopify</li><li>Freepik</li><li>Adobe Stock</li><li>Shutterstock</li><li>Analytical Vidhya</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=70bc5990ad86" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AI vs ML vs DL]]></title>
            <link>https://medium.com/@maradapucharishma/ai-vs-ml-vs-dl-1b1bcc171f12?source=rss-8ab08efb26d1------2</link>
            <guid isPermaLink="false">https://medium.com/p/1b1bcc171f12</guid>
            <category><![CDATA[mlm]]></category>
            <category><![CDATA[ａｉ]]></category>
            <category><![CDATA[dl]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Charishma Maradapu]]></dc:creator>
            <pubDate>Sun, 05 May 2024 11:23:23 GMT</pubDate>
            <atom:updated>2024-05-05T11:34:51.671Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>AI vs ML vs DL</strong></p><h4><strong>Artificial Intelligence :</strong></h4><p>Let’s start with AI. AI, which stands for Artificial Intelligence, entails our primary objective of creating machines capable of mimicking/copying human intelligence.</p><p>Let’s understand the term ‘Artificial Intelligence’ by examining its components individually. ‘Artificial’ refers to something not natural, but rather man-made, while ‘Intelligence’ denotes the ability to perform day to day tasks. AI is a domain that includes both machine learning (ML) and deep learning (DL).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/872/1*vqy8HzX4-hetmkru36jLnA.png" /><figcaption>Relationship between AI&amp; ML&amp; DL</figcaption></figure><h4><strong>Machine Learning :</strong></h4><p>✓ It is a tool by which we can mimic/copy human intelligence to perform day-to-day tasks without the interference of humans.</p><p>✓ ML is a subfield of AI.</p><p>✓ It finds relationships between inputs and outputs using statistical techniques.</p><p>✓ ML algorithms improve their performance over time as they are exposed to more data.</p><p>✓ ML applications include natural language processing, image recognition, and predictive analytics.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*x3K-ORSJFTjBykblCAujwQ.png" /></figure><h4><strong>Deep Learning :</strong></h4><p>✓ It is a tool by which we can mimic/copy human intelligence to perform day-to-day tasks without human interference.</p><p>✓ DL is a subfield of AI.</p><p>✓ It finds relationships between input and output using neural networks.</p><p>✓ Deep learning models require significant computational resources for training due to their complexity.</p><p>✓ DL has revolutionized fields such as computer vision, natural language processing, and speech recognition.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*S3M_c1OToV5QH-mfnNcnbg.png" /></figure><h4><strong>ML vs DL :</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/762/1*-vJdk3kknfdiHPzdfTpBQg.png" /></figure><h4><strong>why DL is more Popular :</strong></h4><p>The major difference that makes deep learning popular is Deep learning’s ability to perform feature extraction is a major advantage that contributes to its popularity.</p><p>Deep learning is getting a lot of attention because it’s really good at finding important stuff in pictures. Imagine you have a super smart friend who can look at any picture and instantly tell you what’s in it — that’s kind of like what deep learning does! It looks at pictures and automatically picks out things like shapes, colors, and patterns without needing anyone to tell it what to look for.</p><p>What’s even cooler is that deep learning keeps getting better the more pictures it sees. So, if you show it a really clear picture, it can find all the important stuff in it all by itself. That’s why people are so excited about deep learning — it’s like having a super-powered detective for pictures!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*nEHXBPIeaqTOttdtfza2FA.png" /></figure><h4><strong>Conclusion :</strong></h4><p>Artificial Intelligence (AI) is like the big umbrella, aiming to make computers smart like humans. Within AI, we have Machine Learning (ML), which teaches computers to learn from data and make decisions without being explicitly programmed for every task. Think of ML as a student learning from examples. Deep Learning (DL) is a specialized type of ML that learns by mimicking the structure and function of the human brain’s neural networks. It’s like a supercharged version of ML, capable of handling really complex tasks like recognizing images or understanding speech. While ML can work with smaller datasets, DL needs lots of data and powerful computers. So, in simple terms, AI dreams big, ML learns from data, and DL dives deep into the complexities of learning.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*gY8gLy8vd91Rj48S.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1b1bcc171f12" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Navigating the GenAI Frontier: Transformers, GPT, and the Path to Accelerated Innovation]]></title>
            <link>https://medium.com/@maradapucharishma/navigating-the-genai-frontier-transformers-gpt-and-the-path-to-accelerated-innovation-37e81da9e16e?source=rss-8ab08efb26d1------2</link>
            <guid isPermaLink="false">https://medium.com/p/37e81da9e16e</guid>
            <category><![CDATA[transformer-model]]></category>
            <category><![CDATA[transformers]]></category>
            <category><![CDATA[gpt1]]></category>
            <category><![CDATA[gpt]]></category>
            <dc:creator><![CDATA[Charishma Maradapu]]></dc:creator>
            <pubDate>Thu, 11 Apr 2024 11:02:34 GMT</pubDate>
            <atom:updated>2024-04-11T11:02:34.073Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Transformers Definition :</strong></p><p>Transformers are advanced models in artificial intelligence that use attention mechanisms to process and generate text data. Unlike earlier models, Transformers excel at understanding context in large bodies of text, leading to significant improvements in natural language processing tasks.</p><p>In the fast-changing world of artificial intelligence, Transformers have sparked a new era of quick progress, leading to amazing models like GPT (Generative Pre-trained Transformers).</p><p>Let’s explore:</p><p>✓ Historical Context</p><p>✓ Introduction to Transformers</p><p>✓ Why Transformers?</p><p>✓ Explaining Transformer Components</p><p>✓ How GPT-1 is Trained from Scratch</p><p><strong>History of Transformers :</strong></p><p>Transformers is the combination of the papers “Sequence to Sequence Learning with Neural Networks” and “Neural Machine Translation By Jointly Learning To Align and Translate”.</p><p><strong>Paper : Sequence to Sequence Learning with Neural Networks</strong></p><p><strong>Introduction :</strong></p><ul><li>This paper was published in 2014 by Ilya Sutskever, Oriol Vinyals, and Quoc V. Le.</li><li>The paper is part of Generative AI research.</li><li>It introduces the use of the Encoder-Decoder Architecture to solve sequence-to-sequence (seq2seq) tasks.</li><li>The approach is called seq2seq because it takes an input sequence and produces an output sequence.”</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*ix852Bi99-yuSGFD5tWJyA.png" /><figcaption>Seq2Seq model</figcaption></figure><p><strong>Encoder:</strong> The encoder processes the input sequence and converts it into a fixed-length context vector that captures the essential information from the input. This context vector serves as a condensed representation of the input sequence.</p><p><strong>Decoder:</strong> The decoder takes the context vector from the encoder and generates an output sequence, one token at a time. It predicts the next token in the sequence based on the context vector and previously generated tokens.</p><p><strong>Applications of Seq to Seq tasks:</strong></p><p>⩥ Question Answer Systems</p><p>⩥ Chatbot</p><p>⩥ Summarizing document</p><p>⩥ Language Translation</p><p><strong>Language Translation :</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*47ZyvSjOmf6B4k9oIltTuA.png" /><figcaption>Language Translation</figcaption></figure><p><strong>Question Answer Systems:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*bT09ck7ETEP4x6goUVXmwQ.png" /><figcaption>Question Anser Systems</figcaption></figure><p><strong>Drawbacks of seq2seq :</strong></p><p>✓ Long term Dependencies</p><p>The issue with long-term dependencies is a common challenge in RNN-based models, including the original seq2seq models. This can lead to difficulty in capturing long-range context, impacting performance in tasks that require understanding the relationship between words or concepts spread across a long sequence.</p><p>✓ Fixed length context vector</p><p>In the Encoder-Decoder architecture, the encoder compresses the entire input sequence into a fixed-length context vector. This can limit the model’s ability to handle longer input sequences and may lead to loss of information.</p><p><strong>Paper : Neural Machine Translation By Jointly Learning To Align and Translate</strong></p><p>This paper was published in 2015 by Dzmitry Bahdanau, Kyunghyun Cho, and Yoshua Bengio. It addresses the drawbacks of the seq2seq paper, specifically long-term dependencies and a fixed-length context vector, by introducing the attention mechanism to solve these issues.”</p><p><strong>Attention Mechanism :</strong></p><p>The attention mechanism is a technique in AI that helps models focus on specific parts of the input when generating the output. By assigning different weights to different input elements based on their relevance, the mechanism improves the model’s ability to understand context and prioritize important information.</p><p><strong>Drawbacks of Attention Mechanism :</strong></p><p>✓ <strong>Incomplete Solution for Long-Term Dependencies:</strong> While the attention mechanism helps address long-term dependencies, it doesn’t completely solve the issue, especially for very long sequences.</p><p>✓ <strong>Slow Processing:</strong> The paper’s approach involves processing one token at a time, which can lead to slower processing speeds compared to more parallelized methods.</p><h3><strong>Introduction To Transformers</strong></h3><p>Transformers were introduced through the paper ‘Attention is All You Need’ by Vaswani et al. in 2017. This paper presented a new architecture that uses attention mechanisms exclusively, revolutionizing the field of natural language processing.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*ljUIedawKJ7SB8KC.png" /><figcaption>Transformer</figcaption></figure><p>The transformer model is unique in that it relies entirely on attention mechanisms to process and understand sequences of data, as opposed to traditional recurrent or convolutional layers.</p><p><strong>Key Features of transformers include :</strong></p><ul><li><strong>Self-Attention Mechanism:</strong> This allows the model to weigh the importance of different words in a sentence relative to each other, enabling the network to capture complex relationships within sequences.</li><li><strong>Positional Encoding:</strong> Unlike recurrent neural networks (RNNs), transformers do not process input in a specific order, so they use positional encodings to maintain the order of the input sequence.</li><li><strong>Multi-Head Attention: </strong>This mechanism enhances the model’s ability to focus on different parts of the input simultaneously, leading to improved performance on tasks such as translation, summarization, and language modeling.</li><li><strong>Layered Architecture:</strong> Transformers stack multiple layers, each consisting of self-attention and feed-forward neural network layers, allowing for deep and complex representations of the input data.</li></ul><p><strong>Why Transformers ?</strong></p><p>👌Scalable and Parallel training</p><p>👌 Revolutionized NLP with LLM</p><p>👌 Unified DL Approach for text, images, audio and video data</p><p>👌 Multi-Modal</p><p>👌 Accelerated Generative AI</p><ol><li><strong>Scalable and Parallel Training:</strong> Transformers’ architecture allows for parallelization during training, which significantly improves efficiency and scalability, especially for large datasets and complex models.</li><li><strong>Revolutionized NLP with LLM:</strong> Transformers have revolutionized natural language processing (NLP) by enabling the development of large language models (LLMs) like BERT and GPT, which have set new performance benchmarks for many NLP tasks.</li><li><strong>Unified DL Approach for Text, Images, Audio, and Video Data:</strong> Transformers provide a unified architecture that can be adapted for different types of data, such as text, images, audio, and video, allowing for a cohesive approach across various domains.</li><li><strong>Multi-Modal:</strong> Multimodality means the ability to take in multiple types of inputs (text, image, video, audio) and generate multiple types of outputs. For example, GPT-4 is a multimodal model.</li><li><strong>Accelerated Generative AI: </strong>Transformers have boosted generative AI by helping to create models that can produce clear and relevant text, images, music, and other types of content.</li></ol><h3><strong>Working of Transformer Components:</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*xR5q4P-hPglp_vK_.png" /></figure><p><strong>Self-Attention Mechanism:</strong></p><ul><li>The self-attention mechanism allows the model to weigh the importance of different words or tokens in a sequence relative to each other.</li><li>It calculates attention scores for each token with every other token in the input sequence.</li><li>Based on these scores, the model creates a weighted representation of the sequence, focusing on the most relevant parts.</li></ul><p><strong>Multi-Head Attention:</strong></p><ul><li>Multi-head attention is an extension of the self-attention mechanism.</li><li>Instead of a single attention calculation, it performs multiple attention calculations (heads) in parallel.</li><li>Each head learns to focus on different aspects of the input data, allowing the model to capture a variety of information and relationships.</li></ul><p><strong>Feed-Forward Neural Network:</strong></p><ul><li>After the multi-head attention layer, a feed-forward neural network layer processes the output.</li><li>It consists of linear transformations (dense layers) with activation functions applied between them.</li><li>This layer helps in learning more complex patterns and representations.</li></ul><p><strong>Layer Normalization:</strong></p><ul><li>Layer normalization normalizes the output of each layer.</li><li>It helps stabilize the network and improve training efficiency.</li><li>It is typically applied before or after the multi-head attention and feed-forward layers.</li></ul><p><strong>Residual Connections:</strong></p><ul><li>Residual connections (or skip connections) are used to pass information directly from the input of one layer to the output of that layer.</li><li>This helps in preserving information and easing the training process by mitigating the vanishing gradient problem.</li></ul><p><strong>Positional Encoding:</strong></p><ul><li>Transformers process input sequences without a fixed order, so positional encoding is added to the input embeddings to preserve the order of the sequence.</li><li>These encodings provide the model with information about the position of each token in the sequence.</li></ul><p><strong>Encoder and Decoder Layers:</strong></p><ul><li>Transformers can consist of both encoder and decoder layers, depending on the task.</li><li>The encoder processes the input sequence, generating a set of representations.</li><li>The decoder takes these representations and produces an output sequence (e.g., for translation tasks).</li><li>Both encoders and decoders contain multiple identical layers, each with its own attention and feed-forward neural network layers.</li></ul><p>These components work together to form the transformer architecture, enabling it to process sequences of data efficiently and effectively for various tasks such as translation, summarization, and other natural language processing applications.</p><h3><strong>Evaluation of GPT Models :</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*zj7dqxOgAxr7Qjox" /></figure><h3><strong>How GPT-1 is Trained from Scratch :</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*g0hWqeZvevuO0USI.jpeg" /></figure><p>Training GPT-1 from scratch involves several steps, starting with data collection and preprocessing, and then moving on to the model architecture, training, and fine-tuning processes.</p><h3>1. Data Collection and Preprocessing:</h3><ul><li>Data Collection: The first step in training GPT-1 is to gather a large dataset of diverse and relevant text data. The data might include books, articles, websites, and other written content.</li><li>Preprocessing: The collected data is cleaned and formatted. This may involve removing any irrelevant content, handling encoding issues, and tokenizing the text (breaking it down into smaller units, such as words or subwords).</li></ul><h3>2. Model Architecture:</h3><ul><li>Define the Model: GPT-1 is based on the transformer architecture and consists of multiple layers of self-attention and feed-forward neural networks.</li><li>Embedding Layer: The model starts with an embedding layer that converts input tokens into continuous vector representations.</li><li>Transformer Layers: GPT-1 has multiple transformer layers, each consisting of multi-head self-attention and feed-forward neural networks with residual connections and layer normalization.</li><li>Output Layer: The final layer of the model produces predictions for the next token in the sequence.</li></ul><h3>3. Training the Model:</h3><ul><li>Objective: GPT-1 is trained using a language modeling objective, where the goal is to predict the next token in a sequence based on the previous tokens.</li><li>Backpropagation: The model is trained using backpropagation, adjusting the weights and biases in response to the error between the predicted and actual tokens.</li><li>Batch Training: The training process is performed in batches, with each batch consisting of sequences of text from the dataset.</li><li>Optimization: An optimization algorithm, such as Adam, is used to update the model’s parameters and minimize the loss function.</li></ul><h3>4. Fine-Tuning (if needed):</h3><ul><li>After the initial training, the model can be fine-tuned on specific datasets to improve its performance on certain tasks or domains.</li></ul><h3>5. Evaluation:</h3><ul><li>Validation Set: A separate validation set is used during training to monitor the model’s performance and prevent overfitting.</li><li>Evaluation Metrics: The model’s performance is measured using metrics such as perplexity, which quantifies how well the model predicts the next token.</li></ul><h3>Conclusion:</h3><p>By following these steps, GPT-1 can be trained from scratch to create a language model capable of generating coherent and contextually appropriate text. This process set the foundation for subsequent versions of GPT, each improving upon the previous iteration in terms of size, complexity, and performance.</p><p><strong>References :</strong></p><p>Attention Is All You Need:</p><ul><li>Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A. N., … &amp; Polosukhin, I. (2017). <em>Attention is all you need.</em> arXiv preprint arXiv:1706.03762.</li></ul><p>Improving Language Understanding by Generative Pre-training:</p><ul><li>Radford, A., Narasimhan, K., Salakhutdinov, R., &amp; Sutskever, I. (2018). <em>Improving language understanding by generative pre-training.</em></li></ul><p>OpenAI Blog:</p><ul><li>OpenAI’s blog provides valuable insights into the development of GPT-1 and subsequent models. It is a great source for up-to-date information on their work.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=37e81da9e16e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unleashing the Power of Words: Exploring Language Modeling Magic]]></title>
            <link>https://medium.com/@maradapucharishma/unleashing-the-power-of-words-exploring-language-modeling-magic-b247ac9a92b9?source=rss-8ab08efb26d1------2</link>
            <guid isPermaLink="false">https://medium.com/p/b247ac9a92b9</guid>
            <category><![CDATA[large-language-models]]></category>
            <category><![CDATA[generative-ai-use-cases]]></category>
            <category><![CDATA[language-model]]></category>
            <dc:creator><![CDATA[Charishma Maradapu]]></dc:creator>
            <pubDate>Thu, 11 Apr 2024 02:52:57 GMT</pubDate>
            <atom:updated>2024-04-11T02:52:57.443Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Language Modeling</strong></p><p>Language modeling can be understood by first examining the components of the term: “language” and “model”.</p><p>Language : A system of communication using words, symbols, and rules to convey meaning between individuals or groups.</p><p>Model : Model is a relationship captured between input and output. Model is used to predict the outcome of an unseen query point</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/803/1*FsM06tLu3aa6LGR2DWRlsQ.png" /><figcaption>Model</figcaption></figure><p><strong>Language Model :</strong></p><p>Model that captures the relationship between words and sentences of a language is called as a “ Language Model”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*0VZTYWxuqP57K4nNR-KzMw.png" /><figcaption>Language model</figcaption></figure><p>A language model is a statistical model designed to analyze and generate human language. It is trained on a large corpus of text data and learns the probability of word sequences and patterns within the language. The primary goal of a language model is to predict the next word or sequence of words given a certain context.</p><p>It is the working horse for all the large language models and State of the art of Generative AI.</p><p><strong>Examples for Language Models:</strong></p><p>GPT-4, GPT-3.5, BERT, Gemini, Llama-2</p><p><strong>How to Model a Language :</strong></p><p>To model a language, typically you should concentrate on three things</p><p>a. Huge Amount of Data</p><p>b. Powerful Architecture</p><p>c. Language Modeling Technique</p><p><strong>Large Data :</strong></p><p>Explanation: You need lots of different kinds of text to teach the model how language works.</p><p>Example: Imagine gathering tons of books, articles, and websites to show the model all the ways people use language.</p><p><strong>Architecture :</strong></p><p>Explanation: Think of the model’s structure as its brain — how it understands words and sentences.</p><p>Example: Models like RNN, LSTM, GRU, or Transformer are like different types of brains. They help the model figure out what words mean and how they relate to each other.</p><p><strong>Technique :</strong></p><p>Explanation: Techniques are like tricks to help the model learn better.</p><p>Example: Auto-encoding, Auto-regression, Masked LM, and next sentence prediction are like games the model plays to practice understanding and guessing what comes next in sentences. These games make the model smarter and better at talking like a human.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*ywDwUHZTXY7WTXUkPJbvSA.png" /></figure><p><strong>Language Modeling Tasks/Techniques :</strong></p><p>a. Auto Encoder</p><p>b. Auto Regression</p><p>c. Masked Language Modeling</p><p>d. Next Sentence Prediction</p><p><strong>Auto Encoding Language Model:</strong></p><p>They are trained to re-construct the original context from a corrupted version of the input</p><p>· Bi-directional</p><p>· Encoder — Decoder Architecture</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/805/1*gQTVBOQRAYDIStEeWZkJYg.png" /></figure><p><strong>Auto Regressive Language Model :</strong></p><p>They are trained to predict the next token in a sequence, based on the previous tokens.</p><p>Simply Auto Regressive is a next token prediction</p><p>It can predict one token at a time</p><p>· A mask is applied to full sentence</p><p>· Unidirectional</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/0*wx8wpkqZvYmefOmX.png" /><figcaption>Auto Regressive Language Modeling</figcaption></figure><p><strong>Masked Language Modeling :</strong></p><p>Instead of reconstructing the Entire sentence, masking some words to predict them like fill in the blanks</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/793/0*uDN2fb5ddRzWrJJx.png" /><figcaption>Masked Language Modeling</figcaption></figure><p><strong>Next Sentence Prediction :</strong></p><p>Next Sentence Prediction: This method teaches the model to guess if two sentences belong together or not. If they do, it then predicts what could come after the first sentence, helping it understand how ideas flow in text.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/939/0*7o0ulQvRnIHM1QCT.png" /></figure><p><strong>Applications of Language Modeling :</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/957/1*_0B9br_aULV87jpri5pE-A.png" /></figure><ol><li>Text Generation:</li></ol><ul><li>Language models can write like humans, making chatbots fun to talk to and helping with writing stories or articles.</li></ul><p>2. Question Answering:</p><ul><li>They help computers understand and answer questions, like finding information on the internet or chatting with virtual assistants.</li></ul><p>3. Machine Translation:</p><ul><li>They make it easier for computers to translate languages accurately, helping people understand each other better, even if they speak different languages.</li></ul><p>4. Summarization and Classification:</p><ul><li>They can summarize long articles or put things into categories, making it easier to find information or understand what something is about.</li></ul><p>5. Sentiment Analysis:</p><ul><li>They can figure out if people are happy, sad, or angry from what they write online, helping companies understand how customers feel about their products or services.</li></ul><p>6. Content Creation:</p><ul><li>They can help write things like product descriptions or blog posts, making it quicker and easier for people to create content for websites or social media.</li></ul><p><strong>Lets see how Bert trained using Language model :</strong></p><p>BERT (Bidirectional Encoder Representations from Transformers) is indeed an example of a language model. It’s a highly influential model developed by Google that uses transformers, a type of deep learning architecture, to understand and generate human-like text. BERT has achieved state-of-the-art performance in various natural language processing tasks, including question answering, sentiment analysis, and language understanding.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Gm3Ehpiczi3wYvXkC6k8pQ.png" /></figure><p>Data used By BERT : The data used by BERT includes not only Wikipedia and Google Books but also other sources to create a diverse and extensive corpus. The size of the data is usually mentioned in terms of the number of tokens rather than words, which for BERT is typically around 3.3 billion tokens.</p><p>Architecture : BERT employs a bidirectional architecture, which means it considers both left and right contexts of a word when processing it. So, it’s technically an “Encoder only Transformer.” However, it’s based on the Transformer architecture, which consists of encoder and decoder layers, but BERT only uses the encoder part.</p><p>Approach/Technique : BERT indeed uses both Masked Language Modeling (MLM) and Next Sentence Prediction (NSP) during its pre-training phase to learn contextual representations of words and sentence relationships.</p><p><strong>References :</strong></p><ol><li>Devlin, J., Chang, M. W., Lee, K., &amp; Toutanova, K. (2019). BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding. <em>arXiv preprint arXiv:1810.04805</em>.</li><li>Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A. N., … &amp; Polosukhin, I. (2017). Attention is All You Need. <em>Advances in Neural Information Processing Systems</em>, 30.</li><li>Radford, A., Narasimhan, K., Salimans, T., &amp; Sutskever, I. (2018). Improving Language Understanding by Generative Pretraining. <em>OpenAI Technical Report</em>.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b247ac9a92b9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[“Demystifying Data: A Deep Dive into Structured, Unstructured, and Semi-Structured Data”]]></title>
            <link>https://medium.com/@maradapucharishma/demystifying-data-a-deep-dive-into-structured-unstructured-and-semi-structured-data-eb440c0a9e76?source=rss-8ab08efb26d1------2</link>
            <guid isPermaLink="false">https://medium.com/p/eb440c0a9e76</guid>
            <category><![CDATA[types-of-data]]></category>
            <category><![CDATA[structured-data]]></category>
            <category><![CDATA[semi-structured-data]]></category>
            <category><![CDATA[unstructured-data]]></category>
            <category><![CDATA[data]]></category>
            <dc:creator><![CDATA[Charishma Maradapu]]></dc:creator>
            <pubDate>Fri, 15 Mar 2024 10:41:02 GMT</pubDate>
            <atom:updated>2024-03-15T10:41:02.213Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Data :</strong></h3><p>Data is like building blocks of information. It’s all the little pieces of stuff we gather, like numbers, words, pictures, or sounds. These pieces might not make much sense on their own, but when we put them together and look at them in the right way, they can tell us a whole lot of interesting things. Basically, data is the stuff we use to learn and understand things better.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/626/0*_XHAgjJ_tOvH7Z6f" /><figcaption>Data</figcaption></figure><p><strong>Types of Data:</strong></p><p>✓ Structured Data</p><p>✓ Unstructured Data</p><p>✓ Semi-Structured Data</p><p><strong>Structured Data:</strong></p><p>Structured data is organized in a defined manner, typically within a database. It follows a tabular format with rows and columns, and each data element is clearly defined. Examples include:</p><p>■Relational databases: Data stored in tables with rows and columns, where each column represents a specific attribute, and each row represents a record.</p><p>■Spreadsheets: Excel sheets with clearly defined rows and columns where each cell holds a specific data point.</p><p>■SQL databases: Data stored in SQL databases like MySQL, PostgreSQL, etc., adhering to a predefined schema.</p><p>■CSV files: Comma-separated values files where each row represents a record, and each column represents a field.</p><p><strong>Unstructured Data:</strong></p><p>Unstructured data does not have a predefined data model or format. It lacks a formal structure, making it harder to analyze using traditional data processing methods. Examples include:</p><p>■Text documents: Such as emails, articles, social media posts, and reports.</p><p>■Multimedia files: Including images, videos, and audio recordings.</p><p>■Web pages: HTML documents without a consistent structure or schema.</p><p>■Sensor data: Raw data from IoT devices, which may lack a standardized format.</p><p><strong>Semi-Structured Data:</strong></p><p>Semi-structured data falls between structured and unstructured data. While it doesn’t conform to a rigid schema like structured data, it has some organizational properties that make it more structured than unstructured data. Examples include:</p><p>■JSON (JavaScript Object Notation): Data stored in a hierarchical format using key-value pairs, allowing for nested structures.</p><p>■XML (extensible Markup Language): Similar to JSON, XML organizes data in a hierarchical manner using tags.</p><p>■NoSQL databases: Databases like MongoDB or Couchbase that allow for flexible schemas, enabling semi-structured data storage.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*UveXorPUoI-oogKc.jpg" /><figcaption>Types of Data</figcaption></figure><h3><strong>Primary and Secondary Data</strong></h3><p><strong>Primary Data:</strong></p><p>Primary Data is a type of data that is gathered by the individual. For example, data recorded by a student in a lab experiment, teacher giving an oral test and writing the marks, letters, records, autobiographies, etc.</p><p><strong>Secondary Data:</strong></p><p>Secondary data is a type of data that is gathered by someone else and used somewhere else. For example, Another teacher using the marks obtained in an oral test for evaluation, newspapers, encyclopedias, biographies, etc.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*87F9T5GosycbUuH_xMLD2w.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eb440c0a9e76" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Machine Learning]]></title>
            <link>https://medium.com/@maradapucharishma/machine-learning-fdf40053e3b2?source=rss-8ab08efb26d1------2</link>
            <guid isPermaLink="false">https://medium.com/p/fdf40053e3b2</guid>
            <category><![CDATA[unsupervised-learning]]></category>
            <category><![CDATA[types-of-machine-learning]]></category>
            <category><![CDATA[supervised-learning]]></category>
            <category><![CDATA[reinforcement-learning]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Charishma Maradapu]]></dc:creator>
            <pubDate>Wed, 06 Mar 2024 04:59:44 GMT</pubDate>
            <atom:updated>2024-03-06T05:22:28.421Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Definition:</strong></p><p>Machine Learning is a statistical technique which guides the machine to learn pattern from historical or past data. In other words, the famous definition that all we know is machine learning is a subset of Artificial Intelligence, yes machine learning is a subset of AI but what it defines is exactly learning pattern from past data. Machine learning involves a set of methods, algorithms, and techniques that enable computers to learn from data. We will see what methods, techniques in detail….</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/590/1*khVjc2ZcBfZwm8ad1j78IQ.png" /><figcaption>Machine Learning</figcaption></figure><p><strong>Machine Learning Use cases:</strong></p><p>· To make Predictions</p><p>· Missing values treatment</p><p>· Feature selection</p><p>· Outlier Detection and treatment</p><p>· Clustering</p><p>· Dimensionality Reduction</p><p><strong>Types of ML:</strong></p><p>Machine learning (ML) can be broadly categorized into four main types or three main types based on the nature of the learning process and the availability of labeled data:</p><p>· Supervised ML</p><p>· Unsupervised ML</p><p>· Semi-Supervised ML</p><p>· Reinforcement ML</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*Df0ZRapq5esHE4_0.jpeg" /><figcaption>Types of Machine Learning</figcaption></figure><p><strong>Supervised Machine Learning:</strong></p><p>✓ Supervised machine learning deals with structured data.</p><p>✓ It involves labelled data where each instance contains a target variable.</p><p>✓ Supervised Machine learning algorithms learn from labelled data to make predictions.</p><p>✓ These predictions are based on patterns and relationships learned from the labelled data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*KDpiWQ88_UH1WWMgSFBo4A.png" /><figcaption>Supervised Machine Learning</figcaption></figure><p><strong>Tasks of Supervised Learning:</strong></p><p>⩥ Classification</p><p>⩥ Regression</p><p><strong>Unsupervised Machine Learning:</strong></p><p>✓ Unsupervised machine learning deals with unstructured data.</p><p>✓ It involves unlabeled data where the data doesn’t contain target variable.</p><p>✓ Tasks of Unsupervised ML are: Datamining.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*UwalmUC-i5Ipn6I3mUlXaQ.png" /><figcaption>Unsupervised Machine Learning</figcaption></figure><p><strong>Tasks of Unsupervised Learning:</strong></p><p>⩥ Clustering</p><p>⩥ Dimensionality Reduction</p><p><strong>Semi-Supervised Learning:</strong></p><p>✓ Name itself saying it is semi-supervised, i.e., semi-labelled</p><p>✓ In this we have some portion of labeled data and some portion of unlabeled data.</p><p>✓ Using the portion of labeled data, we will train unlabeled portion of data and then it becomes labeled data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*OmXqGc42ubRmhgJf" /></figure><p><strong>Tasks of Semi-Supervised Learning:</strong></p><p>⩥ Self-training</p><p>⩥Co-training</p><p><strong>Reinforcement Machine Learning:</strong></p><p>✓ It is reward based learning.</p><p>✓ From the past mistakes\experiences it learns and wont repeat that mistakes in future.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/637/0*9VnE784CTaineyfT.jpg" /><figcaption>Reinforcement Machine Learning</figcaption></figure><p><strong>Tasks of Reinforcement Learning:</strong></p><p>⩥ Policy Optimization</p><p>⩥ Value Function Approximation</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fdf40053e3b2" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>