<?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 Krishika on Medium]]></title>
        <description><![CDATA[Stories by Krishika on Medium]]></description>
        <link>https://medium.com/@krishikaravik?source=rss-09369c45efbf------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*a2jqVfCfHjvYdg0M8Ir58Q.jpeg</url>
            <title>Stories by Krishika on Medium</title>
            <link>https://medium.com/@krishikaravik?source=rss-09369c45efbf------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 01:10:18 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@krishikaravik/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[Single Layer Perceptron]]></title>
            <link>https://medium.com/@krishikaravik/single-layer-perceptron-96b2e9b5004d?source=rss-09369c45efbf------2</link>
            <guid isPermaLink="false">https://medium.com/p/96b2e9b5004d</guid>
            <dc:creator><![CDATA[Krishika]]></dc:creator>
            <pubDate>Wed, 10 Jul 2024 03:53:48 GMT</pubDate>
            <atom:updated>2024-07-10T03:53:48.092Z</atom:updated>
            <content:encoded><![CDATA[<h4>What is Single Layer Perceptron?</h4><p>It is one of the oldest and first introduced neural networks. It was proposed by <strong>Frank Rosenblatt </strong>in <strong>1958</strong>. Perceptron is also known as an artificial neural network. Perceptron is mainly used to compute the <a href="https://www.geeksforgeeks.org/logic-gates-definition-types-uses/">logical gate</a> like <strong>AND, OR, and NOR </strong>which has binary input and binary output.</p><p>The main functionality of the perceptron is:-</p><ul><li>Takes input from the input layer</li><li>Weight them up and sum it up.</li><li>Pass the sum to the nonlinear function to produce the output.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/878/1*wJjywowRAKgaR0qjNqmvKA.png" /><figcaption>Single Layer neural network</figcaption></figure><blockquote><strong>Python implementation:</strong></blockquote><pre>import tensorflow as tf<br>from tensorflow.keras.models import Sequential<br>from tensorflow.keras.layers import Dense<br>import numpy as np<br><br># Example dataset: OR logic gate<br>X = np.array([[0, 0], [0, 1], [1, 0], [1, 1]])<br>y = np.array([[0], [1], [1], [1]])<br><br># Define the model<br>model = Sequential([<br>    Dense(4, input_dim=2, activation=&#39;relu&#39;),  # Input layer with 2 neurons, hidden layer with 4 neurons<br>    Dense(1, activation=&#39;sigmoid&#39;)            # Output layer with 1 neuron for binary classification<br>])<br><br># Compile the model<br>model.compile(optimizer=&#39;adam&#39;, loss=&#39;binary_crossentropy&#39;, metrics=[&#39;accuracy&#39;])<br><br># Train the model<br>model.fit(X, y, epochs=100, verbose=1)<br><br># Evaluate the model<br>loss, accuracy = model.evaluate(X, y)<br>print(f&quot;Accuracy: {accuracy * 100}%&quot;)<br><br># Make predictions<br>predictions = model.predict(X)<br>print(f&quot;Predictions: {predictions}&quot;)</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=96b2e9b5004d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DEEP LEARNING-INTRODUCTION]]></title>
            <link>https://medium.com/@krishikaravik/deep-learning-introduction-b6bbf109a934?source=rss-09369c45efbf------2</link>
            <guid isPermaLink="false">https://medium.com/p/b6bbf109a934</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[introduction]]></category>
            <category><![CDATA[engineering]]></category>
            <dc:creator><![CDATA[Krishika]]></dc:creator>
            <pubDate>Thu, 30 May 2024 17:31:12 GMT</pubDate>
            <atom:updated>2024-05-30T17:31:12.875Z</atom:updated>
            <content:encoded><![CDATA[<p>In the past few years, artificial intelligence (AI) has been a subject of intense media hype. Machine learning, deep learning, and AI come up in countless articles, often outside of technology-minded publications.</p><blockquote><strong><em>Artificial intelligence, machine learning, and deep learning</em></strong></blockquote><p>First, we need to define clearly what we’re talking about when we mention AI. What are artificial intelligence, machine learning, and deep learning ? How do they relate to each other?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/301/1*wVqrvMNKYd2OJzsb1266eg.png" /><figcaption>FIGURE 1 :- AI, ML, DL</figcaption></figure><p>Deep learning is a specific subfield of machine learning: a new take on learning representations from data that puts an emphasis on learning successive layers of increasingly meaningful representations. The “deep” in “deep learning” isn’t a reference to any kind of deeper understanding achieved by the approach; rather, it stands for this idea of successive layers of representations. How many layers contribute to a model of the data is called the <em>depth</em> of the model. Other appropriate names for the field could have been <em>layered representations learning</em> or <em>hierarchical representations learning</em>. Modern deep learning often involves tens or even hundreds of successive layers of representations, and they’re all learned automatically from exposure to training data. Meanwhile, other approaches to machine learning tend to focus on learning only one or two layers of representations of the data (say, taking a pixel histogram and then applying a classification rule); hence, they’re sometimes called <em>shallow learning</em>.</p><p>In deep learning, these layered representations are learned via models called <em>neural networks</em>, structured in literal layers stacked on top of each other. The term “neural network” refers to neurobiology, but although some of the central concepts in deep learning were developed in part by drawing inspiration from our understanding of the brain (in particular, the visual cortex), deep learning models are not models of the brain.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/699/1*dB3yg9LrcAggw7TFxKmLMA.png" /><figcaption>NN for Digit Classification</figcaption></figure><blockquote><strong><em>How deep learning works</em>?</strong></blockquote><p>We know that machine learning is about mapping inputs (such as images) to targets (such as the label “cat”), which is done by observing many examples of input and targets. You also know that deep neural networks do this input-to-target mapping via a deep sequence of simple data transformations (layers) and that thesedata transformations are learned by exposure to examples. Now let’s look at how this learning happens, concretely.</p><p>The specification of what a layer does to its input data is stored in the layer’s <em>weights</em>, which in essence are a bunch of numbers. In technical terms, we’d say that the transformation implemented by a layer is <em>parameterized</em> by its weights. (Weights are also sometimes called the <em>parameters</em> of a layer.) In this context, <em>learning </em>means finding a set of values for the weights of all layers in a network, such that the network will correctly map example inputs to their associated targets. But here’s the thing: a deep neural network can contain tens of millions of parameters. Finding the correct values for all of them may seem like a daunting task, especially given that modifying the value of one parameter will affect the behavior of all the others!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/646/1*pn1GEkKEhYz2BsBLcKh-Iw.png" /><figcaption>Weights</figcaption></figure><p>To control the output of a neural network, you need to be able to measure how far this output is from what you expected. This is the job of the <em>loss function</em> of the network, also sometimes called the <em>objective function</em> or <em>cost function</em>. The loss function takes the predictions of the network and the true target (what you wanted the network to output) and computes a distance score, capturing how well the network has done on this specific example.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/589/1*Kaivx2-SgHfAbOveT12KIQ.png" /><figcaption>Loss function</figcaption></figure><p>The fundamental trick in deep learning is to use this score as a feedback signal to adjust the value of the weights a little, in a direction that will lower the loss score for the current example (see figure 1.9). This adjustment is the job of the <em>optimizer</em>, which implements what’s called the <em>Backpropagation</em> algorithm: the central algorithm in deep learning. The next chapter explains in more detail how backpropagation works.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/653/1*DVKnmKRZqAucIFNlM7jn9w.png" /><figcaption>Backpropagation</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b6bbf109a934" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>