<?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 Aayush Jain on Medium]]></title>
        <description><![CDATA[Stories by Aayush Jain on Medium]]></description>
        <link>https://medium.com/@jainaayush?source=rss-ebd39ffce733------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*iOx_XQaT5eYsGqTGMWIIVQ.jpeg</url>
            <title>Stories by Aayush Jain on Medium</title>
            <link>https://medium.com/@jainaayush?source=rss-ebd39ffce733------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 11 Jun 2026 00:52:52 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@jainaayush/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[Introduction to Docker]]></title>
            <link>https://medium.com/analytics-vidhya/introduction-to-docker-69a0e84a7053?source=rss-ebd39ffce733------2</link>
            <guid isPermaLink="false">https://medium.com/p/69a0e84a7053</guid>
            <category><![CDATA[docker-image]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[dockerfiles]]></category>
            <category><![CDATA[docker-compose]]></category>
            <dc:creator><![CDATA[Aayush Jain]]></dc:creator>
            <pubDate>Sat, 11 Sep 2021 07:02:34 GMT</pubDate>
            <atom:updated>2021-09-21T04:46:34.253Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kwvZJ-E0d3fjf1z8DASnOg.png" /></figure><p>Docker have been an interesting and too useful tool in the industry. But as a fresher, it gets difficult to understand that “What is Docker?”, “What is it used for?” or “What is it’s advantages?”, etc. Let’s have a look and answer all these questions below.</p><blockquote>What is Docker?</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/318/1*z8vs-sun76Nrd0W58_QrZA.jpeg" /></figure><p>According to Wikipedia,</p><p>“Docker is a combination of PAAS which uses OS-virtualization to deliver software in packages called containers.”</p><p>Let’s understand in a more simpler way, while deploying or testing of any software we do it in a virtual machine or on testing machine (it can be the laptop of the tester or any other virtual environment) we need to install the required software or OS, it might happen that multiple version errors may occur. That’s where Docker container comes into play.</p><p>In Docker an image is created which is like a OS-virtualization that is it can run a different OS in your computer without requiring to install and setting up manually.</p><p>Writing a Dockerfile and producing the image will in solving the OS or software version errors and will also speed up setting up the resources.</p><blockquote>What are the uses and advantages of Docker?</blockquote><p>One of the advantages of Docker is it reduces the setting up time required to manually setup the virtual devices or test devices or any other devices.</p><p>The software versions error that may occur while using the software in multiple machines can be removed by just running the Dockerfile or the Docker image of the machine.</p><p>Handling the traffic or increasing/decreasing the running nodes on the server/Virtual machines gets much easier with Docker containers and Kubernetes or any other Docker manager service.</p><p>If any Docker container node gets down another Docker container node gets started and get setup without any manual interference using Kubernetes or any other Docker manager service. Which prevents the application from the downtime.</p><p>Maintenance of the application or software gets easier and less trouble some with Dockerization of the application.</p><blockquote>Example of Dockerfile and Docker Image</blockquote><p>Let’s have a look at the Dockerfile and understand few of it’s commands:</p><pre>FROM ubuntu:18.04<br>COPY . /app<br>RUN make /app<br>CMD python /app/app.py</pre><p>FROM Creates the layer from the given Docker image. Example:</p><h4>FROM ubuntu:18.04</h4><p>This creates a layer of <strong>ubuntu:18.04 </strong>Docker image.</p><p>2. COPY adds files from your Docker client’s current directory. Example:</p><h4>COPY . ./app</h4><p>Create a copy of all the items present in current directory of the machine to the ./app directory of the <strong>ubuntu:18.04.</strong></p><p>3. RUN builds your application with make. It triggers while we build the docker image.</p><h4>RUN make ./app</h4><p>It run make command for the application in ./app directory of <strong>ubuntu:18.04 </strong>Docker Image.</p><p>4. CMD specifies what command to run within the container. It triggers while we launch the created docker image.</p><h4>CMD python /app/app.py</h4><p>After the Docker image <strong>ubuntu:18.04 </strong>has been launched it will run the application with the given command in CMD .</p><blockquote><strong>Extras:</strong></blockquote><p>To have a look at how Docker usecase for machine learning projects have visit at:</p><p><a href="https://github.com/Darkshadow9799/Super-Resolution.git">https://github.com/Darkshadow9799/Super-Resolution.git</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=69a0e84a7053" width="1" height="1" alt=""><hr><p><a href="https://medium.com/analytics-vidhya/introduction-to-docker-69a0e84a7053">Introduction to Docker</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[A Gentle Introduction To Autoencoders]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/analytics-vidhya/a-gentle-introduction-to-autoencoders-b456f407a337?source=rss-ebd39ffce733------2"><img src="https://cdn-images-1.medium.com/max/600/0*Nn7ktbijkDNx4ms7" width="600"></a></p><p class="medium-feed-snippet">Definition: Autoencoder is an unsupervised learning method which uses a neural network to learn the task.</p><p class="medium-feed-link"><a href="https://medium.com/analytics-vidhya/a-gentle-introduction-to-autoencoders-b456f407a337?source=rss-ebd39ffce733------2">Continue reading on Analytics Vidhya »</a></p></div>]]></description>
            <link>https://medium.com/analytics-vidhya/a-gentle-introduction-to-autoencoders-b456f407a337?source=rss-ebd39ffce733------2</link>
            <guid isPermaLink="false">https://medium.com/p/b456f407a337</guid>
            <category><![CDATA[autoencoder-mathematics]]></category>
            <category><![CDATA[autoencoder]]></category>
            <category><![CDATA[deep-autoencoder]]></category>
            <dc:creator><![CDATA[Aayush Jain]]></dc:creator>
            <pubDate>Tue, 02 Feb 2021 10:35:26 GMT</pubDate>
            <atom:updated>2021-02-09T16:43:06.875Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Ridge and Lasso: Hyper Tuning in Linear Regression]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-snippet">In Linear Regression, if the training dataset is in such a way that it fits the model perfectly forming a straight line (as y=mx) and the&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/analytics-vidhya/ridge-and-lasso-hyper-tuning-in-linear-regression-2ff88d5968c?source=rss-ebd39ffce733------2">Continue reading on Analytics Vidhya »</a></p></div>]]></description>
            <link>https://medium.com/analytics-vidhya/ridge-and-lasso-hyper-tuning-in-linear-regression-2ff88d5968c?source=rss-ebd39ffce733------2</link>
            <guid isPermaLink="false">https://medium.com/p/2ff88d5968c</guid>
            <category><![CDATA[lasso]]></category>
            <category><![CDATA[linear-regression]]></category>
            <category><![CDATA[ridge-regression]]></category>
            <category><![CDATA[lasso-regression]]></category>
            <category><![CDATA[ridge]]></category>
            <dc:creator><![CDATA[Aayush Jain]]></dc:creator>
            <pubDate>Tue, 08 Sep 2020 07:46:26 GMT</pubDate>
            <atom:updated>2020-09-08T08:18:20.953Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Spam Classifier: A Natural Language Processing Project]]></title>
            <link>https://blog.chatbotslife.com/spam-classifier-a-natural-language-processing-project-3dcd177b4534?source=rss-ebd39ffce733------2</link>
            <guid isPermaLink="false">https://medium.com/p/3dcd177b4534</guid>
            <category><![CDATA[natural]]></category>
            <category><![CDATA[nlp]]></category>
            <category><![CDATA[projects]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[python-programming]]></category>
            <dc:creator><![CDATA[Aayush Jain]]></dc:creator>
            <pubDate>Thu, 27 Aug 2020 09:17:05 GMT</pubDate>
            <atom:updated>2021-08-16T15:11:44.816Z</atom:updated>
            <content:encoded><![CDATA[<p>What is Natural Language Processing?</p><p>NLP is a method or a way in which computer interprets the Human language are perform the task. Alexa, Siri, etc. are some of its example.</p><p><strong>Let’s start with the Spam Classifier:</strong></p><p>The spam classifier predicts whether received message is a ham or a spam.</p><p>Let’s start with the dataset: The dataset consists of 5572 messages and their labels which is either “ham” or “spam”.</p><pre>import pandas as pd</pre><pre>messages = pd.read_csv(“SMSSpamClassifier”,sep=”\t”,names=[‘label’,’message’])</pre><p>Now the labels needs to be converted in 0 and 1 labels which can be done using get_dummies() method of pandas library.</p><pre>y = pd.getdummies(messages[‘labels’])</pre><pre>y = y.iloc[:1].values</pre><figure><a href="https://chatbotslife.com/chatbot-conference-online-2021-7161960c2817"><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*lwlUzb2E7V5ZAsT4.png" /></a></figure><p>Here, y wil contain 0 for “ham” labels and 1 for “spam” labels.</p><p>Now let’s look at independent data i.e. for x. For that 1st we have to clean the message data i.e. remove stopwords, lower string, group the same type words, etc. For all these we will use WordNetLemmatizer, the main reason of using the lemmatizer instead of stemming, it will provide meaning full words.</p><p>Now the code for it is:</p><pre>import re</pre><pre>import nltk</pre><pre>import nltk.corpus import stopwords</pre><pre>from nltk.stem import WordNetLemmatizer</pre><pre>lemmatizer = WordNetLemmatizer()</pre><pre>corpus = []</pre><pre>for i in range(len(messages)):</pre><pre>review = re.sub(‘[^a-zA-Z]’,’ ‘,messages[‘message’][i])</pre><pre>review = review.lower()</pre><pre>review = review.split()</pre><pre>review = [lemmatizer.lemmaatizer(word) for word in review if not word in stopwords.words(‘english’)]</pre><pre>review = ‘ ‘.join(review)</pre><pre>corpus.append(review)</pre><p>Here, corpus have all the sentences with clear data. The code above removes the stopwords, lowercase them and get all the important words that are required for prediction. Now we use Term Frequency and Inverse Term Frequency i.e. TfidfVectorizer to for the vector of words. The Tf-idf vector provide us with a vector of words and their importance.</p><h3>Trending Bot Articles:</h3><blockquote><a href="https://chatbotslife.com/how-conversational-ai-can-automate-customer-service-ce1e6e330902">1. How Conversational AI can Automate Customer Service</a></blockquote><blockquote><a href="https://chatbotslife.com/automated-vs-live-chats-what-will-the-future-of-customer-service-look-like-69c90432c8f4">2. Automated vs Live Chats: What will the Future of Customer Service Look Like?</a></blockquote><blockquote><a href="https://chatbotslife.com/chatbots-as-medical-assistants-in-covid-19-pandemic-3d2731b85128">3. Chatbots As Medical Assistants In COVID-19 Pandemic</a></blockquote><blockquote><a href="https://chatbotslife.com/chatbot-vs-intelligent-virtual-assistant-whats-the-difference-why-care-180aebde9358">4. Chatbot Vs. Intelligent Virtual Assistant — What’s the difference &amp; Why Care?</a></blockquote><pre>from sklearn.feature_extraction.text import TfidfVectorizer</pre><pre>cv = TfidfVectorizer(max_features=5000)</pre><pre>x = cv.fit_transform(corpus).toarray()</pre><p>The data is prepared in ‘x’ and now we can use it for training our model. Since Naïve Bayes algorithm works better for NLP we will use it for training our model.</p><pre>from sklearn.model_selection import train_test_split</pre><pre>from sklearn.naive_bayes import MultinomialNB</pre><pre>from sklearn.metrics import accuracy_score</pre><pre>X_train, X_test, y_train, y_test = train_test_split(x, y, test_size = 0.20, random_state=0)</pre><pre>spam_detect_model = MultinomialNB().fit(X_train, y_train)</pre><pre>y_pred = spam_detect_model.predict(X_test)</pre><pre>print(accuracy_score(y_test,y_pred))</pre><p>The model will give of accuracy of around 98%. To predict the new input we can use model.predict(cv.tranform(user_input).toarray()) and get the output for it.</p><p>All resources and code is present at:</p><p><a href="https://github.com/Darkshadow9799/Sms-Spam-Classifier">Darkshadow9799/Sms-Spam-Classifier</a></p><p>To have a look for NLP description click <a href="https://medium.com/analytics-vidhya/techniques-in-nlp-which-will-boost-your-model-1add5b57d73a">here</a>.</p><h3>Don’t forget to give us your 👏 !</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/780/0*ZxaGcKC3UQEydQIX" /></figure><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fupscri.be%2F3e59ef%3Fas_embed%3Dtrue&amp;dntp=1&amp;url=https%3A%2F%2Fupscri.be%2F3e59ef&amp;image=http%3A%2F%2Fapi.screenshotlayer.com%2Fapi%2Fcapture%3Faccess_key%3Dfe59908dad3baab69ffab249a2224b03%26viewport%3D1024x612%26width%3D1000%26url%3Dhttps%253A%252F%252Fupscri.be%252F3e59ef%253Fscreenshot&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=upscri" width="800" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/7078d8ad19192c4c53d3bf199468e4ab/href">https://medium.com/media/7078d8ad19192c4c53d3bf199468e4ab/href</a></iframe><figure><a href="https://chatbotslife.com/bot-communities-mastermind-group-d2dae9876709#.53x0py6ou"><img alt="" src="https://cdn-images-1.medium.com/max/255/1*6XUspT9JOSq0w0Fi35HIaA.png" /></a></figure><figure><a href="https://m.me/ChatbotsLife"><img alt="" src="https://cdn-images-1.medium.com/max/255/1*c1LDMH5vbnIz9rmAka8Hwg.png" /></a></figure><figure><a href="https://chatbotslife.com/chatbot-development-hire-top-ai-chatbot-developers-c8b45ef7f207"><img alt="" src="https://cdn-images-1.medium.com/max/255/1*D0Jf3dI6ZThtqcfwDYY7mg.png" /></a></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3dcd177b4534" width="1" height="1" alt=""><hr><p><a href="https://blog.chatbotslife.com/spam-classifier-a-natural-language-processing-project-3dcd177b4534">Spam Classifier: A Natural Language Processing Project</a> was originally published in <a href="https://blog.chatbotslife.com">Chatbots Life</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CNN: Convolutional Neural Network in Deep Learning]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-snippet">What is Convolutional Neural Network??</p><p class="medium-feed-link"><a href="https://medium.com/analytics-vidhya/cnn-convolutional-neural-network-in-deep-learning-5d8b39a3c283?source=rss-ebd39ffce733------2">Continue reading on Analytics Vidhya »</a></p></div>]]></description>
            <link>https://medium.com/analytics-vidhya/cnn-convolutional-neural-network-in-deep-learning-5d8b39a3c283?source=rss-ebd39ffce733------2</link>
            <guid isPermaLink="false">https://medium.com/p/5d8b39a3c283</guid>
            <category><![CDATA[cnn]]></category>
            <category><![CDATA[filters]]></category>
            <category><![CDATA[convolutional-neural-net]]></category>
            <category><![CDATA[max-pooling]]></category>
            <category><![CDATA[deep-learning]]></category>
            <dc:creator><![CDATA[Aayush Jain]]></dc:creator>
            <pubDate>Tue, 18 Aug 2020 06:53:00 GMT</pubDate>
            <atom:updated>2020-08-19T14:42:37.733Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Vanishing Gradient Problem in Deep Learning]]></title>
            <link>https://medium.com/analytics-vidhya/vanishing-gradient-problem-in-deep-learning-dafb9caf2f3a?source=rss-ebd39ffce733------2</link>
            <guid isPermaLink="false">https://medium.com/p/dafb9caf2f3a</guid>
            <category><![CDATA[vanishing-gradient]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[problems-in-cnn]]></category>
            <dc:creator><![CDATA[Aayush Jain]]></dc:creator>
            <pubDate>Mon, 10 Aug 2020 11:30:51 GMT</pubDate>
            <atom:updated>2021-04-29T06:01:58.513Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Vanishing Gradient Problem</strong></h3><p>In 1980’s, at that time the researches were not able to find deep neural network in ANN because we have to use sigmoid in each and every neuron as the ReLU was not invented. Because of sigmoid activation function we were facing a problem known as Vanishing Gradient Problem.</p><p>Let’s understand what actually it is.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*Ygj4VUmbUjVMjt_TcArd2Q.png" /><figcaption>The Simple ANN</figcaption></figure><p>Let the inputs be X1, X2 and X3 and the output be Yp and the weights be {W11, W12, W13}, {W21, W22, W23} and {W31, W32, W33} for inputs resp.</p><p>Now for 2nd layer to 3rd layer the weights be {O1, O2} resp.</p><p>To calculate W11 new formula is W11 new=W11 old -n (derivative of L w.r.t W11 old), where</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/339/1*d1Rplcs2DGUZ1aZqrTc9zw.png" /></figure><p>i.e. Loss and Y is actual output.</p><p>The sigmoid function is given by</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/733/1*Hns9HNPE2jM5G7qZ4YPf2Q.png" /></figure><p>and the value of the sigmoid function is between 0 to 1. When we derivate the function the value comes between 0 to 0.25.</p><p>How??</p><p>Its derivative w.r.t x is</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/272/1*_MIb-19vMHHXA9N3N7zRJA.png" /></figure><p>If we take the value of x to be 0 then f’(x) is 0.25 and when we take the value of x to be infinity then f’(x) is 0. This can be analysed using the graph given below where blue line represents sigmoid function and red line represents the derivative of sigmoid function.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YNb2iNYTzGnkqJhpwEb4mQ.png" /><figcaption>Graph of Sigmoid Function and its derivative.</figcaption></figure><p>This means as the layers increases the value of this derivative becomes less and less till the point where the value of old weights is approximately gets equals to the new weights.</p><p>For example, if we want to find W11 new and W11 old is 5 and n is 0.01 then we need derivative of L w.r.t W11 which is equal to derivative of L w.r.t O1 * derivative of O1 w.r.t W11.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/245/1*QTRRojPQyDqKOKxpdBce5g.png" /></figure><p>Suppose the value of derivative of L w.r.t O1 is 0.25 and derivative of O1 w.r.t W11 is 0.02. Then the derivative of L w.r.t W11 is 0.05, which makes the new values as 4.9995 which is approximately 5.</p><p>This type of problem in Deep learning is considered as Vanishing Gradient Descent.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dafb9caf2f3a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/analytics-vidhya/vanishing-gradient-problem-in-deep-learning-dafb9caf2f3a">Vanishing Gradient Problem in Deep Learning</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>
    </channel>
</rss>