<?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 Sachi Parikh on Medium]]></title>
        <description><![CDATA[Stories by Sachi Parikh on Medium]]></description>
        <link>https://medium.com/@parikhsachi?source=rss-212d7c90cdfc------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*KJvETCeoiK7KDZa4OB15zw.png</url>
            <title>Stories by Sachi Parikh on Medium</title>
            <link>https://medium.com/@parikhsachi?source=rss-212d7c90cdfc------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 18:48:19 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@parikhsachi/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[Udacity Deep Learning Nanodegree Notes and Thoughts [Lesson 4: RNNs and LSTMs]]]></title>
            <link>https://parikhsachi.medium.com/udacity-deep-learning-nanodegree-notes-and-thoughts-lesson-4-rnns-and-lstms-36e15516e903?source=rss-212d7c90cdfc------2</link>
            <guid isPermaLink="false">https://medium.com/p/36e15516e903</guid>
            <category><![CDATA[nanodegree]]></category>
            <category><![CDATA[udacity]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Sachi Parikh]]></dc:creator>
            <pubDate>Tue, 24 Jul 2018 21:14:22 GMT</pubDate>
            <atom:updated>2018-07-24T21:14:22.993Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OlOnW2Bo2jn8YAluRJo-pg.jpeg" /><figcaption>Recurrent Neural Network Diagram</figcaption></figure><p>Course Content:</p><p>The primary focus of this lesson was recurrent neural networks (RNN), which is a class of neural networks where the system not only takes current input as an input but previous data as well. This function of RNNs makes the network great for speech recognition and time series predictions. A critical feature of RNNs is long short-term memories (LSTMs), the building unit for RNNs. They help the RNN deal with the previous data and how to use them. LSTMs are currently used in Amazon’s Alexa, Apple’s Siri and the Quick-type function on the iPhone keyboard.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2zv-8XVDlkjlkmSI9RPAQA.jpeg" /><figcaption>LSTM Cell Diagram</figcaption></figure><p>LSTMs and RNNs are widely used with numerous applications, but they are tricky concepts to understand. RNNs take in the previous data along with the current input. LSTMs decide what weights to give the outputs of the previous inputs. They assign weights to each of the previous inputs depending on the timestamp of those inputs. LSTMs have a long-term memory and a short-term memory (hence, the name). The long-term memory stores the older data and has a smaller weight. The short-term memory stores more current data and has a larger weight because it’s more relevant to the current input.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9vQc9kQs3uIgGErZ-fTiEA.jpeg" /><figcaption>Applications of RNNs and Feedforward Neural Network Review</figcaption></figure><p>Our first implementation of an RNN/LSTM neural network was using the novel Anna Karenina to generate new characters. Implementation was different and more complicated than the implementation of a feedforward or convolutional neural network. The hardest part for me was understanding the hyper-parameters. This was difficult in Lesson 3 as well but the reason I found it tricky this time was because I wasn’t sure what outcome to expect when modifying the hyper-parameters. However, they had an entire lesson on how each hyper-parameter works so it was great to have that as a reference when implementing the neural network.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HfRscnX1_ucJkb7-Fpqdmg.jpeg" /><figcaption>Anna KaRNNa Coding Exercise</figcaption></figure><p>Thoughts:</p><p>The lesson was tough to understand, and they didn’t do as good of a job with their explanations as they did in previous lessons. I think it may be this way because I wasn’t as fond of the instructors teaching style and how she tried to explain new concepts. The diagrams helped, but I had to rewatch a lot of the videos and do extra research of my own to gain enough understanding to complete the mini-projects. The way they taught coding implementation in this lesson should’ve been different than the previous ones because of the added difficulty.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*u_uTZJx3vlFUF0nZ9aE-Vw.jpeg" /><figcaption>Hyperparameters and Coding Exercises</figcaption></figure><p>I feel like instead of giving us the notebook and then providing us with a solution isn’t an effective enough way to learn such a difficult concept. Since some of the tasks are tricky to implement, I looked at the solution code and wrote a line by line explanation about how it worked. Then I would go back and code it myself. I think they should change their coding exercises by giving you a description of a general framework used for the mini-project. By doing this, it would make it easier to understand how to code each task because some of the exercises aren’t something a student can code up by themselves without prior knowledge.</p><p>Overall, this was a challenging lesson, but equally, if not more so rewarding. I’m looking forward to Lesson 5!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=36e15516e903" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Udacity Deep Learning Nanodegree Notes and Thoughts [Lesson 3]]]></title>
            <link>https://parikhsachi.medium.com/udacity-deep-learning-nanodegree-notes-and-thoughts-lesson-3-7a035e1e3cf9?source=rss-212d7c90cdfc------2</link>
            <guid isPermaLink="false">https://medium.com/p/7a035e1e3cf9</guid>
            <category><![CDATA[udacity]]></category>
            <category><![CDATA[nanodegree]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[deep-learning]]></category>
            <dc:creator><![CDATA[Sachi Parikh]]></dc:creator>
            <pubDate>Sat, 14 Jul 2018 21:03:44 GMT</pubDate>
            <atom:updated>2018-07-14T21:14:04.706Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bdHnYBqyZiF2Sz0C86JlNw.jpeg" /><figcaption>Visualization of how a CNN filter works</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uAwCa_Oky-JgXhRycAUfow.jpeg" /><figcaption>Hyper-parameters of the CNN</figcaption></figure><p>Course Content:</p><p>The primary focus of this lesson was convolutional neural networks (CNNs or ConvNets), which are deep neural networks that specialize in image analyzation and pattern detection. They use convolutional layers that detect patterns to take an image input and get the final output as what the image contains. In this case (look at the notes on the left), the image contains the number 7. The filters in convolutional neural networks learn how to detect patterns by themselves, which is pretty amazing. If you take the filters and visualize them, you can see which patterns each filter identifies.</p><p>We also learned how to tune various hyper-parameters in order to better train our network. Some of these include the number of filters; which can make the neural net more or less sensitive to pattern detection, padding; where you pad the outside of the image with 0’s if the filter extends outside the image, as well as various other parameters like strides and kernel size. Tuning the parameters can prove to be tricky, and it was a challenge to decide what numbers to use to get the most out of your network.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*snBbyIf2cWr2WafurVoJVw.jpeg" /><figcaption>How the Final Layer of the CNN works</figcaption></figure><p>Unless you are using a particular activation function, the output of the neural network will always be probabilistic, and the way the ConvNet decides these probabilities is based on how many types of these patterns it detects. For example, if your CNN specializes in identifying if a dog is present in the image, the results will be P(dog) and 1-P(dog) or P(not a dog). It calculates this probability by observing how many of the filters detect the features that an image of a dog would contain, like having ears or a snout.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ez5DDs7eyUcmrysRv5xp3A.jpeg" /><figcaption>How to use CNNs in TensorFlow</figcaption></figure><p>Then it would give the probability of how well the network’s filter matches the attributes of the given image. Based on this probability it can output if the image contains a dog or if it doesn’t. Now, the weights of the filters are learned by the machine; they aren’t manually set. The original weights of the filter are set to some random numbers based on the type of probability distribution you use. Then you give it the training data with the labels, and it starts detecting the patterns in the images as it starts classifying better. The way the filter is able to learn is truly phenomenal.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v41CFewIaNDiRfq_kHOMXw.jpeg" /><figcaption>One of the coding exercises for the CNN lesson</figcaption></figure><p>The convolutional layers are a replacement for the hidden layers, and the filters act as the weights. However, since there are multiple convolutional layers (feature maps), the filters all come together to produce the final output in the output layer. Like how I explained earlier, depending on how well each filter fits the image, it generates a probability. In the final layer, also known as the output layer, you combine all of those probabilities with the respective weights that each filter carries. Each filter carries it’s own weight because some patterns are more important than others. The filter that detects the legs of the dog has a higher importance than the filter that identifies the eyelids of the dog, so it carries a larger weight.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6TqpgTNB2hXWaeZLRjtaMQ.jpeg" /><figcaption>Notes on how Sebastian Thrun used CNNs for Cancer Detection</figcaption></figure><p>Thoughts:</p><p>I thought that this lesson was straightforward and easy to understand because the videos were mostly visual. Drawing out the diagrams helped in my comprehension why RGB images were stacked in matrices, how tuning each hyper-parameter affected different parts of the neural network, and how the filters were able to learn by themselves. These are tricky concepts to understand, and because of all the fantastic diagrams and visualizations, the course wasn’t as challenging.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7a035e1e3cf9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Udacity Deep Learning Nanodegree Notes and Thoughts [Lesson 2]]]></title>
            <link>https://parikhsachi.medium.com/udacity-deep-learning-nanodegree-notes-and-thoughts-lesson-2-e1d6d762506e?source=rss-212d7c90cdfc------2</link>
            <guid isPermaLink="false">https://medium.com/p/e1d6d762506e</guid>
            <category><![CDATA[nanodegree]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[udacity]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[deep-learning]]></category>
            <dc:creator><![CDATA[Sachi Parikh]]></dc:creator>
            <pubDate>Fri, 29 Jun 2018 18:55:04 GMT</pubDate>
            <atom:updated>2018-06-29T18:55:04.638Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4xMzk2uTZkGmfb_of-w9Ag.jpeg" /><figcaption>My Code for the Perceptron Algorithm Quiz</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KBe7fQMBxiYM333hWinbwQ.jpeg" /><figcaption>Gradient Descent and Activation Functions</figcaption></figure><p>Lesson 2[1]- 2[7]:</p><p>Course Content:</p><p>The course starts out with defining machine learning at an elementary level; separating two dimensional with a linear line in the form Wx + b, and later on, how to separate data with 3, 4 or n dimensions. You see how the data goes through the perceptron visually, and how you can combine perceptrons to separate data that looks linearly inseparable, like using the AND and NOT perceptron to create the XOR perceptron.</p><p>We learned how Gradient Descent worked, and how the different types of activation functions created discrete or continuous outputs depending on the activation functions put before the output layer. The most interesting thing about this section was how you could combine multiple linear models to get a model that could classify non-linear data, then combine those models to create even more complicated models inside the section of the neural net known as the hidden layer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zENXS56Fx4f-xC4hxX8Eag.jpeg" /><figcaption>Cross Entropy</figcaption></figure><p>Now when it came time to code, something I especially liked about this lesson is that they explained how and why you use certain equations so when I started coding the perceptrons, it made complete sense to me, and I didn’t have to go back and review videos because they explained it so clearly. They were able to teach higher level concepts in a way that I would never be able to understand by just reading the documentation or an article.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JYSwKlAjWQx1MENSDi6kKw.jpeg" /><figcaption>Cross Entropy</figcaption></figure><p>Some of the more difficult concepts like Gradient Decent and Error functions were a bit more challenging, and they were aware of that. Instead of just giving you the equation and asking you to code it, they go through the math step by step. They ask you, the student, how you would help the neural net classify data with simple questions like: “What type of function turns a product into a sum?” or “What type of function turns all numbers positive?”, and through this process, you build the algorithms by yourself and get a deeper understanding of how it works.</p><p>The diagrams and animations provided in the videos are handy, especially if you have a hard time wrapping around your head how to understand why specific equations and concepts work the way they do. It’s clear that they put a lot of time and effort to make the animations clear and understandable to students.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3xTTXy9wrHqubohAbXRG0g.jpeg" /><figcaption>Error Function and Gradient Descent Math</figcaption></figure><p>Thoughts:</p><p>From just my experience with this course up until Lesson 2, I am extremely satisfied with the course material and the interactive way they teach the more math intensive parts of deep learning. I also love how the forums for the course are very active- nearly every question you have will probably already be answered, and the slack channels are always available for any questions you want answered quickly. The projects for the course are not that difficult if you don’t have trouble with the coursework and understand it well enough.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ChD8_ElJPkWoLcYQ4TPYVw.jpeg" /><figcaption>Combining Linear Models to Separate Non-Linear Data</figcaption></figure><p>Most of the time if you can’t understand something and there isn’t an answer on the forums, just submit the code you have. The reviewer always does a great job answering your questions and helping you improve your code for your next submission, as well as answering any of the questions you ask. Additionally, they provide you with extra links and documentation of specific concepts that you may not understand based on the level of understanding they see from your code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*scOhRyXHmol40ulFidyVqA.jpeg" /><figcaption>Different Types of Ways to Create Neural Networks</figcaption></figure><p>This course does require prior programming and Python knowledge, and they expect you to understand how to code all the perceptrons, algorithms, and activation functions just by knowing how they operate. Without this experience, some of the coding exercises that are pretty straightforward will be difficult for someone who is not well versed in Python. However, the need to be completely fluent in calculus is not necessary, so don’t let that scare you off. As I am a freshman in high school, I have not learned calculus yet, but I was able to understand the gradient descent math with a good enough understanding by watching a couple of videos here and there.</p><p>Overall, I am enjoying this course quite a lot and learning from Udacity has been an excellent experience for me so far. I am looking forward to the next lessons!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e1d6d762506e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>