<?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 Ritwik Sharma on Medium]]></title>
        <description><![CDATA[Stories by Ritwik Sharma on Medium]]></description>
        <link>https://medium.com/@ritwik.1204?source=rss-32dbb8b12c3b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*1bIRQVltDdun778R2R43Fg.png</url>
            <title>Stories by Ritwik Sharma on Medium</title>
            <link>https://medium.com/@ritwik.1204?source=rss-32dbb8b12c3b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 09:55:05 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ritwik.1204/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[A Basic Neural Network!!]]></title>
            <link>https://medium.com/analytics-vidhya/a-basic-neural-network-90a1655294bc?source=rss-32dbb8b12c3b------2</link>
            <guid isPermaLink="false">https://medium.com/p/90a1655294bc</guid>
            <category><![CDATA[artificial-neural-network]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[tensorflow]]></category>
            <dc:creator><![CDATA[Ritwik Sharma]]></dc:creator>
            <pubDate>Thu, 03 Sep 2020 20:38:43 GMT</pubDate>
            <atom:updated>2020-09-08T16:02:21.112Z</atom:updated>
            <content:encoded><![CDATA[<p>This post consists of a Basic Neural Network Implementation using TensorFlow, Keras, Numpy, and Python.</p><h3>TensorFlow</h3><p>TensorFlow is a free and open-source software library for dataflow and differentiable programming across a range of tasks. It is a symbolic math library and is also used for machine learning applications such as neural networks.</p><p>Deep neural networks are all about networks of neurons, with each neuron learning to do its own operation as part of a larger picture. Data such as images enter this network as input and flows through the network as it adapts itself at training time or predicts outputs in a deployed system.</p><p>Tensors are the standard way of representing data in deep learning. Simply put, tensors are just multidimensional arrays, an extension of two-dimensional tables (matrices) to data with higher dimensionality. Just as a black-and-white (grayscale) images are represented as “tables” of pixel values, RGB images are represented as tensors (three-dimensional arrays), with each pixel having three values corresponding to red, green, and blue components.</p><p>In TensorFlow, computation is approached as a dataflow graph (Figure below). Broadly speaking, in this graph, nodes represent operations (such as addition or multiplication), and edges represent data (tensors) flowing around the system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*bn_3RG4ULY6xA7yF.png" /><figcaption><em>A dataflow computation graph. Data in the form of tensors flows through a graph of computational operations that make up our deep neural networks.</em></figcaption></figure><h3>TensorFlow Architecture</h3><p>TensorFlow architecture works in three parts:</p><ul><li>Preprocessing the data</li><li>Build the model</li><li>Train and estimate the model</li></ul><p>It is called TensorFlow because it takes input as a multi-dimensional array, also known as tensors. You can construct a sort of flowchart of operations (called a Graph) that you want to perform on that input. The input goes in at one end, and then it flows through this system of multiple operations and comes out the other end as output.</p><p>This is why it is called TensorFlow because the tensor goes in it flows through a list of operations, and then it comes out the other side.</p><h3>Keras</h3><p>Keras is a minimalist Python library for deep learning that can run on top of Theano or TensorFlow.</p><p>It was developed to make implementing deep learning models as fast and easy as possible for research and development.</p><p>It runs on Python 2.7 or 3.5 and can seamlessly execute on GPUs and CPUs given the underlying frameworks. It is released under the permissive MIT license.</p><h3>Installation</h3><p>Create a Virtual Environment</p><pre>pip3 install virtualenv</pre><pre>virtualenv -p ~/home tensorflow</pre><p>Activate Virtual Environment</p><pre>source ~/home/tensorflow/bin/activate</pre><p>Install TensorFlow</p><pre>pip3 install tensorflow</pre><p>Install Keras</p><pre>pip3 install Keras</pre><p>Install Numpy</p><pre>pip3 install numpy</pre><h3>Artificial Neural Network</h3><p>In Layman’s terms, an Artificial Neural Network is the artificial implementation of how the human brain works, It consists of Neurons which we call Nodes or units.</p><p>A neural network is composed of a number of nodes, or units, connected by links. Each link has a numeric weight associated with it. Weights are the primary means of long-term storage in neural networks, and learning usually takes place by updating the weights. Some of the units are connected to the external environment and can be designated as input or output units. The weights are modified so as to try to bring the network’s input/output behavior more into line with that of the environment providing the inputs.</p><p>Artificial Neural Networks are of different types. Such as Convolutional Neural Network (CNN), Recurrent Neural Network (RNN), etc. A very basic single-layer neural network is known as Perceptron. We will not go into much detail here.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/0*HQaZD-JL062gJS2M.png" /></figure><h3>Implementation</h3><p>We will start with a very basic mathematical relation between X and Y.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*HLsaVWvMU6TPNmCE.png" /></figure><p>Here, Different values of X and Y are given. There’s a formula that maps X to Y. Computing that manually is kind of tough as we need to do lots of Hit and trials to arrive at a conclusion.</p><p>The conclusion is:</p><pre>Y = 2X - 1</pre><p>We can use a Neural Network to compute this for us in a fraction of seconds. What a Neural Network will do is to guess the value again and again just like we were doing by Hit and Trial.</p><p>Below is the code to implement this,</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d5bc425ea64a3a6df95cada802e7fb33/href">https://medium.com/media/d5bc425ea64a3a6df95cada802e7fb33/href</a></iframe><p>This code will give the following output:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*SqhAVL4srjWL-yXZ.png" /></figure><p>Here, We can see that we got the value of Y as 18.987537 for a value of X = 10.0.</p><p>We should have got Y = 19.0 but as we have trained our model for 500 epochs only and that too with very little training data i.e. just 6 values of X and Y. So, these many discrepancies in results are common and expected.</p><p>Just like this Artificial Neural Networks could be used in a number of ways such as Image Classifications, Natural language Processing, Voice recognition, and a lot.</p><p>TensorFlow is the latest and very reliable library or framework to build Neural Networks. It also consists of visualization toolkits such as TensorBoard and a flexible, high-performance serving system to serve/ export models known as TensorFlow Serving.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=90a1655294bc" width="1" height="1" alt=""><hr><p><a href="https://medium.com/analytics-vidhya/a-basic-neural-network-90a1655294bc">A Basic Neural Network!!</a> was originally published in <a href="https://medium.com/analytics-vidhya">Analytics Vidhya</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Innovation!!]]></title>
            <link>https://medium.com/@ritwik.1204/innovation-30ce81df4539?source=rss-32dbb8b12c3b------2</link>
            <guid isPermaLink="false">https://medium.com/p/30ce81df4539</guid>
            <category><![CDATA[innovation]]></category>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[science]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[motivation]]></category>
            <dc:creator><![CDATA[Ritwik Sharma]]></dc:creator>
            <pubDate>Thu, 03 Sep 2020 20:20:00 GMT</pubDate>
            <atom:updated>2020-09-03T20:20:00.523Z</atom:updated>
            <content:encoded><![CDATA[<p>Those imaginations look better when introduced with practicality. Following your heart and doing something unusual is what we all crave for. Making Fiction a reality and naive ideas an incredible Innovation. We want things in a different way by following the regular way. Instead of Innovating, we are wagging the usual way.</p><h3>Innovation</h3><p>Some paraphrased selections from <a href="https://www.ideatovalue.com/inno/nickskillicorn/2016/03/innovation-15-experts-share-innovation-definition/">an article by Nick Skillicorn</a> based on interviews with 15 innovators:</p><ul><li>Application of ideas that are novel and useful</li><li>It’s about staying relevant</li><li>Great idea, executed brilliantly and communicated well</li><li>Feasible, relevant offering with a viable business model perceived as new and adopted by customers</li><li>Introduction of new products and services that add value to an organization</li><li>As long as it includes “new” and addresses customer needs, any variation goes</li><li>Fundamental way companies bring constant value to their customers</li><li>Work that delivers new goodness to customers in new markets and radically improves the profitability equation</li><li>Implementation of something new</li><li>Implementation of creative ideas to generate value</li><li>Anything new, useful, and surprising</li></ul><p>These are all professional or corporate terms that look good on paper but hard to understand for the heart and mind.</p><h3>Just Innovation!</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*VE6Zytf4XZfTnoCY.jpg" /></figure><p>It is something that one does when they don’t want to follow the already available methods. Finding a solution to a problem from the usual solution being used for years by the crowd. It does not come by practice, nor by hard work. It comes with pure knowledge and the intention to feel and do things the other way.</p><p>It does not always mean being successful, sometimes many people find innovative ways of failure that one could not imagine. Being able to do something in an algorithmic way is never innovation. The person who developed that algorithm was Innovative not the one currently using it. We spend most of our time using the methods or ways given by innovative people. We hardly spend any time or thought in creating our own innovative ideas to do something.</p><p>Innovation is attractive, we all like it. Just adding a new flavor to Coffee makes it Innovative. It’s not something too hard to do but too hard to think!. Most innovations are coincidence or accidents happened to people and in those times they discovered a new way.</p><p>Most scientists are busy in doing research but not Innovation. We are busy in finding something that is already available but doesn’t want to give a thought of creating something way too different than already available.</p><p>The best example is transportation. Engineers and Scientists spend years in achieving high speeds. From inventing the wheel to Space Rockets the era changed and the innovations came in the picture. But going the same way isn’t the way to Innovate anymore. We want to achieve light speed with fuel and propulsion. We never gave a thought to something new.</p><p>The Wormhole was one of the most innovative ideas for transportation. But most of the time the Innovative things are merely believed to be fictions rather than reality.</p><p>Another field is Artificial Intelligence and Machine Learning. In reality, if we go deep into the foundations of it. It is using mathematical formulas in an intelligent way and trains the Model to perform something. It isn’t intelligence. Cognitive Science is a much promising field but it is mostly seen in fiction and Movies and thought to be something dangerous. Watch 5–10 AI movies and even the AI researcher will start thinking “Am I the devil who is working on something evil?”</p><p>Science is beautiful, it answers our questions and Mathematics backs it up with prooves. Innovations are the need and necessity of Science. Learning from the already available researches and Innovating something new is the pure use of Science and Knowledge which we all should do to Innovate awesomely things every single day of our lives.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=30ce81df4539" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>