<?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 Rahul Bhatia on Medium]]></title>
        <description><![CDATA[Stories by Rahul Bhatia on Medium]]></description>
        <link>https://medium.com/@rbhatia46?source=rss-e22aafa7d95------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*9khMHWqV3i9IfTR8pXylxA.jpeg</url>
            <title>Stories by Rahul Bhatia on Medium</title>
            <link>https://medium.com/@rbhatia46?source=rss-e22aafa7d95------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 22:46:01 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rbhatia46/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[Why Multimodal Retrieval is the Next Big Frontier in AI Search(and how to Solve for it)]]></title>
            <link>https://medium.com/@rbhatia46/why-multimodal-retrieval-is-the-next-big-frontier-in-ai-search-and-how-to-solve-for-it-054ae74d0aaa?source=rss-e22aafa7d95------2</link>
            <guid isPermaLink="false">https://medium.com/p/054ae74d0aaa</guid>
            <category><![CDATA[nlp]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[generative-ai-tools]]></category>
            <category><![CDATA[retrieval-augmented-gen]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Rahul Bhatia]]></dc:creator>
            <pubDate>Mon, 30 Sep 2024 14:57:30 GMT</pubDate>
            <atom:updated>2024-09-30T14:58:36.155Z</atom:updated>
            <content:encoded><![CDATA[<p>Most Retrieval-Augmented Generation (RAG) systems work fairly well when dealing with simple text-based documents like PDFs. However, in real-world applications, especially in industries like finance, technical support, and research, the documents we need to query are far more complex. User manuals, financial reports, and proprietary knowledge bases, for example, contain diverse data types such as tables, images, and graphs, all of which hold critical information that traditional RAG systems struggle to interpret.</p><h3>The Challenge of Multimodal Search</h3><p>Multimodal retrieval is essential when the information isn’t just in text. You could try running layout parsers to segment these various data types, followed by an OCR model, followed by using models like image captioning to unify them into a single text embedding space, but this approach often results in high latency. This slows down the retrieval process, leading to a poor user experience.</p><p>Moreover, Image captioning models, which are typically trained to generate descriptive text for images, might struggle with complex figures and graphs. These models often focus on high-level features and may not capture the detailed, nuanced information present in graphs, such as specific data points, axis labels, or intricate relationships depicted in the visuals. This can result in a loss of crucial information when converting these graphical elements into text embeddings for retrieval tasks.</p><p>In cases where precision is required, such as scientific reports, financial charts, or technical diagrams, relying solely on image captioning may not provide the level of detail needed for effective retrieval</p><p>This is where we need a more efficient approach to multimodal search.</p><h3>Enter ColPali: Efficient Document Retrieval with Vision-Language Models</h3><p>A recent breakthrough in this space is the ColPali framework, as outlined in the paper “ColPali: Efficient Document Retrieval with Vision Language Models” (<a href="https://arxiv.org/abs/2407.01449">arxiv link</a>). ColPali offers a robust multimodal retrieval solution that not only reduces latency but also outperforms many existing methods on complex documents.</p><p>So, how does ColPali work?</p><ul><li>Unified Vision-Language Model (VLM): ColPali uses PaliGemma-3B, a pre-trained vision-language model, to handle multimodal content. The key innovation here is that it extracts features from both image patches and text tokens, which are then fed into a unified embedding space. This allows ColPali to interpret both textual and visual elements, such as charts, images and tables, within a document.</li><li>Late Interaction Matching Mechanism: ColPali employs a late interaction mechanism(similar to ColBERT, if you have heard about that) to match queries with document pages. Instead of embedding an entire document or page into a single vector, ColPali breaks it down into smaller multi-vector embeddings (for individual text tokens or image patches). During the query phase, it computes the similarity between query tokens and document patches at a more granular level. This enables more precise matching, improving retrieval accuracy for visually complex documents.</li><li>Efficient Retrieval and Low Latency: Unlike traditional methods that use multiple, often disjointed models for text and images, ColPali directly encodes document pages as images. By doing so, it skips many intermediate steps like layout parsing, OCR and image captioning, which are often time-consuming and error-prone. This direct image encoding results in significantly faster indexing and retrieval times, reducing latency while still maintaining high accuracy.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*p_Cr9-FYYpFIIKts" /><figcaption>Standard Retrieval(converting all modalities to text) vs ColPali</figcaption></figure><p>End-to-End Trainability: One of the standout features of ColPali is its end-to-end trainability. The entire system, from document encoding to query matching, can be trained as a single model, optimising performance without the need for complex, multi-step pipelines typically seen in RAG-style approaches.</p><ul><li>Interpretable Mechanism: One key advantage of ColPali is its transparency. Unlike some systems that are black boxes, ColPali’s structure is interpretable, allowing you to understand why certain sections of a document were retrieved, critical for high-stakes industries like finance.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*nwY8VbybjrLNK2XJ" /><figcaption>Interpretability in the ColPali Framework based on patch similarity</figcaption></figure><h3>Real-World Impact: A High-Accuracy Solution</h3><p>One of ColPali’s key strengths is its ability to pinpoint the relevant pages or sections of a document with high accuracy. For example, when working with dense financial reports or user manuals, ColPali ensures that the right mix of text, tables, and images is retrieved, which can then be supplied as context to any VLM (like Pixtral, Momlo, InternVL2, or more recently Llama-3.2) for generation and Visual QnA use-cases.</p><p>Even more exciting, you can build a Proof of Concept (PoC) in under a couple of hours using these open-source VLMs and ColPali. Simply feed the relevant images(obtained using ColPali) as context along with your prompt, and you’re on your way to a robust first-cut multimodal RAG system. Obviously there are a lot of things that you can do to make it further robust, but this could serve as a great starting point, to get a working system up and running.</p><h3>The Rise of Multimodal and Multilingual AI</h3><p>There’s no doubt that multimodal retrieval is gaining serious traction in the industry. As documents become more complex, it’s crucial to develop systems that can handle a variety of content types. This is why, post the release of GPT-4 in May 2024, many organisations are racing to develop their own vision-language models (VLMs).</p><p>However, the truly untapped potential lies in multilingual multimodal search, an area that has yet to see significant breakthroughs. The ability to process complex documents in multiple languages, combined with various data types, is still an unsolved but exciting challenge.</p><h3>ColPali vs. Other Solutions</h3><p>Now, some solutions like LlamaParse have cracked the handling of structured data, especially tabular content within PDFs, to some extent. But there’s a catch: LlamaParse operates more as a black-box API endpoint, giving very little flexibility to scientists who want to tweak it for specific use cases. ColPali, in contrast, offers more transparency and customisation, allowing researchers and developers to adapt the framework to their needs without being constrained by a rigid system.</p><h3>Summary</h3><p>The importance of multimodal retrieval cannot be overstated. As documents and datasets become increasingly complex, so must the retrieval systems. With frameworks like ColPali leading the way, we can achieve more efficient, interpretable, and high-performing multimodal retrieval, setting the stage for future developments in both multimodal and multilingual search.</p><p>The next frontier in search is here, and it’s multimodal!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=054ae74d0aaa" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cross-encoders vs Bi-encoders : A deep-dive into text encoding methods]]></title>
            <link>https://medium.com/@rbhatia46/cross-encoders-vs-bi-encoders-a-deep-dive-into-text-encoding-methods-d9aa890d6ca4?source=rss-e22aafa7d95------2</link>
            <guid isPermaLink="false">https://medium.com/p/d9aa890d6ca4</guid>
            <category><![CDATA[semantic-search]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[generative-ai-tools]]></category>
            <category><![CDATA[information-retrieval]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Rahul Bhatia]]></dc:creator>
            <pubDate>Fri, 28 Jun 2024 15:17:24 GMT</pubDate>
            <atom:updated>2024-06-28T15:17:24.066Z</atom:updated>
            <content:encoded><![CDATA[<h3>Cross-encoders vs Bi-encoders : A deep-dive into text encoding methods</h3><figure><img alt="Generated using DALL-E 2" src="https://cdn-images-1.medium.com/max/1024/1*dGXs0CUEbjgTCodtuHnK-g.png" /></figure><p>In the world of Natural Language Understanding (NLU) and Information Retrieval (IR), handling textual data’s complexity is a significant challenge. Textual sentences may have subtle nuances that make it hard for machines to understand or categorize. This is where encoding methods like Cross Encoders and Bi Encoders come to play. Let’s break down these complex terms to the foundational principles to understand them thoroughly. These encoding techniques have been in the industry for a long time now and are the fundamental building blocks of the most advanced RAG(Retrieval Augmented Generation) architectures we see today. However, their applications go much beyond RAG and its very important to understand the differences impacting the choice of model used in different search and retrieval applications.</p><h3>Cross Encoders</h3><h4>Definition</h4><p>A cross encoder processes a pair of inputs together, considering the interaction between them during the encoding process. This means that for tasks such as sentence similarity, both sentences are inputted together, and the model learns to encode the relationship between them directly.</p><h4>Mathematical Formulation</h4><p>Given two sentences A and B:</p><ol><li><strong>Concatenation</strong>:</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/242/1*TTo7rGDfpZ5v2WpjSr0r3Q.png" /></figure><p>Here, C represents the concatenated input of A and B.</p><p>2. <strong>Encoding</strong>:</p><p>The concatenated input C is passed through transformer model T:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/262/1*m-lyhjteUO_Cs4_OGBIWjA.png" /></figure><p>3. <strong>Scoring</strong>:</p><p>A scoring function f (e.g., a fully connected layer) is applied to H:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/216/1*2ej4t4HIsq9LaRGuzZNsyw.png" /></figure><p>Here, s represents the similarity score or relevance score between A and B.</p><figure><img alt="Typical architecture of a Cross Encoder" src="https://cdn-images-1.medium.com/max/923/0*Gj4dR6biZcnHc1es.png" /></figure><h4>Usage</h4><p>Cross encoders are particularly effective in tasks where the interaction between the input pairs is crucial. They are commonly used in:</p><ul><li><strong>Question Answering</strong>: Matching questions with their corresponding answers.</li><li><strong>Sentence Similarity</strong>: Determining the similarity between two sentences.</li><li><strong>Ranking Tasks</strong>: Where precise interaction modeling is required.</li></ul><h4>Advantages and Disadvantages</h4><p><strong>Advantages</strong>:</p><ul><li>High accuracy due to modeling the interaction between inputs directly.</li><li>Effective for tasks requiring fine-grained understanding of input pairs.</li></ul><p><strong>Disadvantages</strong>:</p><ul><li><strong>Computationally Intensive:</strong> Every pair of texts needs to be processed together, which means the computation scales with the number of pairs. This makes cross-encoders less suitable for scenarios requiring real-time or large-scale processing.</li><li><strong>Infeasibility for Large Corpora:</strong> Comparing a single query against a large corpus is computationally prohibitive because each comparison requires a full forward pass through the transformer.</li><li><strong>Not suitable for real-time applications</strong> due to higher inference time.</li></ul><h3>Bi-Encoders</h3><h4>Definition</h4><p>A bi-encoder independently encodes each input before combining the resulting embeddings to compute a similarity score. This approach allows for more efficient computation, especially in scenarios where one of the inputs remains constant.</p><h4>Mathematical Formulation</h4><p>Given two sentences A and B:</p><ol><li><strong>Encoding and Pooling(to generate Sentence embeddings)</strong>:</li></ol><p>Each sentence is encoded separately followed by pooling(to generate embedding from Sentence) using the same transformer model T:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/588/1*bhrwmXfQGLmhTcDFdEmygQ.png" /></figure><p><strong>2. Scoring</strong>:</p><p>A similarity function sim (e.g., cosine similarity) is applied to H_A​ and H_B​</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/332/1*deScoiFbvbc0hRIPv7VGBw.png" /></figure><p>Here, s represents the similarity score between A and B.</p><figure><img alt="Typical architecture of a Bi-Encoder" src="https://cdn-images-1.medium.com/max/1010/0*VBkV8iHEo99r4t4y.png" /></figure><h4>Usage</h4><p>Bi-encoders are particularly effective in scenarios requiring efficiency and scalability. They are commonly used in:</p><ul><li><strong>Information Retrieval</strong>: Matching queries with a large corpus of documents.</li><li><strong>Recommendation Systems</strong>: Matching users with items.</li><li><strong>Embedding-based Retrieval</strong>: Precomputing embeddings for efficient search.</li></ul><h4>Advantages and Disadvantages</h4><p><strong>Advantages</strong>:</p><ul><li><strong>Efficient for Large-Scale Retrieval:</strong> Texts can be pre-encoded and stored in a database. During retrieval, only the query needs to be encoded, and similarity can be computed efficiently using the precomputed embeddings.</li><li><strong>Scalability:</strong> Suitable for large-scale retrieval tasks where the model needs to compare a single query against a vast corpus of documents.</li><li><strong>Real-Time Applications:</strong> Faster in scenarios where real-time responses are necessary because the heavy computation is done upfront.</li></ul><p><strong>Disadvantages</strong>:</p><ul><li><strong>Lower Accuracy:</strong> Since the texts are encoded independently, bi-encoders may miss some of the fine-grained interactions between the text pairs, potentially leading to lower accuracy compared to cross-encoders.</li><li><strong>Context Loss:</strong> The independent encoding might lose some contextual nuances that are critical for understanding the relationship between texts.</li></ul><h3>Usage in Retrieval-Augmented Generation (RAG) Pipelines</h3><p>It would be unfair(at least in 2024 at the time of writing this article) to talk about Cross-encoders and Bi-encoders without mentioning their usage in RAG Pipelines.</p><p>In Retrieval-Augmented Generation (RAG) pipelines, the combination of bi-encoders and cross encoders is utilized to balance efficiency and accuracy. RAG pipelines enhance generative models by retrieving relevant information from a large corpus to aid in generating more accurate and contextually relevant responses over a custom/enterprise knowledge base.</p><h4>Step 1: Initial Retrieval with Bi-Encoders</h4><ol><li><strong>Query Encoding</strong>:</li></ol><p>The input query Q is encoded using a bi-encoder:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/230/1*UuaWr9KQSQLNhQ6CaGjqfw.png" /></figure><p>2. <strong>Document Encoding</strong>:</p><p>Each document D_i in the corpus is encoded independently:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/258/1*2_Qh4KSp9TtHVmzt-Sf98w.png" /></figure><p>3. <strong>Similarity Scoring</strong>:</p><p>The similarity between the query embedding H_Q​ and each document embedding H_D_I​​ is computed:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/386/1*WHw5XPRYK0CK3_p0U81sCg.png" /></figure><p>Based on these similarity scores, the top k relevant documents are retrieved.</p><h4>Step 2: Re-Ranking with Cross Encoders</h4><ol><li><strong>Concatenation</strong>:</li></ol><p>Each of the top k retrieved documents D_i​ is concatenated with the query Q:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/248/1*6TnmhtxRyPSztaEgJiWrCQ.png" /></figure><p>2. <strong>Interaction Encoding</strong>:</p><p>Each concatenated pair C_i​ is passed through a cross encoder:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/232/1*U-702pWcdQrx3ppVPInXrg.png" /></figure><p><strong>3. Relevance Scoring</strong>:</p><p>A scoring function f is applied to the hidden representations H_i​ to re-rank the documents based on their relevance to the query:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/232/1*byK_98sOFOhlnbxtNZSVxQ.png" /></figure><p>The documents are then re-ranked based on the scores r_i.</p><h3>Comparative Analysis</h3><h4>When to Use Cross Encoders</h4><ul><li><strong>High Precision Tasks</strong>: Tasks requiring a detailed understanding of the interaction between inputs, such as question answering and precise ranking.</li><li><strong>Small to Medium-scale Data</strong>: Scenarios where computational resources are less of a constraint and high accuracy is paramount.</li></ul><h4>When to Use Bi-Encoders</h4><ul><li><strong>Scalability</strong>: Tasks involving large-scale retrieval, such as search engines or recommendation systems, where efficiency is crucial.</li><li><strong>Real-time Applications</strong>: Scenarios where fast inference is necessary, and the slight trade-off in accuracy is acceptable.</li></ul><h4>RAG Pipelines</h4><ul><li><strong>Initial Retrieval</strong>: Bi-encoders are used for their efficiency in retrieving a large set of potentially relevant documents quickly.</li><li><strong>Re-Ranking</strong>: Cross encoders are employed to refine the selection, leveraging their ability to model the interaction between the query and the retrieved documents to improve relevance and accuracy.</li></ul><h3>Conclusion</h3><p>Both cross encoders and bi-encoders have their unique strengths and are suited for different types of tasks. Cross encoders excel in accuracy by modeling interactions between input pairs but at the cost of higher computational resources. On the other hand, bi-encoders provide a more efficient and scalable solution, making them ideal for large-scale and real-time applications. In RAG pipelines, combining both methods leverages the strengths of each, using bi-encoders for efficient initial retrieval and cross encoders for accurate re-ranking, thus achieving a balance between efficiency and precision.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d9aa890d6ca4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Essential Probability & Statistics concepts before Data Science]]></title>
            <link>https://medium.com/@rbhatia46/essential-probability-statistics-concepts-before-data-science-bb787b7a5aef?source=rss-e22aafa7d95------2</link>
            <guid isPermaLink="false">https://medium.com/p/bb787b7a5aef</guid>
            <category><![CDATA[mathematics]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[statistics]]></category>
            <dc:creator><![CDATA[Rahul Bhatia]]></dc:creator>
            <pubDate>Sat, 19 Oct 2019 13:30:00 GMT</pubDate>
            <atom:updated>2019-10-19T13:30:00.346Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*DdJm_iP6LaC4Ds0F.jpg" /><figcaption>Statistics can be confusing when starting out, there’s so much to learn!</figcaption></figure><p>Hi folks, a very common questions people have before starting out on a Data Science journey is how much of math do I need? In general, you need to be well versed with 4 domains of mathematics, that I like to think of as pillars which form a concrete base of being a Data Scientist —</p><ol><li><strong>Linear Algebra — </strong>used quite frequently in traditional Machine Learning algorithms like Logistic Regression, SVM, etc. Also in unsupervised techniques such as PCA.</li><li><strong>Calculus — </strong>The backbone of Deep Learning, particularly the driving force behind the famous backpropagation, that’s the force behind almost all of the neural networks that work like magic for us today.</li><li><strong>Probability and Statistics —</strong> form the basis of Data Science and Data Analysis</li><li><strong>Matrices(that can also be included in Linear Algebra) —</strong> have a wide usage in Recommender Systems.</li></ol><p>The aim of this article is to mention very brief topics to know at least before starting out with Data Science. This by no means is an exhaustive list and that is not even possible to make one, because Statistics is a huge subject in itself and people spend many years to gain expertise in the same. All of the below topics I mention below I think are personally very important to learn before getting your hands dirty to understand your data in a much better way. So without further ado, let’s get started.</p><p>Statistics at a very broad level can be divided in 2 categories —</p><ul><li>Descriptive Statistics — Calculation and analysis of various statistical moments of the underlying data such as <strong>mean, variance, quantiles etc. In other words, they are <em>brief coefficients that summarize your data.</em></strong></li><li>Inferential Statistics — Making an inference on <strong>population </strong>by examining a <strong>sample </strong>of that population.</li></ul><p>In Descriptive Statistics and Probability, one should know in-depth about at least the following —</p><ul><li>Measures of Central Tendency — Mean, Median, Mode</li><li>Measures of Variability — Variance, Standard Deviation</li><li>Percentiles and Quantiles — Interquartile Range and Mean/Median absolute deviation</li><li>Scatter Plot</li><li>Histograms</li><li>PDF(Probability Density Function)</li><li>CDF(Cumulative Distribution function)</li><li>Box Plots</li><li>Pair Plots(just an extension of scatter plots — check Seaborn)</li></ul><p>As far as Inferential Stats is concerned, it is essential to have a thorough knowledge of the underlying topics —</p><ul><li>Population and Sample</li><li>Bias in Sampling</li><li>Gaussian/Normal Distribution(this is very important)</li><li>Standard Normal Distribution</li><li>Z-Statistic and Standardization</li><li>T-Statistic and its application in Confidence Intervals(Student’s T-Distribution)</li><li>Skewness and Kurtosis of a distribution</li><li>Central Limit Theorem(one of the most fundamental theorems in not only statistics but whole of mathematics)</li><li>Discrete and Continous Distributions mentioned below —</li></ul><ol><li>Binomial and Bernoulli Distribution</li><li>Poisson Distribution</li><li>Uniform Distribution(both Discrete and Continous)</li><li>Normal Distribution</li><li>Exponential Distribution</li><li>Log-Normal Distribution</li><li>Power Law Distribution</li></ol><ul><li>Box-Cox transform</li><li>Kernel Density Estimation</li><li>Box-Cox transformation</li><li>Chebyshev’s inequality</li><li>Correlation Coefficients(Pearson, Spearman, Chi-Squared)</li><li>Point Estimates and Confidence Intervals</li><li>Hypothesis testing</li><li>p-values</li><li>Q-Q Plot</li><li>KS-Test</li><li>Chi-Squared Analysis</li></ul><p>At this moment, these are the most essential concepts I can recall that should be enough to get you started and make sense of the data statistically, both using Descriptive Statistics as well as Inferential Statistics. I will surely update the list if I remember something other than what I have mentioned here. Before departing, I would like to mention once again that this by no means is an exhaustive list. This is something which will definitely get you started and is sufficient to learn what is needed subsequently as all of this forms the basis of much more advanced concepts.</p><p>Thanks for reading and if I missed something, please drop a response and I will update this list. I wanted to keep it minimal and include only what is truly necessary, otherwise statistics is a vast subject and all of the above listed here is a very small part of the same.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bb787b7a5aef" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Using SVM on top of technical indicators to predict Reliance Stock Prices]]></title>
            <link>https://medium.com/@rbhatia46/using-svm-on-top-of-technical-indicators-to-predict-reliance-stock-prices-abb494d9f45f?source=rss-e22aafa7d95------2</link>
            <guid isPermaLink="false">https://medium.com/p/abb494d9f45f</guid>
            <category><![CDATA[trading]]></category>
            <category><![CDATA[stock-market]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[algorithmic-trading]]></category>
            <dc:creator><![CDATA[Rahul Bhatia]]></dc:creator>
            <pubDate>Mon, 16 Sep 2019 11:07:10 GMT</pubDate>
            <atom:updated>2019-09-20T01:03:39.801Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*Pc81Qkh2PMI5pVwx.jpg" /></figure><p>Predicting stock prices has been an interesting task, isn’t it? Data Science for trading has been on the rise and picking up really quick. Since the past 3–4 weeks, I have been learning about finance and trying to extend my Data Science skills to finance to try and understand how trading is being automated and made profitable by a lot of these algorithmic trading firms.</p><p>The other day I came across how Actor-Critic Reinforcement Learning can be used and wrote an <a href="https://www.linkedin.com/pulse/actor-critic-approach-why-can-used-maximize-your-portfolio-bhatia/">article about the same</a>, last night I thought of doing something more simpler and see how it works, since simpler methods have known to work fairly well for most people , I realised I had explored sufficient things to get my hands dirty and try something to create an algorithm which can hopefully generate some profit. Yes, we all know RL is good and amazing and whatnot, but simple methods and technical indicators in Finance have worked fairly well for people in the trading for a long time, so why not couple it with Machine Learning to make something useful and hopefully, profitable.</p><p>This is fairly easy to follow-through and can generate decent results, however<strong>, please read below disclaimer before continuing with this article.</strong></p><p><strong>Disclaimer — Whatever I write here and all the code that you see on my GitHub repo is from my own study and research. I am not responsible for any loss you might incur using this code to perform actual trades. I highly recommend you NOT to use this for actual trading. The purpose of this is to share whatever I have learnt over the past few weeks.</strong></p><h3>What are these technical indicators?</h3><p>According to Investopedia,</p><blockquote>Technical indicators are heuristic or mathematical calculations based on the price, volume, or open interest of a security or contract used by traders who follow technical analysis.</blockquote><p>Long story short, these are a bunch of mathematical and statistical techniques used by Traders which help them in deciding their trading strategy. In this article, we will go through the most fundamental and basic ones and see that they can generate good features which we can feed to our SVM classifier to predict whether we should buy or sell.</p><p>Yes, you heard that right, I have tried to think of it as a Binary Classification problem rather than a Regression problem to predict actual stock prices to keep things simple and SVM tends to work fairly well for classification scenarios such as this, Regression/Forecasting of prices can be better achieved using Time Series Models such as an LSTM network.</p><p>We use <strong>1 to denote Buy</strong> if the price is predicted to rise, and <strong>0 as sell</strong>, if the price is predicted to drop.</p><p>We will be using <strong>TA-Lib </strong>and <strong>Pandas </strong>to calculate most of these technical indicators. So, let’s get started. All the code can be found on my <a href="https://github.com/rbhatia46/Reliance-Stock-prediction-using-SVM">GitHub repository.</a></p><h4>Technical Indicators used as Features :</h4><ol><li><strong>Simple Moving Average</strong></li></ol><ul><li>Daily Financial data can be noisy. We can use the moving average to get more signal rather than noise from the data. The basic concept here is to provide a window of a set time period and then use that to calculate your aggregate statistic(mean in this case)</li><li>For our case, we have considered a simple 5 day-moving average and a 10-day moving average as our features.</li></ul><p><strong>2. Moving Standard Deviation</strong></p><ul><li>This is exactly similar concept to Moving Average, the aggregate statistic, in the end, is Standard Deviation instead of the mean, rest everything else is completely the same. Again, we have considered both a 5 day and a 10 day window to compute Moving Standard Deviation. One very common application of it being <strong>Bollinger Bands, </strong>which are used to identify the volatility of the stocks and are yet another technical indicator to explore.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/0*9ydK3imatcy3bJxA.png" /><figcaption>Bollinger Bands example</figcaption></figure><p><strong>3. Exponentially Weighted Moving Average</strong></p><ul><li>EWMA assigns more weight to more recent values in the time series and is a much better option than Simple Moving Averages, due to the following facts —</li></ul><p>(i) Smaller window sizes in SMA lead to more noise, rather than signal.</p><p>(ii) SMA will always lag by the size of the window.</p><p>(iii) SMA will never reach the full peak of the data due to the averaging.</p><p>(iv) Extreme values/outliers can skew the SMA significantly.</p><p>EWMA gets rid of some of this weaknesses of SMA and is a better choice sometimes.</p><p><strong>3. Relative Strength Index</strong></p><ul><li>RSI is an <strong>oscillator indicator</strong>, with a range between 0 to 100.</li><li>The mathematical equation to calculate RSI is given as -</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/503/0*rI-92RFcbMl4Iyf6.gif" /><figcaption>RSI Mathematical Equation</figcaption></figure><ul><li>Generally, we use a 14 day period to calculate RSI, although this can vary as per any specific requirements.</li><li>A lower period will generate a higher frequency of buying/selling signals and few of them can be wrong.</li><li>A higher period count will generate a lower frequency of buying/selling signals with a high probability of excluding some of the genuine buy/sell opportunities.</li><li>Generally, an RSI value over 70 is considered <strong>Overbought, </strong>while a valie below 30 is considered <strong>Oversold.</strong></li><li>The RSI thresholds maybe 80 and 20 for the above cases in case of <strong>Bullish and Bearish</strong> markets respectively(Google Candlesticks charts to know more about them).</li></ul><p><strong>4. Williams %R</strong></p><ul><li>It is a <strong>Momentum Indicator as well as an Oscillator, </strong>between -100 and 0</li><li>The mathematical equation, which is quite self-explanatory to compute Williams R is given as -</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/445/1*DOc5M_yP372uiIkBh_PZ3Q.png" /><figcaption>William’s R mathematical equation</figcaption></figure><ul><li>A reading above -20 is usually considered overbought.</li><li>A reading below -80 is usually considered oversold.</li><li>Again, above values might slightly differ for Bullish and Bearish markets.</li><li>In a nutshell, it tells a trader where the current price is relative to the highest high over the last 14 periods(or whatever chosen period).</li></ul><p><strong>5. Parabolic SAR</strong></p><ul><li>The Parabolic Stop and Reverse indicator is used to identify the trend direction of a particular asset.</li><li>Represented by dots, either below or above the asset’s price, depending on the direction in which price is moving.</li><li>If there is an uptrend, then these dots are <strong>below </strong>the candlesticks, if there is a downtrend, these are <strong>above </strong>the candlestick chart.</li></ul><p><strong>6. ADX(Average Directional Index)</strong></p><ul><li>This particular indicator is used to determine the strength of a particular trend.</li><li>I will skip with the calculation part which can be read and understood very easily <a href="https://www.investopedia.com/terms/a/adx.asp">here</a>, just to keep this article short and come to the point.</li></ul><p>Great, we now know about a bunch of technical indicators, which we can use to analyze our stock data of Reliance.</p><h3><strong>Why use SVM?</strong></h3><ul><li>SVM is one of the most popular Machine Learning algorithms, extremely popular in the late ’90s and a pretty simple and yet powerful(when paired with the appropriate kernel) approach for tackling Classification and Regression problems.</li><li>SVMs can work very well if we can find the right kernel and if we can find a kernel designed for a specific domain, it can outperform most other techniques and give phenomenal results. However, just to keep things simple, we will stick with the basic ones — a linear kernel, a polynomial kernel and an RBF kernel which comes right out of the box in sklearn.</li><li>The hyperplane is affected by only the support vectors thus outliers have less impact.</li><li>For beginners who are new and want to know more about how SVMs work, you can read this <a href="https://towardsdatascience.com/support-vector-machines-svm-c9ef22815589">awesome blog post</a> and you will know the ins and outs of SVM in no time.</li></ul><h3>Drawbacks of using SVM?</h3><ul><li>SVMs take a very long time to train and are computationally very inefficient to run on large datasets.</li><li>The time complexity of a linear SVM is roughly O(n²).</li><li>We can use feature scaling however to train them faster and to converge the loss function really faster, therefore feature scaling is an important part when dealing with SVMs.</li><li>The run-time complexity is, however, O(k*d), dependent on the number of support vectors <strong>k, </strong>and <strong>d, </strong>the dimensionality of our data.</li><li>Finding the appropriate kernel might be a real pain and is not an easy task.</li><li>Hyperparameter-tuning in case of SVM’s might not be that simplified.</li></ul><h3>Results achieved?</h3><ul><li>We can see in the notebook that we achieved the following results on Reliance stock data from 2009 to the current date :</li></ul><p>Linear SVM — Accuracy : 51.43%</p><p>Polynomial-kernel based SVM — Accuracy: 53.15%</p><p>RBF-Kernel based SVM — Accuracy:52%</p><ul><li>A random model had an accuracy of 33% and we can see that we are doing significantly better than a random model, in all 3 cases.</li><li>You might be thinking this is not a great result, agreed to the fullest, but this is something that we have just obtained using merely 5–6 technical indicators and this can be probably made a lot better to develop a fully-fledged trading algorithm, which can do much better. Below are some ideas which I thought of to improve this and make it much better. But we should really appreciate that we have just used some of the most basic indicators and through some very short python code, we are able to achieve a decent result.</li></ul><h3><strong>How can we make this better?</strong></h3><ul><li>Use Sentiment Analysis and news on Reliance Stock/Stocks in your portfolio.</li><li>Use more number of technical indicators(since SVM works well with high-dimensional data, you can easily add more features without worrying much about the <strong>curse of dimensionality</strong>).</li><li>Apply the same on a diversified portfolio of stocks rather than a single stock.</li><li>Find a domain-specific kernel, which can give the performance a significant boost, i.e., a kernel which works well for finance/time-series data, this needs some research.</li><li>Fine-tune the existing SVM Architecture (use RandomSearch rather than GridSearch to make life easier)</li><li>Interpret your model with model agnostic techniques (such as LIME)to understand any bias(if it exists) and understand which feature is contributing more to your prediction.</li><li>Use more data(even more than 10 years of data, though be careful not use use too much because using too much data adds more noise rather than signal) to obtain much better results, which of course comes at the cost of more time required to train the SVM.</li><li>Try other classifiers, such as KNN, which can be quite similar to RBF-based SVM to see if there is any improvement in the performance.</li></ul><p>All the code associated with this blog post can be found on this <a href="https://github.com/rbhatia46/Reliance-Stock-prediction-using-SVM">GitHub repository</a>.</p><p>Thanks for reading! Have a great day ahead!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=abb494d9f45f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Sufficient amount of Python you need to dive into Data Science]]></title>
            <link>https://medium.com/@rbhatia46/the-sufficient-amount-of-python-you-need-to-dive-into-data-science-cf61aae3835f?source=rss-e22aafa7d95------2</link>
            <guid isPermaLink="false">https://medium.com/p/cf61aae3835f</guid>
            <category><![CDATA[python-for-data-science]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[python3]]></category>
            <dc:creator><![CDATA[Rahul Bhatia]]></dc:creator>
            <pubDate>Fri, 08 Mar 2019 20:05:23 GMT</pubDate>
            <atom:updated>2019-03-08T20:05:23.776Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Image result for data science" src="https://cdn-images-1.medium.com/proxy/1*mgXvzNcwfpnBawI6XTkVRg.png" /></figure><p>Being a Data Scientist is not easy, and definitely not a cake walk, after all, people are calling it the sexiest job of the 21st century. There’s a lot involved in it as you can clearly see in the above graphic. Clearly you need to pick up a programming language if at all you want to get involved in this field. Some of the most popular choices are Python,R,SAS and a lot more out there.</p><p>Python is a very popular choice amongst new data scientists, thanks to its simplicity and elegance, and the number of packages available for all sorts of stuff related to Machine Learning. Python in itself is a very vast subject and there are really tons and tons of things you can learn about it. But the question that troubles most people who are just starting their Data Science journey is how much Python is necessary for me to get started with Data Science. Well, you came to the right place. In this article, I will tell you exactly how much of Python you need to know and also share with you resources I used to learn it. Hopefully, you can start your Data Science journey with just the Python you need in your arsenal and gradually pickup more as required.</p><p>So without further ado, let’s hop into it.</p><p>Below I will list some of the most important concepts I think you should have a good grasp on to get started with Data Science. I have a Jupyter notebook covering each one of these in detail in this repository here:</p><ol><li>Basic Keywords and Identifiers</li><li>Comments and Indentation</li><li>Variables and Data Types</li><li>Standard I/O</li><li>Operators</li><li>Control flow using If-else</li><li>Control flow using While loop</li><li>Control flow using for loop</li><li>Break and Continue statements</li><li>Lists</li><li>Tuples</li><li>Sets</li><li>Dictionaries</li><li>Strings</li><li>Basics of Functions</li><li>Recursive Functions</li><li>Lambda Functions</li><li>Modules</li><li>Packages</li><li>File Handling</li><li>Exception Handling</li><li>Debugging in Python(The very basics)</li></ol><p>Above concepts are extensively used in regular Data Science workflows if you are choosing Python as your programming language, which without a doubt you should be using(I might sound a bit biased here). The content these notebooks provide you in this <a href="https://github.com/rbhatia46/Python-for-Data-Science">repo</a> is in my opinion sufficient enough to learn just what you need to get started. Moreover, you will learn a lot more after starting your journey in Data Science. But this for sure will get you comfortable writing your own python scripts and reading other people’s code.</p><p>Also, I know I did not mention Object Oriented Programming using Python here. I don’t want you to get stuck in learning Python in great detail and not focusing on Data Science, it also depends on your prior experience with OOPS. This is a personal choice here. Of course, there are tons of nice tutorials available out there if you are interested in that. One such nice notebook to get started can be found <a href="https://github.com/jmportilla/Complete-Python-Bootcamp/blob/master/Object%20Oriented%20Programming.ipynb">here</a>.</p><p>So hopefully, it was a sweet and short post throwing some light on one of the most basic things that troubles a lot of beginners. Please leave a star on the <a href="https://github.com/rbhatia46/Python-for-Data-Science">repo</a> if it helps you and thanks for reading.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cf61aae3835f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The actual scene behind AI startups]]></title>
            <link>https://medium.datadriveninvestor.com/the-actual-scene-behind-ai-startups-65a783a8c935?source=rss-e22aafa7d95------2</link>
            <guid isPermaLink="false">https://medium.com/p/65a783a8c935</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Rahul Bhatia]]></dc:creator>
            <pubDate>Wed, 06 Feb 2019 19:03:21 GMT</pubDate>
            <atom:updated>2019-02-07T03:17:01.865Z</atom:updated>
            <content:encoded><![CDATA[<figure><a href="http://www.track.datadriveninvestor.com/1B9E"><img alt="" src="https://cdn-images-1.medium.com/max/700/0*6QiCIo_ci7uNC_fq" /></a></figure><figure><img alt="Image result for startup" src="https://cdn-images-1.medium.com/proxy/1*HL1yuUhRy15ydPMZR-rO0A.png" /></figure><p>Artificial Intelligence is picking up really high and everyone wants to make money out of it, no doubt the skyrocketing demands and the kind of magical power it brings along with its brilliance. With the variety of space it offers, most people learning AI today think of creating an AI startup, because of the high market potential and the revenue they think they can generate by creating an AI product. But is it really that easy? Is it over hyped in the market? What is actually involved in making of an AI startup? Well, in this article I will try and cover all of that, having an experience of building and marketing an AI product myself, which has given a new boost to my career and has motivated me to keep focusing on using AI to solve problems and learning more of it.</p><h3>Know the difference— Horizontal v/s Vertical AI Startups!</h3><p>In the AI startup field, you can broadly choose one of these 2 paths to begin your AI startup journey, either HAS(Horizontal AI Startup) or a VAS(Vertical AI Startup).</p><p>Basically,</p><ul><li>HAS follows research and academic driven approach, focus on solving one problem but targeting many industries. Usually, big tech giants such as Google, Apple, Amazon etc will try and create a Horizontal AI product, since it requires a strong technical team backing the product and it really does need a lot of resources, both human and financial resources to successfully build a Horizontal AI product.</li></ul><p><strong>Example — Siri</strong></p><ul><li>VAS on the other hand focus on solving problems for a very specific type of customer/industry. Big tech giants such as Google don’t have the time to tackle very specific problems, pertaining to a certain industry. They simply don’t find it worth as the market might not be that big for a very particular problem. These are generally not sustainable, but a lot valuable and can grow if worked on the right way. We see a lot of VASs emerging out, thanks to quick prototyping and available open source tools.</li></ul><p><strong>Example — Building a Cancer detection system</strong></p><p>The Startup market is so hot right now and there’s no better time to get your hands dirty and at least give it a shot to try and build your own company, leveraging the power of AI, because you don’t have much to lose here even if you fail.</p><h3>Rule #1 for building out a VAS:</h3><p>Often starting out and building an AI product might seem easy but it is not. You need to remember no matter how good your tech might be, if it can’t solve the problem it was intended to solve, it’s of no use and probably your customer doesn’t care about the magical stuff that’s powering your product.</p><p>You need to focus on solving the customer’s problem using AI, not on the AI itself. You need to understand the pain/problem that the customer is facing and provide a solution using AI for the same.</p><p>Ask these things to yourself before starting out —</p><ul><li>Is it even possible to do this?</li><li>Do I have the data for the problem? If no, how expensive would it be in terms of time/cost to collect the data?</li><li>Is your tech relevant or even needed in the first place?</li><li>Who is my customer I am targeting? Does there exist a market demand for my product?</li><li>Who are my competitors and how am I gonna be different from them?</li></ul><p>Probably there is a lot to consider when building a startup. It’s not easy and therefore, not many people are successful in the process.</p><h3>Why a VAS might be a good option for you?</h3><ul><li>You are very clear about your customer/industry and their needs, and therefore can solely focus on that.</li><li>The data you will work with will again be solely focused to a very particular domain,so it will be a less headache for you to focus on the actual product. Also, this way you can focus on obtaining better quality data, leading to a better model and therefore, a better product.</li><li>It affords a verticalized approach that big corporates likely won’t join in because in their eyes the space is too niche.</li><li>VAS startup moves quickly, they should build up a very good sustainable advantage and data moat that not produces a sustainable business, but a valuable one.</li><li>You don’t need a very strong technical team to make your own product, you can even do it alone(as I did!) and focus more on the marketing strategy/business plan.</li><li>Open source tools and quick prototyping will be your secret sauce here(fail faster, restart quicker!).</li></ul><p>All in all, I can say that going for a VAS will be really fun and at least giving it a shot is worth it, you won’t have much to lose in this space and will definitely grow your AI skills in the practice, in case you are already learning it. I hope this article was a bit useful to you and hopefully motivated you to try building an AI startup of your own, and who knows, maybe you can get a seed funding and build on from there(I know it’s not easy but still not impossible). If you liked it, make sure to hit the clap button as many times as you can. You can follow me on <a href="http://twitter.com/rbhatia46">Twitter</a>, I post about Web Dev, Mobile Dev and AI in general. Thanks for reading and till next time.</p><h4>Related Stories from DDI:</h4><ul><li><a href="https://medium.com/datadriveninvestor/which-is-more-promising-data-science-or-software-engineering-7e425e9ec4f4">Which is More Promising: Data Science or Software Engineering?</a></li><li><a href="https://medium.com/datadriveninvestor/deep-learning-explained-in-7-steps-9ae09471721a">Deep Learning Explained in 7 Steps</a></li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fupscri.be%2Fb2a0d6%3Fas_embed%3Dtrue&amp;dntp=1&amp;display_name=Upscribe&amp;url=https%3A%2F%2Fupscri.be%2Fb2a0d6%2F&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=upscri" width="800" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/0707f5c806284d01a4a13c7b13a91ce3/href">https://medium.com/media/0707f5c806284d01a4a13c7b13a91ce3/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=65a783a8c935" width="1" height="1" alt=""><hr><p><a href="https://medium.datadriveninvestor.com/the-actual-scene-behind-ai-startups-65a783a8c935">The actual scene behind AI startups</a> was originally published in <a href="https://medium.datadriveninvestor.com/">DataDrivenInvestor</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[When not to use Neural Networks]]></title>
            <link>https://medium.datadriveninvestor.com/when-not-to-use-neural-networks-89fb50622429?source=rss-e22aafa7d95------2</link>
            <guid isPermaLink="false">https://medium.com/p/89fb50622429</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[neural-networks]]></category>
            <dc:creator><![CDATA[Rahul Bhatia]]></dc:creator>
            <pubDate>Tue, 18 Dec 2018 19:41:54 GMT</pubDate>
            <atom:updated>2018-12-21T03:38:34.058Z</atom:updated>
            <content:encoded><![CDATA[<figure><a href="http://www.track.datadriveninvestor.com/1B9E"><img alt="" src="https://cdn-images-1.medium.com/max/700/0*k4zJaFKJvClUyfzQ" /></a></figure><figure><img alt="Image result for neural network" src="https://cdn-images-1.medium.com/proxy/1*DW0Ccmj1hZ0OvSXi7Kz5MQ.jpeg" /></figure><p>Okay folks, so we all know the deal that neural networks are great, they can be really cool and have given the state-of-the-art performance in the past few years at many tasks and have been quite promising for many of the tasks involved in Deep Learning, and are the main driving force behind Deep Learning.</p><p>But have you ever wondered why do they work so well most of the times and when you should avoid using them? As a good Data Scientists/Machine Learning Engineer, you should be well aware of the arsenal you possess and when you should use which weapon to ensure the maximum result.</p><p>So there are 3 main reasons behind so much hype built on Neural Networks in recent times — <strong>Data, Algorithms(thanks to Hinton’s backpropagation, used by almost every Neural Network)</strong>and <strong>Computational Power.</strong></p><p>The more data you feed a neural network, the better it gets with time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/694/0*VfCL5GeyDTFC69Lx.png" /></figure><p>The amount of Computational power doubles every 2 years, with so many companies producing much powerful hardware these days, it becomes a lot simpler to process so much data collected over the past few years. Nvidia is the market leader when it comes to GPUs and now Google has come into this space as well, releasing TPUs(specialized <a href="https://en.wikipedia.org/wiki/Application-specific_integrated_circuit">ASICs</a> for Deep Learning) in recent times, making it easier to train Deep Neural networks, requiring so much computational power.</p><p>Also, talking about the algorithms, <a href="https://en.wikipedia.org/wiki/Backpropagation">Backpropagation</a> has been the main driving force behind the awesomeness that these Neural Networks have given us and it is not a new thing and has been around since a long time, is famous recently only because of so much data and Computational power.</p><p>The main advantage of Neural Network lies in their ability to outperform nearly every traditional Machine Learning algorithms, but just like everything else, they too have their disadvantages.</p><p>You will most probably use a Neural network when you have so much data with you(and computational power of course), and <strong>accuracy matters the most to you</strong>.<strong> </strong>For Example, <strong>Cancer Detection</strong>. You cannot mess around with accuracy here if you want this to be used in actual medical applications.</p><p>So, let me start discussing the disadvantages of Neural Networks one by one :</p><h3>1. Hard to interpret most of the times</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/252/0*mElcfYg7I6aLGl0b.png" /></figure><p>Most of the times a neural network will give you good results if you are using it for the right problem, but if it doesn’t perform well, you will have a lot of trouble finding why it didn’t go as expected, especially a Deep Neural network(which will be the case most of the times). For example, if you were trying to predict the type of cancer and you expected the output to be <strong>Malignant, </strong>but instead you got <strong>Benign, </strong>it would be quite hard to figure out why the neural network gave such an input, instead a traditional ML algorithm such as a <strong>Decision Tree</strong>, will be much more easy to interpret.</p><p>Example: Banks generally will not use Neural Networks to predict whether a person is creditworthy because they need to explain to their customers why they denied them a loan.</p><p>Long story short, when you need to provide an explanation to why something happened, Neural networks might not be your best bet. You simply cannot take a decision just because <strong>y<em>our computer said so</em></strong>.</p><h3>2. They require too much data</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*QRJGE5lGOdI6Tqak.jpg" /><figcaption>I bet you saw this coming,didn’t you :P</figcaption></figure><p>Of course, you saw this coming! Neural Networks require much more data than traditional Machine Learning algorithms to do their job well. Most of the times you will find yourself struggling with a Neural Network if you have too little data or you don’t have much data, which you won’t have sometimes. For Example, a <strong>Naive Bayes </strong>would deal really well when you are having less data.</p><h3>3. They take time to be developed</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*2E6_o80NFPGIMgkc.jpg" /></figure><p>I know the deal folks, some of you might be thinking what am I talking about. I know it’s highly easy to prototype a Neural Network model in minutes using high-level APIs such as <strong>Keras, </strong>but that is not always the case(in fact it’s never the case working on a big project). Keras is really good for quick prototyping but has its own disadvantages. You will not find it a good contender when you need a lot of customizations and that’s where <strong>Tensorflow</strong> comes to your rescue, providing you with much better options to customize stuff as per your needs, so you really wanna consider thinking once again if building a customized neural network model(to suit the problem well) is worth the effort or you can get around with a traditional ML algorithm.</p><h3>4. They take a lot of time in the training phase</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*-goJf0IOgPKdMvYG.jpg" /><figcaption>I bet you have seen such memes xD</figcaption></figure><p>We all know that a neural network will take much longer to train rather than a traditional ML algorithm, and we don’t always have the computational power and even if we do, sometimes, we just don’t have the time to wait so long and to decide whether the end result will be worth the wait or not. Although it really depends on the architecture of your neural network(usually how deep it is) and the size of your data but still in most cases, it will take some serious time to train it.</p><p>Summing it up, you know that Neural networks can outperform almost every traditional ML algorithm out there, but yes, they come with their own cons as well so next time you need to solve an ML problem, choose your algorithm wisely and with a sense of ‘you know what you are doing’. Hopefully, this article helped you and increased your existing ML knowledge. If it did, I would appreciate if you could give this as many claps as you can, and you can follow me on <a href="https://medium.com/@rbhatia46">Medium </a>and <a href="https://twitter.com/rbhatia46">Twitter</a> to stay updated of everything I write about Machine Learning and Web Development. Thanks for reading, have a great Christmas and a great new year ahead!</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fupscri.be%2Fb2a0d6%3Fas_embed%3Dtrue&amp;dntp=1&amp;display_name=Upscribe&amp;url=https%3A%2F%2Fupscri.be%2Fb2a0d6%2F&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=upscri" width="800" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/0707f5c806284d01a4a13c7b13a91ce3/href">https://medium.com/media/0707f5c806284d01a4a13c7b13a91ce3/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=89fb50622429" width="1" height="1" alt=""><hr><p><a href="https://medium.datadriveninvestor.com/when-not-to-use-neural-networks-89fb50622429">When not to use Neural Networks</a> was originally published in <a href="https://medium.datadriveninvestor.com/">DataDrivenInvestor</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to increase traffic on your website using Google’s new weapon web.dev]]></title>
            <link>https://medium.com/@rbhatia46/how-to-increase-traffic-on-your-website-using-googles-new-weapon-web-dev-2021d3523044?source=rss-e22aafa7d95------2</link>
            <guid isPermaLink="false">https://medium.com/p/2021d3523044</guid>
            <category><![CDATA[web-design]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[google]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Rahul Bhatia]]></dc:creator>
            <pubDate>Thu, 06 Dec 2018 04:14:04 GMT</pubDate>
            <atom:updated>2018-12-06T04:17:51.804Z</atom:updated>
            <content:encoded><![CDATA[<h3>How to increase traffic on your website using Google’s web.dev</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*sJaazyz7WV4g4T8Q.jpg" /></figure><h3>Chrome Developers on Twitter</h3><p>🆕We just announced https://t.co/nDFBkP4gxa⚡️ It is a brand new site form the team behind this account✨Learn how to build for the web and measure if your site is meeting good practice goal❤️ It is open beta Today, so please give it a try &amp;amp; tell us what you think :) https://t.co/ZXZC9v1wvd</p><p>One of the key highlights of the Chrome Dev Summit 2018 was Google Chrome Developers team announcing <a href="https://web.dev/"><strong>web.dev</strong></a><strong> </strong>at the event. Web 2.0 has been for a very long time now and over the time we have seen a lot of enhancements and progress in it. Building a web app these days is a lot more than just putting up some markup, styling with some CSS and adding some JS as a cherry on the top of the cake. You need to ensure that you implement the best practices on your web app to drive maximum traffic and make the most out of your app to attract the audience you have always wanted. Having a good user experience is really essential and that’s bound to increase the amount of interest people show on your website.</p><p>Also, at the time of writing this post, not much is available about web.dev on the internet, apart from the official documentation and so I thought, let me elaborate a bit on this and the purpose of this post is to make sure you understand the need for such a tool, the amount of impact it can create and use it for your own benefit.</p><p>Enough of me talking. Let’s come to the point.</p><h3>What exactly is web.dev?</h3><p>According to the official <a href="https://web.dev/">web.dev</a> page,</p><blockquote>With actionable guidance and analysis, web.dev helps developers like you learn and apply the web’s modern capabilities to your own sites and apps.</blockquote><p>If you have an already existing website and want to test it for any improvements or just want to play around, you can test it <a href="https://web.dev/measure">here</a>.</p><p>So, as I said, it’s important to implement best practices in your website for an optimal user experience. And so, web.dev will help you get there. There are a lot of enhancements possible to make the best out of your app and this tool offers you to learn about them and also test which ones need to be improved/implemented on your website in the best way possible.</p><p>This is really helpful if you are building a new website/regularly build websites/have an existing website.</p><p>So, in this article, I will discuss the 6 Learning paths in brief that web.dev offers to you as a developer. So let’s get started.</p><h3>1. Fast Load Times</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/0*3nBbDC60ci3heyE7.png" /></figure><p>Any user on your site wouldn’t want to wait for a lifetime to get their desired content displayed to them. It’s essential that your website loads fast to keep up the user’s interest and this learning path ensures that you implement the best practices on your website to make it load as fast as possible. Performance plays a significant role in the success of any online venture, as high performing sites engage and retain users better than poorly performing ones. This module will teach you to</p><ul><li><strong>Measure your site’s performance</strong></li><li><strong>Optimize your images</strong></li><li><strong>Optimize your JavaScript</strong></li><li><strong>Optimize fonts</strong></li><li><strong>Measure Performance</strong></li><li><strong>Enforce Performance Budget</strong></li></ul><p>All of the above factors are really important for a fast web experience. You can learn about each one of these in detail <a href="https://web.dev/fast">here</a>.</p><h3>2. Network Resilience</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/0*7i0XlKudkhbDfxFZ.jpg" /></figure><p>Let’s suppose that your user has some connection problems for some time while they were accessing your website. You want them to experience consistent, reliable performance even when they are on a poor connection to keep them engaged.</p><p>This module will teach you how to provide a consistently reliable experience to all your users, wherever and however they access the internet. More specifically, you will learn</p><ul><li><strong>How to measure Network resilience</strong></li><li><strong>The options in your caching toolbox</strong></li><li><strong>How caching works</strong></li></ul><p>You can dive deeper into this one <a href="https://web.dev/reliable">here</a>.</p><h3>3. Safe and Secure</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*2I9xe2sc6Iwppqz7.jpg" /></figure><p>Security is one of the most important aspects of any application. You wanna make sure that your website/web app implements the best it can to stay away as much as possible from common vulnerabilities. SQL Injection, XSS Scripting, and a lot more, you name it. These attacks can destroy your website and ultimately destroy your business. It’s important to understand that every website can be attacked, irrespective of it containing crucial data or not. In this section you’ll learn simple techniques to keep your users, your content and your business secure. More specifically, you will</p><ul><li><strong>understand more about security</strong></li><li><strong>How browsers mitigate these attacks</strong></li></ul><p>You can learn more about this <a href="https://web.dev/secure">here</a>.</p><h3>4. Easily Discoverable</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*Y5UqMAMkZu_XB-lN.jpg" /></figure><p>There’s no point in making a website/business if it cannot reach the right people. Best SEO(Search Engine Optimization) ensures that your website ranks high in Search Engines and therefore, people can find it easily. SEO is quite a broad domain and there is so much you can do to rank higher in those search results but this module will tell you pretty much everything you can do to make sure you rank as high as possible. You need to understand <strong>how search works. </strong>This module will teach you</p><ul><li><strong>How searches work and how to measure discoverability</strong></li><li><strong>How to make sure Search Engines can understand your content</strong></li><li><strong>How to make sure search engines can crawl and index your content</strong></li><li><strong>How to make sure your website is mobile friendly</strong></li></ul><p>You can learn more <a href="https://web.dev/discoverable">here</a>.</p><h3>5. Installable</h3><figure><img alt="Image result for progressive web apps" src="https://cdn-images-1.medium.com/proxy/1*hWVmsnBY6Fr6OoNvIU5pmg.png" /></figure><p>Now, this is one of my favorites. Chances are you might have heard of these new buzz in the community called <strong>Progressive Web apps(PWAs). </strong>These are really the future of mobile web apps and are really gaining a lot of traction in the web dev community. You will find a lot of good articles on PWAs, so make sure you go through them because they will for sure interest you if you are into web development. Coming back to this, when your app follows the best practices, most mobile browsers will give you an option to install it as an app on your home screen. What I am talking about is something like this —</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ujjb9Gy96LXIDBmG9eaoZA.png" /></figure><p>This module will teach you <strong>how you can achieve the above and make your app installable on a device.</strong></p><p>You can learn more <a href="https://web.dev/installable">here</a>.</p><h3>6. Accessible</h3><p><strong>Web accessibility</strong> is a very broad topic and ensures that the web is accessible to all types of users, ensuring diversity in usage of web. All users should be able to access your content, whether anyone is suffering from a situational, temporary, or permanent impairment. There are a lot of things you can do to make sure your website is accessible to a diverse set of users. This module will teach you</p><ul><li><strong>The diverse need of users</strong></li><li><strong>How to make your site’s keyboard accessible</strong></li><li><strong>Semantics and basic reader support</strong></li></ul><p>You can learn more <a href="https://web.dev/accessible">here</a>.</p><p>All in all, the purpose of this post was to introduce you to the best web practices and to make you aware of this awesome available tool out there which you can use it monitor your progress and enhance your website, which might help you in personal/commercial ways.</p><p>Thanks for reading! Make sure to clap this as many times as you can so that it reaches other people as well. I tweet and write about Web Development and Machine Learning, you can give me a follow on <a href="https://twitter.com/rbhatia46">Twitter </a>to stay updated. Till next time, cheers!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2021d3523044" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Top 4 technologies that will generate more employment in 2019]]></title>
            <link>https://medium.datadriveninvestor.com/top-4-technologies-that-will-generate-more-employment-in-2019-91ca97f8a79a?source=rss-e22aafa7d95------2</link>
            <guid isPermaLink="false">https://medium.com/p/91ca97f8a79a</guid>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[trends]]></category>
            <category><![CDATA[techno]]></category>
            <dc:creator><![CDATA[Rahul Bhatia]]></dc:creator>
            <pubDate>Tue, 06 Nov 2018 08:23:11 GMT</pubDate>
            <atom:updated>2018-11-06T08:23:11.030Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*V5zqs_HAvy5LjhZN.jpg" /></figure><p>Hi everyone! 2018 has almost come to an end and it has been a fantastic year for me. Hope it has been an awesome year for you as well. Expanding my tech domain from being a Web Developer to now learning more about Artificial Intelligence and Blockchain, I have seen a tremendous growth and demand in some of the groundbreaking technologies around the year.</p><p>So, if you are someone who is just <strong>starting out their programming journey</strong> or <strong>looking to make a transition, </strong>I believe you landed in the right place. So, in this article, I will discuss the top 4 technologies, in my opinion, that is going to create a lot of employment in 2019 and the process has already begun if you take a look at the statistics and the interest these are gaining from the community. If you are someone who wants to have a tech startup or are looking for jobs, I guess these 4 technologies are surely what you must look for. So without further ado, let’s get started.</p><h3>1. Artificial Intelligence</h3><figure><img alt="Image result for Artificial intelligence" src="https://cdn-images-1.medium.com/proxy/1*rchGC6ySU1CEezcLEMJkzg.jpeg" /></figure><p>If you are a keen software developer(or at least plan of being one), AI development is something you should keep an eye on. AI has found itself in almost all the industries, the primary reason being <strong>data. “If there’s no data, there’s no business.” </strong>Most organizations these days have collected a lot of data over the past years, and they can use it to draw useful predictions/insights that help them upscale their existing business, and no doubt the demand for <strong>Data Scientists </strong>are increasing by the day. So, if you are someone who is just getting started, or wants to make a transition, don’t think too much and dive straight into it, there’s so much to learn and AI in itself is a very broad domain with so much to cover.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/0*aH7DaBe9_YbY-308" /></figure><p>Also, you might consider learning AI because who knows it might be a threat to your own job, thanks to the amazing automation capabilities AI algorithms have brought to us and for sure, where there’s automation, definitely the human jobs are at risk because Machines are smarter and can do stuff more quickly with higher precision, but they are dumb as well and cannot be used everywhere. Just dive in this amazing technology and you will know what I am talking.</p><p><a href="https://www.deeplearning.ai/">https://www.deeplearning.ai/</a> is a great place, to begin with.</p><h3><strong>2. Blockchain</strong></h3><p>Organizations in every industry have started building blockchain-based <strong>decentralized applications </strong>already and no doubt, this will increase more in the upcoming time, and so the demand for blockchain developers in gonna be high as a result.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*KtDzkEW1kuu83ZdK.jpeg" /></figure><p><strong>Web 3.0</strong> is on the rise and if you are a startup worrying about the big tech giants such as <strong>Google, Facebook etc. </strong>and think that you cannot compete in this tech race, it&#39;s probably your best bet. Decentralization is the way to go and no doubt, it’s gaining huge interest from the community of developers. You might have already heard about Cryptocurrencies such as <strong>Bitcoin, Ethereum, Monero and a lot more. </strong>Building decentralized apps is going to be a skill in so demand and no doubt, the sooner you learn it, the better it is for you.</p><p>So if you want to learn more about this, learning more about the <strong>Basics of a Blockchain </strong>and <strong>Ethereum </strong>would be a great place to start. You will find plenty of resources online and this is comparatively a new technology with so much to learn, so better get started with it as soon as you can. Definitely a game changer in the upcoming times.</p><h3>3. Progressive Web Apps(PWAs)</h3><figure><img alt="Image result for progressive web apps" src="https://cdn-images-1.medium.com/proxy/1*hWVmsnBY6Fr6OoNvIU5pmg.png" /></figure><p>If you are a Web Developer, there is currently a lot of hype in the community<strong>, </strong>about this thing so-called <strong>Progressive Web Apps. </strong>The demand is already growing at a very quick rate. Google thinks that PWAs are the future of Web apps and they have been working quite a lot on it. o the next question coming to your heads would be what exactly is a PWA? Well, in very simple terms, a PWA is simply <strong>an ongoing solution to the pain points of the mobile web</strong>. Focus on the term <strong>ongoing </strong>as they are still in the development phase and there is a lot to be explored still. Basically, the core working of the PWAs is based on the concept of <strong>Service Workers.</strong></p><p>Basically, a service worker acts like a proxy between the client and the server and intercepts the network requests when they are going through the network and when we get the response back and runs in the background.</p><figure><img alt="Image result for service worker" src="https://cdn-images-1.medium.com/proxy/1*MVt_NSEfvmXQRdxRyO8C4Q.png" /></figure><p>You might have heard of Native apps and Hybrid apps, but PWAs are really causing a lot of buzz in the web development community lately and these are also relatively new, and no doubt looking at the current trend, the demand for you is gonna be sky-high if you can learn the fundamentals of PWAs. There’s probably a lot more to learn about PWAs. <a href="https://developers.google.com/web/progressive-web-apps/"><strong>This </strong></a>is a really good place to start.</p><p>Of course, there is a trade-off between <strong>Native Apps</strong> and <strong>PWAs, </strong>this might help you distinguish.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*k7DWj7Rc_atriZyh.png" /></figure><p>There is a lot more for you to discover in this space, so start soon and master it quickly to be in demand, because this is relatively new in the dev community.</p><h3>4. Cyber Security</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/796/0*FOcwy1Lj3-ueYJZE.jpg" /></figure><p>To be very honest, I don’t have much experience working in this field, but definitely, it is one of the hottest topics currently and will always be. Come on you don’t want any bad guys to ruin your million dollar business and wherever there’s tech, there are loopholes for sure and the need for Cyber Security rises without giving it a second thought. Doesn’t matter how much money your business is making, it’s all about 1 attack on your whole architecture and you know everything’s finished. Learning this is not that easy and yes, it’s hard to start in this space but once you get along, this can be pretty interesting and there’s a lot of demand as well. Also, one must use these for good purposes only because the laws are really strict regarding Cyber crimes in most countries, especially the US.</p><p>Businesses of all sizes are concerned about cybersecurity and they are increasingly looking towards hiring more Cybersecurity engineers to make sure they don’t get compromised.</p><p>So, I guess this was pretty much it from my side for this article. Hope you liked it and it helped you choose between so many options. You can <a href="https://twitter.com/rbhatia46">follow me on Twitter</a> to stay updated on my posts because I write tech blogs quite often and share them on Twitter. Wish you a great upcoming year. Thanks for reading!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=91ca97f8a79a" width="1" height="1" alt=""><hr><p><a href="https://medium.datadriveninvestor.com/top-4-technologies-that-will-generate-more-employment-in-2019-91ca97f8a79a">Top 4 technologies that will generate more employment in 2019</a> was originally published in <a href="https://medium.datadriveninvestor.com/">DataDrivenInvestor</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is Kubernetes and why you should bother about it?]]></title>
            <link>https://medium.com/@rbhatia46/what-is-kubernetes-and-why-you-should-bother-about-it-4e8593f3a1ec?source=rss-e22aafa7d95------2</link>
            <guid isPermaLink="false">https://medium.com/p/4e8593f3a1ec</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[docker]]></category>
            <dc:creator><![CDATA[Rahul Bhatia]]></dc:creator>
            <pubDate>Sun, 21 Oct 2018 13:51:50 GMT</pubDate>
            <atom:updated>2018-10-21T13:51:50.721Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Image result for kubernetes full hd" src="https://cdn-images-1.medium.com/proxy/1*2fbCZovS7I1gye1PREqkVQ.png" /></figure><p>Being a software developer, I assume most of you have at least heard of Kubernetes if not used it. You probably ended up performing a Google search and found yourself in the middle of nowhere in the vast heap of information. So I guess you ended up in the right place. In this short article, my aim is to introduce you to Kubernetes and tell you why is it important to use it. If that sounds interesting, let’s get started.</p><p>Chances are if you are here, you might have heard about <strong>Docker</strong>. If not, don’t worry I got you covered. Docker is a computer program written in Go(just another programming language), used to create, deploy and run applications in packages called ‘containers’.</p><p>Well, wait, now what the heck is a <strong>container</strong>?</p><p>According to the official Docker page,</p><blockquote>A container is a standard unit of software that packages up code and all its dependencies so the application runs quickly and reliably from one computing environment to another.</blockquote><p>Basically, a container packages your application and isolates it from everything else. A container is fast, reliable, light-weight and <strong>scalable</strong>. Pay attention to the term ‘scalable’. So consider an example where I want to scale my application to have more than 1 containers. Let’s say 3 or 4, or 10 containers. This will require some manual work and pretty much doable, but now let’s say I need to scale my application to 100 containers. Now that’s no piece of cake. Why?</p><p>Let’s say you scaled up to 100 containers. Now you need to make sure that the containers are well inter-connected for the application to be able to function properly. The point here is that it’s not tough to scale up the containers, the main issue is for them to be able to be interconnected and talk with each other once we scale up. Also, you need to make sure that all the containers are deployed at the right place.</p><p>Another problem Kuberenetes solves is the problem of <strong>Auto Scaling.</strong> Let’s say you have a website that has a lot of traffic on some particular days and has a low traffic on the other days. Now, you have some servers and let’s say on the days where the traffic is really huge, your servers cannot handle it and your site crashes. Would you be buying more servers occasionally to fix this issue? <strong>Of course not! </strong>Kuberenetes comes to your rescue to help you auto-scale, whenever you need to.</p><p>Enough of it, let’s talk about what <strong>Kubernetes is.</strong></p><blockquote><strong>Kubernetes</strong> is an open-source container management tool which automates container deployment, container scaling(and descaling), and conatiner load balancing.</blockquote><p>I hope every single point in the above definition is made clear in the above paragraphs.</p><p>A bit of the history, <strong>Kubernetes </strong>was developed by Google as an open source project and later donated to CNCF(Cloud Native Computing Foundation).</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*dBYlyYsz0NsWHvh1lpUbzw.png" /><figcaption>It groups ’n’ containers into one logical unit for easy management and deployment.</figcaption></figure><p>A solution which automatically decides when to scale-up and when to scale-down as per the traffic. Isn’t that really awesome!</p><p>Before we come to the end of this post, let’s talk about one last thing that you can gain from this article. <strong>Self-healing.</strong></p><p>Whenever Kubernetes realizes that one of your containers has failed, then it automatically restarts the container on its own and it creates a new container instead of this crashed one. And what happens if the <strong>Node</strong>(don’t confuse with Node.js, I am talking about the diagram above)<strong> </strong>itself fails, then it will restart all the containers running in that failed Node in another Node(of course, you need another Node).</p><p>So I guess this kinda gave you a brief insight into what Kubernetes is and what’s the need of it and you won’t be all blank next time when someone says Kubernetes! I would appreciate if you can clap on this if it helped you and follow me to stay updated on more technical content. Thanks for reading!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4e8593f3a1ec" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>