<?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 Chetan Yeola on Medium]]></title>
        <description><![CDATA[Stories by Chetan Yeola on Medium]]></description>
        <link>https://medium.com/@yeola41?source=rss-9eaccc617264------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*y7PPzYsQbObpSwIf</url>
            <title>Stories by Chetan Yeola on Medium</title>
            <link>https://medium.com/@yeola41?source=rss-9eaccc617264------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 16:52:54 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@yeola41/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[Mastering the Art of Productivity with “Deep Work”]]></title>
            <link>https://medium.com/@yeola41/mastering-the-art-of-productivity-with-deep-work-32aedd9b8b2d?source=rss-9eaccc617264------2</link>
            <guid isPermaLink="false">https://medium.com/p/32aedd9b8b2d</guid>
            <dc:creator><![CDATA[Chetan Yeola]]></dc:creator>
            <pubDate>Fri, 13 Oct 2023 07:09:17 GMT</pubDate>
            <atom:updated>2023-10-13T07:09:17.348Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/604/0*CQyNB1mjlomc9lxD" /></figure><p>In our fast-paced, digitally driven world, the ability to focus and produce high-quality work is becoming increasingly rare. The constant barrage of emails, social media notifications, and other distractions can make it challenging to achieve true productivity. However, Cal Newport’s book, “Deep Work: Rules for Focused Success in a Distracted World,” offers a compelling solution to this modern problem. In this blog post, we’ll delve into the key insights from “Deep Work” and explore how it can help you reclaim your productivity and achieve more meaningful results.</p><h3>The Concept of Deep Work</h3><p>“Deep Work” introduces the concept of deep work, which Newport defines as the ability to concentrate without distraction on a cognitively demanding task. This type of focused work is characterized by a state of flow where you’re fully immersed in your work, enabling you to produce high-quality output in less time.</p><p>Newport argues that deep work is increasingly rare but highly valuable in today’s knowledge economy. Many people spend their workdays in a state of constant busyness, responding to emails, attending meetings, and handling low-value tasks. As a result, they often fail to dedicate sufficient time to the deep work required to make significant progress in their careers.</p><h3>The Four Rules of Deep Work</h3><p>Cal Newport presents four rules in “Deep Work” to help individuals integrate deep work into their daily routines effectively:</p><ol><li><strong>Work Deeply:</strong> This rule emphasizes the importance of scheduling blocks of time for deep work. Newport suggests creating a detailed plan that specifies when and where you will engage in deep work and how long each session will last. By structuring your day in this way, you can make deep work a regular part of your routine.</li><li><strong>Embrace Boredom:</strong> Newport argues that the ability to resist the urge to constantly check emails or social media is crucial for deep work. By learning to tolerate boredom and resisting distractions, you can train your brain to focus deeply on your tasks.</li><li><strong>Quit Social Media (or At Least Use It Intentionally):</strong> Newport challenges the common assumption that being active on social media is essential for professional success. He advocates for a more deliberate approach, where you use social media and other online tools only when they genuinely contribute to your goals. This approach minimizes shallow work and maximizes the time available for deep work.</li><li><strong>Drain the Shallows:</strong> The final rule encourages individuals to minimize shallow work — the tasks that are non-cognitively demanding, logistical, and often performed while distracted. By eliminating or delegating shallow work, you can free up more time for deep work.</li></ol><h3>The Benefits of Deep Work</h3><p>“Deep Work” highlights several benefits that come from incorporating deep work into your life:</p><ol><li><strong>Increased Productivity:</strong> Deep work allows you to accomplish more in less time by focusing on high-impact tasks.</li><li><strong>Improved Creativity:</strong> Deep work fosters creativity and innovation by giving your mind the space to generate new ideas and insights.</li><li><strong>Enhanced Learning:</strong> Engaging in deep work can accelerate your learning and skill development.</li><li><strong>Greater Job Satisfaction:</strong> When you consistently produce meaningful, high-quality work, you’ll likely experience greater job satisfaction and fulfillment.</li><li><strong>Competitive Advantage:</strong> In an era where shallow work is the norm, those who can consistently perform deep work have a competitive advantage in their careers.</li></ol><h3>Practical Applications</h3><p>To incorporate deep work into your life, consider the following practical strategies:</p><ol><li><strong>Time Blocking:</strong> Set aside specific blocks of time for deep work on your calendar. During these periods, eliminate distractions and fully engage with your tasks.</li><li><strong>Create a Distraction-Free Environment:</strong> Find a quiet, dedicated workspace where you can focus without interruptions.</li><li><strong>Prioritize Your Tasks:</strong> Identify the most important tasks that require deep work and tackle them first when your energy and focus are at their peak.</li><li><strong>Set Boundaries:</strong> Communicate your need for uninterrupted work time to colleagues, friends, and family to minimize interruptions.</li><li><strong>Practice Deliberate Use of Technology:</strong> Use digital tools intentionally and avoid mindless scrolling on social media or endless email checking.</li></ol><h3>Conclusion</h3><p>“Deep Work” by Cal Newport is a powerful book that offers a practical and actionable approach to overcoming the distractions of the modern world and achieving true productivity. By implementing the four rules of deep work and adopting strategies to minimize shallow work, you can unlock your full potential, enhance your professional success, and lead a more fulfilling life. So, take the first step towards mastering the art of deep work and experience the transformative impact it can have on your personal and professional life.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=32aedd9b8b2d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Troubleshooting Skills: A Comprehensive Guide]]></title>
            <link>https://medium.com/@yeola41/troubleshooting-skills-a-comprehensive-guide-2bdde429fd18?source=rss-9eaccc617264------2</link>
            <guid isPermaLink="false">https://medium.com/p/2bdde429fd18</guid>
            <dc:creator><![CDATA[Chetan Yeola]]></dc:creator>
            <pubDate>Fri, 06 Oct 2023 04:43:47 GMT</pubDate>
            <atom:updated>2023-10-06T04:43:47.204Z</atom:updated>
            <content:encoded><![CDATA[<p>Master the art of troubleshooting with these practical tips and techniques.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*E6VjSDTG1OU5ZClq.jpg" /></figure><p>Troubleshooting is a valuable skill that can be applied in various aspects of life. Whether you’re dealing with technical issues, interpersonal conflicts, or professional challenges, the ability to identify and resolve problems is a crucial asset. In this comprehensive guide, we’ll explore the art of troubleshooting and provide you with practical techniques to become a proficient troubleshooter.</p><h3>The Problem-Solving Mindset</h3><h4>Effective troubleshooting begins with the right mindset:</h4><ol><li><strong>Curiosity:</strong> Be curious and ask questions. Don’t accept surface-level answers; dig deeper to uncover the real issues.</li><li><strong>Patience:</strong> Troubleshooting often requires time and persistence. Be patient and systematic in your approach.</li><li><strong>Persistence:</strong> Don’t give up easily. Keep trying different solutions until you find one that works.</li></ol><h3>General Troubleshooting Techniques</h3><h4>The 5-Whys Technique</h4><p>The 5-Whys technique is a simple but powerful tool for identifying root causes:</p><ol><li>Start with a problem (e.g., “The printer isn’t working”).</li><li>Ask “Why?” five times to trace the issue back to its source (e.g., “Why isn’t the printer working? The paper is jammed. Why is the paper jammed?”).</li></ol><h4>Divide and Conquer</h4><p>When faced with a complex problem, break it down into smaller, more manageable parts. This approach makes it easier to pinpoint the root cause of the issue and find solutions.</p><h4>Documentation and Note-Taking</h4><p>Keep detailed records of your troubleshooting process. Document the steps you’ve taken, the outcomes, and any relevant information. This documentation can be invaluable when revisiting a problem or sharing your findings with others.</p><h3>Technical Troubleshooting Skills</h3><h4>Troubleshooting Hardware Issues</h4><p>Whether it’s a malfunctioning computer or a faulty appliance, these steps can help you troubleshoot hardware problems:</p><ol><li>Check for loose connections and cables.</li><li>Consult user manuals or online resources for troubleshooting guides.</li><li>Test components individually to identify the faulty part.</li><li>Seek professional assistance if needed.</li></ol><h4>Troubleshooting Software Problems</h4><p>Software issues can be frustrating, but a systematic approach can help:</p><ol><li>Restart the software or device.</li><li>Check for software updates and install them.</li><li>Look for error messages or logs that provide clues.</li><li>Consider uninstalling and reinstalling the software as a last resort.</li></ol><h3>Interpersonal Troubleshooting Skills</h3><h4>Conflict Resolution</h4><p>In personal and professional relationships, conflicts are inevitable. Effective conflict resolution involves:</p><ol><li>Active listening: Pay close attention to the other person’s perspective.</li><li>Empathy: Try to understand the other person’s feelings and point of view.</li><li>Finding common ground: Seek solutions that address both parties’ needs.</li></ol><h4>Effective Communication</h4><p>Clear and constructive communication is essential when troubleshooting interpersonal issues:</p><ol><li>Use “I” statements to express your feelings and concerns.</li><li>Avoid blaming or accusing.</li><li>Encourage open and honest dialogue.</li></ol><h3>Troubleshooting in the Workplace</h3><h4>Problem-Solving in the Professional Setting</h4><p>In the workplace, troubleshooting skills are valuable for:</p><ol><li>Addressing technical issues that affect productivity.</li><li>Resolving conflicts among team members.</li><li>Developing innovative solutions to business challenges.</li></ol><h4>Team Troubleshooting</h4><p>Teams can benefit from collaborative troubleshooting:</p><ol><li>Brainstorming: Encourage team members to contribute ideas and solutions.</li><li>Divide tasks: Allocate responsibilities among team members based on their strengths.</li><li>Regular updates: Keep the team informed of progress and challenges.</li></ol><h3>Troubleshooting Challenges and Pitfalls</h3><h4>Common Mistakes</h4><p>Avoid these common troubleshooting mistakes:</p><ol><li>Making assumptions without gathering enough information.</li><li>Ignoring documentation or failing to take notes.</li><li>Giving up too easily without exploring all possible solutions.</li></ol><h4>Dealing with Frustration</h4><p>Troubleshooting can be frustrating, but you can manage it:</p><ol><li>Take breaks: Step away from the problem for a while to clear your mind.</li><li>Seek help: Don’t hesitate to ask for assistance or advice from others.</li><li>Maintain a positive attitude: Focus on the satisfaction of finding a solution.</li></ol><h3>Conclusion</h3><p>Troubleshooting skills are invaluable in today’s complex world. Whether you’re fixing a technical glitch, resolving a conflict, or addressing a workplace challenge, the ability to troubleshoot effectively can make a significant difference. Embrace the problem-solving mindset, use the techniques discussed in this guide, and practice troubleshooting regularly to sharpen your skills. With time and experience, you’ll become a master troubleshooter capable of tackling any problem that comes your way.</p><p>So, what troubleshooting challenge will you tackle next? Share your success stories and continue learning from each experience. Happy troubleshooting!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2bdde429fd18" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Alan Turing (Inventor of Artificial Intelligence)]]></title>
            <link>https://medium.com/@yeola41/alam-turing-inventor-of-artificial-intelligence-5b0247b22384?source=rss-9eaccc617264------2</link>
            <guid isPermaLink="false">https://medium.com/p/5b0247b22384</guid>
            <dc:creator><![CDATA[Chetan Yeola]]></dc:creator>
            <pubDate>Wed, 02 Nov 2022 11:04:13 GMT</pubDate>
            <atom:updated>2023-10-02T08:43:57.030Z</atom:updated>
            <content:encoded><![CDATA[<p>Computer Science, Deep Learning, Artificial intelligence</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/183/1*hYlL4gOfGsmmljMNyYf3Ug.jpeg" /><figcaption>ImageSource: Wikipedia.org</figcaption></figure><p>In 1936, Turing published a paper that showed that computers could be made to simulate any process that a human could perform. This paper was the first step in the development of artificial intelligence. Turing was instrumental in the development of computer science and artificial intelligence, and his work has had a lasting impact on modern society. He was the first computer scientist to break the barrier between human and machine intelligence. He was an English mathematician, logician, and computer scientist who is widely considered one of the founders of computer science and artificial intelligence. His groundbreaking work in the field of computer science led to the development of the modern computer and laid the foundation for modern-day internet usage. His work paved the way for the evolution of artificial intelligence and the birth of the modern computer industry. Turing was born in London on June 12, 1911, to a British mother and a German father. Turing was educated at the University of Cambridge. He was one of the first students to take up the newly developed subject of computer science at the University of Cambridge, and his interest in the subject flourished under the guidance of Professor John von Neumann.</p><p>Turing made significant contributions to the field of artificial intelligence and was one of the founders of the modern computer industry. One of his most famous achievements was his development of the Turing machine, a theoretical model of a computer that can be in multiple states at the same time. He also developed the theory of computability, which provided a basis for the work of fellow mathematician John von Neumann on the Universal Turing Machine. Turing was also a renowned logician and wrote several papers on mathematical logic.</p><p>The Association for Computing Machinery (ACM) has created the Turing Award in recognition of Alan Turing’s work in computer science. The Turing award is given annually to the person who has made the most significant contributions to computer science and information technology during the preceding calendar year. The award ceremony is held each year during the ACM International Symposium on Computer Architecture (ISCA) in San Francisco. The award is in honor of Alan Turing.</p><h3>The people who have won the Turing Award are listed below:</h3><ol><li>Perlis, Alan J.(1966) - compiler for the ALGOL programming language</li><li>Wilkes, Maurice V.(1967) - EDSAC, the first stored-program computer</li><li>Hamming, Richard W.(1968) - Hamming codes for error detection and error correction</li><li>Minsky, Marvin L.(1969) - artificial intelligence</li><li>Wilkinson, James H.(1970) - numerical analysis on supercomputers</li><li>McCarthy, John(1971) - artificial intelligence</li><li>Dijkstra, Edsger W.(1972) - programming languages, including ALGOL</li><li>Bachman, Charles W.(1973) - database technology</li><li>Knuth, Donald E.(1974) - computer algorithms and programming languages</li><li>Newell, Allen(1975) - artificial intelligence</li><li>Simon, Herbert A.(1975) - artificial intelligence</li><li>Rabin, Michael O.(1976) - non deterministic machines</li><li>Scott, Dana S.(1976) - non deterministic machines</li><li>Backus, John(1977) - programming languages, including FORTRAN</li><li>Floyd, Robert W.(1978) - programming languages, including automatic program verification</li><li>Iverson, Kenneth E.(1979) - programming languages, including APL</li><li>Hoare, C. Antony R.(1980) - programming languages</li><li>Codd, Edgar F.(1981) - programming languages</li><li>Cook, Stephen A.(1982) - theory of NP-complete problems</li><li>Ritchie, Dennis M.(1983) - operating systems, including UNIX</li><li>Thompson, Kenneth L.(1983) - operating systems, including UNIX</li><li>Wirth, Niklaus E.(1984) - programming languages, including PASCAL</li><li>Karp, Richard M.(1985) - theory of algorithms and study of NP-complete problems</li><li>Hopcroft, John E.(1986) - algorithms and data structures</li><li>Tarjan, Robert E.(1986) - algorithms and data structures</li><li>Cocke, John(1987) - compilers and microprocessors</li><li>Sutherland, Ivan(1988) - computer graphics</li><li>Kahan, William(1989) - numerical analysis</li><li>Corbato, Fernando J.(1990) - time-sharing systems, including CTSS and Multics</li><li>Milner, A.J.(1991) - Robin machine-assisted proof construction</li><li>Lampson, Butler W.(1992) - distributed computing</li><li>Hartmanis, Juris (1993) - computational complexity theory</li><li>Stearns, Richard E.(1993) - computational complexity theory</li><li>Feigenbaum, Edward(1994) - artificial intelligence</li><li>Reddy, Raj(1994) - artificial intelligence</li><li>Blum, Manuel(1995) - computational complexity theory</li><li>Pnueli, Amir(1996) - temporal logic in computing</li><li>Engelbart, Douglas(1997) - computer mouse, and multiple windows</li><li>Gray, Jim(1998) - databases and transaction processing</li><li>Brooks, Frederick P.(1999) - computer architecture, operating systems, and software engineering</li><li>Yao, Andrew(2000) - theory of computations</li><li>Dahl, Ole-Johan(2001) - object-oriented programming languages</li><li>Nygaard, Kristen(2001) - object-oriented programming languages</li><li>Adleman, Leonard M.(2002) - public-key cryptography</li><li>Rivest, Ronald L.(2002) - public-key cryptography</li><li>Shamir, Adi(2002) - public-key cryptography</li><li>Kay, Alan(2003) - object-oriented programming languages, including Smalltalk</li><li>Cerf, Vinton(2004) - Transmission Control Protocol and Internet Protocol (TCP/IP)</li><li>Kahn, Robert E.(2004) - Transmission Control Protocol and Internet Protocol (TCP/IP)</li><li>Naur, Peter(2005) - programming languages, including ALGOL 60</li><li>Allen, Frances E.(2006) - compiler optimization and automatic parallel execution</li><li>Clarke, Edmund M.(2007) - model checking software</li><li>Emerson, E.(2007) - Allen model checking software</li><li>Sifakis, Joseph(2007) - model checking software</li><li>Liskov, Barbara J.H.(2008) - programming languages and system design</li><li>Thacker, Charles P.(2009) - Alto, the first personal computer</li><li>Valiant, Leslie(2010) - computational learning theory</li><li>Pearl, Judea(2011) - artificial intelligence</li><li>Goldwasser, Shafi(2012) - cryptography</li><li>Micali, Silvio(2012) - computational complexity</li><li>Lamport, Leslie(2013) - analysis of algorithms and proof construction</li><li>Stonebraker, Michael(2014) - databases</li><li>Diffie, Whitfield(2015) - cryptography</li><li>Hellman, Martin(2015) - cryptography</li><li>Berners-Lee, Tim(2016) - HyperText Transfer Protocol (HTTP), Hypertext Markup Language (HTML), and the World Wide Web</li><li>Hennessy, John L.(2017) - computer architecture</li><li>Patterson, David(2017) - computer architecture</li><li>Bengio, Yoshua(2018) - artificial intelligence</li><li>Hinton, Geoffrey(2018) - artificial intelligence</li><li>LeCun, Yann(2018) - artificial intelligence</li><li>Catmull, Edwin E.(2019) - 3D computer graphics</li><li>Hanrahan, Patrick M.(2019) - 3D computer graphics</li><li>Aho, Alfred(2020) - algorithms and theory underlying programming language implementation</li><li>Ullman, Jeffrey(2020) - algorithms and theory underlying programming language implementation</li><li>Dongarra, Jack(2021) - algorithms and software</li></ol><h3>Final Thoughts</h3><p>I hope you enjoyed this article. I will publish more articles about Deep Learning-related topics in the future. I also write about topics in the field of Data Science.</p><p>Isn’t collaboration great? I’m always happy to answer questions or discuss ideas proposed in my articles. So don’t hesitate to reach out to me! 🙌 Also, make sure to <a href="https://medium.com/@yeola41"><strong>subscrib</strong>e</a> or follow to not miss out on new articles.</p><p>Follow me on <a href="https://www.linkedin.com/in/chetan-yeola-498344ab/"><strong>Linkedin</strong></a><strong> </strong>and <a href="https://github.com/Chetan-Yeola"><strong>GitHub</strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5b0247b22384" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Book Recommender System Using Machine Learning]]></title>
            <link>https://medium.com/@yeola41/book-recommender-system-using-machine-learning-a1c36c683cf0?source=rss-9eaccc617264------2</link>
            <guid isPermaLink="false">https://medium.com/p/a1c36c683cf0</guid>
            <category><![CDATA[ml-so-good]]></category>
            <dc:creator><![CDATA[Chetan Yeola]]></dc:creator>
            <pubDate>Fri, 14 Oct 2022 11:33:57 GMT</pubDate>
            <atom:updated>2022-10-17T20:38:24.737Z</atom:updated>
            <content:encoded><![CDATA[<p>Machine Learning, Recommendation systems, Artificial intelligence</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZRN9VuYmI_G_pFJrde9AHg.jpeg" /><figcaption>Image By Author</figcaption></figure><p>Recommendation systems are becoming increasingly important in today’s extremely busy world. People are always short on time with the myriad tasks they need to accomplish in the limited 24 hours. Therefore, recommendation systems are essential as they help them make the right choices, without having to expend their cognitive resources.</p><p>The purpose of a recommendation system is basically to search for content that would be interesting to an individual. Moreover, it involves a number of factors to create personalized lists of useful and interesting content specific to each user/individual. Recommendation systems are Artificial Intelligence-based algorithms that skim through all possible options and create a customized list of items that are interesting and relevant to an individual. These results are based on their profile, search/browsing history, what other people with similar traits/demographics are watching, and how likely are to watch those movies. This is achieved through predictive modeling and heuristics with the data available.</p><h3>Types of Recommendation Systems:</h3><h4>1 ) Content Based :</h4><ul><li>Content-based systems, which use characteristic information and take item attributes into consideration.</li><li>Twitter, Youtube.</li><li>Which music you are listening to, and what singer are you watching Form embeddings for the features.</li><li>User-specific actions or similar items recommendation.</li><li>It will create a vector of it.</li><li>These systems make recommendations using a user’s item and profile features. They hypothesize that if a user was interested in an item in the past, they will once again be interested in it in the future</li><li>One issue that arises is making obvious recommendations because of excessive specialization (user A is only interested in categories B, C, and D, and the system is not able to recommend items outside those categories, even though they could be interesting to them).</li></ul><h4>2 ) Collaborative Based :</h4><ul><li>Collaborative filtering systems, which are based on user-item interactions.</li><li>Clusters of users with the same ratings, similar users.</li><li>A book recommendation, so use cluster mechanism.</li><li>We take only one parameter, ratings or comments.</li><li>In short, collaborative filtering systems are based on the assumption that if a user likes item A and another user likes the same item A as well as another item, item B, the first user could also be interested in the second item.</li><li>Issues are- 1. User-Item nXn matrix, so computationally expensive. 2. Only famous items will get recommended. 3. New items might not get recommended at all.</li></ul><h3>3 ) Hybrid Based :</h3><ul><li>Hybrid systems, which combine both types of information with the aim of avoiding problems that are generated when working with just one kind.</li><li>Combination of both and used nowadays.</li><li>Uses word2vec, embedding.</li></ul><h3>About this project:</h3><p>This is a streamlit web application that can recommend various kinds of similar books based on a user&#39;s interest. here is a demo,</p><p><a href="https://books-recomendation-system.herokuapp.com/">click here to run it live on a server</a></p><h3>Demo:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sE14U2KjoLTbFcHA0E7KaQ.png" /><figcaption>Image By Author</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LVw9P4lyIVvCcZisAbuVZQ.png" /><figcaption>Image by Author</figcaption></figure><h3>How to run?</h3><h4>STEPS:</h4><p>Clone the repository:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/68890560acca04e6564f16929869eec9/href">https://medium.com/media/68890560acca04e6564f16929869eec9/href</a></iframe><h4>STEP 01- Create a conda environment after opening the repository</h4><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/68890560acca04e6564f16929869eec9/href">https://medium.com/media/68890560acca04e6564f16929869eec9/href</a></iframe><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/68890560acca04e6564f16929869eec9/href">https://medium.com/media/68890560acca04e6564f16929869eec9/href</a></iframe><h4>STEP 02- Install the requirements</h4><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/68890560acca04e6564f16929869eec9/href">https://medium.com/media/68890560acca04e6564f16929869eec9/href</a></iframe><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/68890560acca04e6564f16929869eec9/href">https://medium.com/media/68890560acca04e6564f16929869eec9/href</a></iframe><p>Now run,</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/68890560acca04e6564f16929869eec9/href">https://medium.com/media/68890560acca04e6564f16929869eec9/href</a></iframe><p><a href="https://medium.com/mlearning-ai/mlearning-ai-submission-suggestions-b51e2b130bfb">Mlearning.ai Submission Suggestions</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a1c36c683cf0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[MLOps (Machine Learning Operations)]]></title>
            <link>https://python.plainenglish.io/mlops-machine-learning-operations-ec2b1bfb4055?source=rss-9eaccc617264------2</link>
            <guid isPermaLink="false">https://medium.com/p/ec2b1bfb4055</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[ml-so-good]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[mlops]]></category>
            <dc:creator><![CDATA[Chetan Yeola]]></dc:creator>
            <pubDate>Wed, 12 Oct 2022 11:34:40 GMT</pubDate>
            <atom:updated>2022-11-10T05:14:45.956Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/711/1*YKU-1QZFmlsVCTX9QnXNiw.jpeg" /><figcaption>Image by author</figcaption></figure><p>In this article, we are going to learn about MLOps. whenever We talk about machine learning projects or data science projects, you know the life cycle of data science projects from data Gathering to creating a data Pipeline. Probably the life cycle of a data science project going through EDA(Exploratory Data Analysis), Feature Engineering, and Feature Selection. Then, you are training the model and then the hyperparameter tuning the model. Now when you do all these steps the final step is basically to do a deployment. whenever you’re working in a team or you’re working in a real-world industry, the deployment part plays a very important role. because we need to follow some approaches and some of the approaches are like CI(Continue Integration) and CD(Continue Delivery) pipelines. you have to use some DevOps pipeline to do the automated deployment in various environments like Dev, QA, prod, and pre-prod and there are different environments. whenever you go before doing the deployment to the production you need to test it in different environments. so as a data scientist this is super important that you need to know MLOps because MLOps will help you to understand how you can do the automated deployment of all these data science applications that you are creating using the CICD pipeline.</p><h3>DevOps Vs MLOps</h3><p>DevOps and MLOps have fundamental similarities because MLOps were derived from DevOps principles. But they’re quite different in execution.</p><p>With the help of DevOps, we build software, and the software is not degraded whereas the Machine Learning model is degraded. The data might change with time, the model that was performing well earlier, the performance will decrease with time. if you don’t know what exactly is MLOps that means artificial intelligence for IT operations.</p><p>MLOps is an ML engineering culture and practice that aims at unifying ML system development and ML system operations. Development is building the logic part. operations mean that whatever you develop you have to make that operational so people can be used that.</p><h3>Techniques for Implementing and Automating.</h3><h4>Continuous Integration</h4><p>if you are aware of DevOps or not but you have heard about the term continue Integration and continuous delivery. CI means suppose you are building the modules. once you created the modules. what you do, is you go for the testing and you created docker containers. This is the building process. once you have built, after that you will do an integration process. integration of those blocks that means if you have created module_1, Module_2 so how they function together. are they functioning well or not? so that is part of continuous integration. that means you integrate these parts one by one.</p><h4>Continuous Delivery</h4><p>that should automatically deploy another service (model prediction service) or roll back changes from a model.</p><h4>Continuous training</h4><p>In machine learning there is a new part is introducing which is continuous training. as you know. if any machine learning model that you have developed, will not always be as good as today after let&#39;s say four months or six months it will degrade. That&#39;s why we need continuous training required. that means after four months or six months you have to keep on updating your model.</p><h3>Mlops advocates for Automation and Monitoring.</h3><h4>Automation</h4><p>automation means that means whenever you push any code it will test and will be deployed automatically.</p><h4>Monitoring</h4><p>models in production need to be monitored. it means you have developed a code and you have already deployed or your website is live so you have also continuous monitoring as well check whether it will perform well or not.</p><h3>Stages of the ML system development process.</h3><h4>Integration</h4><p>Integration in MLops means combining all the modules or submodules into one model.</p><h4>Testing</h4><p>Testing an ML system involves model validation, model training, and so on. in addition to the conventional code tests, such as unit testing and integration testing.</p><h4>Releasing</h4><p>A release is the distribution of the final version or the newest version of a software application. A software release may be public or private and generally signifies the unveiling of a new or upgraded version of the application.<br>After integration testing, you need to release your software. means your software is ready to be deployed with the user.</p><h4>Deployment</h4><p>Machine learning model deployment is the process of placing a finished machine learning model into a live environment where it can be used for its intended purpose. Models can be deployed in a wide range of environments, and they are often integrated with apps through an API so they can be accessed by end users.</p><h4>Infrastructure Management</h4><p>Machine learning infrastructure includes the resources, processes, and tooling needed to develop, train, and operate machine learning models. It is sometimes referred to as AI infrastructure or a component of MLOps.<br>ML infrastructure supports every stage of machine learning workflows. It enables data scientists, engineers, and DevOps teams to manage and operate the various resources and processes required to train and deploy neural network models.</p><h3>Challenges</h3><ol><li>building an integrated ML system and continue operating it in production with a vast array of the surrounding infrastructure.</li><li>To automate the process from beginning to end while managing different teams, using different technologies, and following different routines.</li></ol><p><a href="https://medium.com/mlearning-ai/mlearning-ai-submission-suggestions-b51e2b130bfb">Mlearning.ai Submission Suggestions</a></p><p><em>More content at </em><a href="https://plainenglish.io/"><strong><em>PlainEnglish.io</em></strong></a><em>. Sign up for our </em><a href="http://newsletter.plainenglish.io/"><strong><em>free weekly newsletter</em></strong></a><em>. Follow us on </em><a href="https://twitter.com/inPlainEngHQ"><strong><em>Twitter</em></strong></a>, <a href="https://www.linkedin.com/company/inplainenglish/"><strong><em>LinkedIn</em></strong></a><em>, </em><a href="https://www.youtube.com/channel/UCtipWUghju290NWcn8jhyAw"><strong><em>YouTube</em></strong></a><em>, and </em><a href="https://discord.gg/GtDtUAvyhW"><strong><em>Discord</em></strong></a><em>. Interested in Growth Hacking? Check out </em><a href="https://circuit.ooo/"><strong><em>Circuit</em></strong></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ec2b1bfb4055" width="1" height="1" alt=""><hr><p><a href="https://python.plainenglish.io/mlops-machine-learning-operations-ec2b1bfb4055">MLOps (Machine Learning Operations)</a> was originally published in <a href="https://python.plainenglish.io/">Python in Plain English</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deep Learning and Its Concepts]]></title>
            <link>https://medium.com/@yeola41/deep-learning-and-its-concepts-30aa243eb14?source=rss-9eaccc617264------2</link>
            <guid isPermaLink="false">https://medium.com/p/30aa243eb14</guid>
            <category><![CDATA[interview-questions]]></category>
            <category><![CDATA[python-programming]]></category>
            <category><![CDATA[ml-so-good]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Chetan Yeola]]></dc:creator>
            <pubDate>Wed, 18 May 2022 06:46:46 GMT</pubDate>
            <atom:updated>2022-10-18T10:19:22.942Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction to Deep Learning</h3><h4>Computer Vision, Deep Learning Interview Questions, Neural Network,Machine Learning, Pytorch, Tensorflow</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4PWtN5incuN4I-w9OZFjkg.jpeg" /></figure><p>Deep learning is a more approachable name for an artificial neural network. The “deep” in deep learning refers to the depth of the network. An artificial neural network can be very shallow.</p><p>Neural networks are inspired by the structure of the cerebral cortex. At the basic level is the perceptron, the mathematical representation of a biological neuron. Like in the cerebral cortex, there can be several layers of interconnected perceptrons.</p><p>The first layer is the input layer. Each node in this layer takes an input and then passes its output as the input to each node in the next layer. There are generally no connections between nodes in the same layer and the last layer produces the outputs.</p><p>We call the middle part the hidden layer. These neurons have no connection to the outside (e.g. input or output) and are only activated by nodes in the previous layer.</p><figure><img alt="Neural Network" src="https://cdn-images-1.medium.com/max/450/1*S74phZBWpV_Hkwn9lOjjnw.png" /><figcaption>Neural Network Diagram</figcaption></figure><h4><strong>Why deep learning is better than machine learning?</strong></h4><p>The traditional machine learning algorithm solves a lot of our cases, but they are not useful while working with high dimensional data that is where we have large inputs and outputs. For example, in the case of handwriting recognition, we have a large amount of input where we will have different types of inputs associated with different types of handwriting</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XuDbGCoXefMwLPHAz9AzQg.png" /></figure><p>The second major challenge is to tell the computer what the features it should look for that will play an important role in predicting the outcome as well as achieving better accuracy while doing so.</p><h4><strong>What kind of problem can be solved by using Deep Learning?</strong></h4><p>Deep Learning is used to solve problems in a way that mimics the human way of solving problems.</p><p>We can use deep learning to solve problems Like Image recognition, object Detection, and Natural Language processing- Translation, Sentence formations, text to speech, speech to text understanding of the semantics of actions</p><h3>Deep Learning Concepts</h3><h4>In this article, I will cover the following six concepts:</h4><blockquote>1. Loss Function vs Cost Function</blockquote><blockquote>2. Input Layer, Hidden Layer, and Output Layer</blockquote><blockquote>3. Backpropagation</blockquote><blockquote>4. Chain Rule</blockquote><blockquote>5. Activation Function</blockquote><blockquote>6. Weights initialization.</blockquote><h3><strong>1.Loss Function vs Cost Function:</strong></h3><p>The loss function computes the error for a single training example.</p><p>The Cost Function computes the error for entire training examples.</p><h3><strong>2</strong>. <strong>Input layer, Hidden Layer, and Output layer</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/597/1*QVPkn8wqTfjEp4mSFSb4oA.png" /></figure><p>The first layer is the input layer. Each node in this layer takes an input and then passes its output as the input to each node in the next layer. There are generally no connections between nodes in the same layer and the last layer produces the outputs.</p><p>We call the middle part the hidden layer. These neurons have no connection to the outside (e.g. input or output) and are only activated by nodes in the previous layer.</p><h3><strong>3</strong>. <strong>Backpropagation</strong></h3><p>Back-propagation is the essence of neural net training and this method of fine-tuning the weights of a neural net based on the error rate obtained in the previous epoch. Proper tuning of the weights allows us to reduce error rates and to make the model reliable by increasing its generalization.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hJO2OhcuuIEnbjkv6OBiJQ.jpeg" /></figure><p>Backpropagation is a short form of “backward propagation of errors.” This is the standard method of training artificial neural networks. This helps to calculate the gradient of a loss function with respect to all the weights in the network. Deriving backpropagation involves numerous clever applications of the chain rule for functions of vectors.</p><h3><strong>4. Chain Rule</strong></h3><p>The chain rule is a way to compute the derivative of a function whose variables are themselves functions of other variables. If C is a scalar-valued function of a scalar 𝑧 and 𝑧 is itself a scalar-valued function of another scalar variable 𝑤, then the chain rule states that</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/162/1*LyIirAq0rP-jXQH_sqiejw.png" /></figure><p>For scalar-valued functions of more than one variable, the chain rule essentially becomes additive. In other words, if 𝐶C is a scalar-valued function of 𝑁N variables 𝑧1,…,𝑧𝑁z1,…,zN, each of which is a function of some variable 𝑤w, the chain rule states that</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/208/1*HUvMPNCf5Mn0Al8Dgpn3zg.png" /></figure><h3><strong>5. Activation Functions</strong></h3><p>Activation functions help to determine the output of a neural network. These type of functions are attached to each neuron in the network and determines whether it should be activated or not, based on whether each neuron’s input is relevant for the model’s prediction.</p><p>The activation function also helps to normalize the output of each neuron to a range between 1 and 0 or between -1 and 1.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/659/1*mAZyng7Y1aAKyrG2Iw2DXg.jpeg" /></figure><p>In a neural network, inputs are fed into the neurons in the input layer. Each neuron has a weight, and multiplying the input number with the weight gives the output of the neuron, which is transferred to the next layer.</p><p>The activation function is a mathematical “gate” in between the input feeding the current neuron and its output going to the next layer. It can be as simple as a step function that turns the neuron output on and off, depending on a rule or threshold.</p><h4><strong>Commonly used activation functions:</strong></h4><p><strong>A. Sigmoid function</strong></p><p>The function formula and chart are as follows</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/135/1*Z0Xz1dHo_ueW5g5HoVj1mw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/589/1*FNB-q5DI42gxru2Gjq2f1A.png" /></figure><p>The Sigmoid function is the most frequently used activation function at the beginning of deep learning. It is a smoothing function that is easy to derive.</p><p>In the sigmoid function, we can see that its output is in the open interval (0,1). We can think of probability, but in the strict sense, don’t treat it as a probability. The sigmoid function was once more popular. It can be thought of as the firing rate of a neuron. In the middle where the slope is relatively large, it is the sensitive area of the neuron. On the sides where the slope is very gentle, it is the neuron’s inhibitory area.</p><p><strong>B. Tanh function</strong></p><p>The tanh function formula and curve are as follows</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/144/1*L7ovptS44eS1IM93eIsKvA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/654/1*yRkAfvFVFxQq9qh7Gmo7uQ.png" /></figure><p>Tanh is a hyperbolic tangent function. The curves of the tanh function and sigmoid function are relatively similar. Let’s compare them. First of all, when the input is large or small, the output is almost smooth and the gradient is small, which is not conducive to weight update. The difference is the output interval.</p><p>The output interval of tanh is 1), and the whole function is 0-centric, which is better than sigmoid.</p><p>In general binary classification problems, the tanh function is used for the hidden layer and the sigmoid function is used for the output layer. However, these are not static, and the specific activation function to be used must be analyzed according to the specific problem, or it depends on debugging.</p><p><strong>C</strong>. <strong>ReLU function</strong></p><p>ReLU function formula and curve are as follows</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/160/1*9MartTYQ4Bdy7XPlsk8rLw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/724/1*W8lAt8t4LzjZfNLqaGD9mw.png" /></figure><p>The ReLU function is actually a function that takes the maximum value. Note that this is not fully interval-derivable, but we can take a sub-gradient, as shown in the figure above. Although ReLU is simple, it is an important achievement in recent years.</p><p>The ReLU (Rectified Linear Unit) function is an activation function that is currently more popular.</p><h3><strong>6. Weights Initialization</strong></h3><p>There are two major types of weight initialization:- zero initialization and random initialization.</p><p><strong>Zero initialization</strong>: In this process, biases and weights are initialized to 0. If the weights are set to 0, all derivatives with respect to the loss functions in the weight matrix become equal. Hence, none of the weights change during subsequent iterations. Setting the bias to 0 cancels out any effect it may have.</p><p>All hidden units become symmetric due to zero initialization. In general, zero initialization is not very useful or accurate for classification and thus must be avoided when any classification task is required.</p><p><strong>Random initialization</strong>: As compared to 0 initialization, this involves setting random values for the weights. The only disadvantage is that set very high values will increase the learning time as the sigmoid activation function maps close to 1. Likewise, if low values are set, the learning time increases as the activation function is mapped close to 0.</p><p>Setting too high or too low values thus generally leads to the exploding or vanishing gradient problem.</p><p>New types of weight initialization like “He initialization” and “Xavier initialization” have also emerged. These are based on specific equations and are not mentioned here due to their sheer complexity.</p><p><em>More content at </em><a href="https://plainenglish.io/"><strong><em>PlainEnglish.io</em></strong></a><em>. Sign up for our </em><a href="http://newsletter.plainenglish.io/"><strong><em>free weekly newsletter</em></strong></a><em>. Follow us on </em><a href="https://twitter.com/inPlainEngHQ"><strong><em>Twitter</em></strong></a><em> and </em><a href="https://www.linkedin.com/company/inplainenglish/"><strong><em>LinkedIn</em></strong></a><em>. Check out our </em><a href="https://discord.gg/GtDtUAvyhW"><strong><em>Community Discord</em></strong></a><em> and join our </em><a href="https://inplainenglish.pallet.com/talent/welcome"><strong><em>Talent Collective</em></strong></a><em>.</em></p><p><a href="https://medium.com/mlearning-ai/mlearning-ai-submission-suggestions-b51e2b130bfb">Mlearning.ai Submission Suggestions</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=30aa243eb14" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Convolutional Neural Network (CNN) In Deep Learning]]></title>
            <link>https://python.plainenglish.io/convolution-neural-network-cnn-in-deep-learning-77f5ab457166?source=rss-9eaccc617264------2</link>
            <guid isPermaLink="false">https://medium.com/p/77f5ab457166</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[image-processing]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[neural-networks]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Chetan Yeola]]></dc:creator>
            <pubDate>Wed, 16 Feb 2022 05:52:57 GMT</pubDate>
            <atom:updated>2022-11-10T05:13:50.979Z</atom:updated>
            <content:encoded><![CDATA[<h4>Image Processing Using Python</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/984/0*YVT_vA0cgiwkKkPX.png" /><figcaption>The architecture of Convolutional Neural Network</figcaption></figure><h3>Convolution Neural Network</h3><p>Convolutional Neural Networks (ConvNets or CNNs) are a category of Neural Networks that have proven very effective in areas such as image recognition and classification. ConvNets have been successful in identifying faces, objects, and traffic signs apart from powering vision in robots and self-driving cars.</p><p>In Neural Networks, Convolutional Neural Network (ConvNets or CNNs) is one of the main categories to do image recognition, images classifications. object Detections, Recognition faces, etc, are some of the areas where CNNs are widely used. The best thing is there is no need for feature extraction. The system learns to do feature extraction and the core concept of CNN is, it uses convolution of images and filters to generate invariant features which are passed on to the next layer.</p><p>A Convolutional Neural Network (CNN) is comprised of one or more convolutional layers (often with a subsampling step) and then followed by one or more fully connected layers as in a standard multilayer neural network. The architecture of a CNN is designed to take advantage of the 2D structure of an input image (or other 2D input such as a speech signal). This is achieved with local connections and tied weights followed by some form of pooling which results in translation-invariant features. Another benefit of CNNs is that they are easier to train and have many fewer parameters than fully connected networks with the same number of hidden units. In this blog, we will be introducing the vital layers which constitute our everyday CNN.</p><h3>Different Types of layers in CNN.</h3><ol><li>Input Layer</li><li>Convolution Layer</li><li>Activation Function Layer</li><li>Pooling Layer</li><li>Fully Connected Layer</li></ol><h4>Input Layer</h4><p>Let’s take an example by running a covnets on of image of dimensions 32 x 32 x 3. Input Layer holds the raw input of image with width 32, height 32, and depth 3.</p><h4>Convolution Layer</h4><p>It computes the output volume by computing dot products between all filters and image patches. Suppose we use a total of 12 filters for this layer we’ll get output volume of dimension 32 x 32 x 12.</p><h4>Activation Function Layer</h4><p>This layer will apply the element-wise activation function to the output of the convolution layer. Some activation functions are RELU: max(0, x), Sigmoid: 1/(1+e^-x), Tanh, Leaky RELU, etc. So the volume remains unchanged. Hence output volume will have dimensions 32 x 32 x 12.</p><h4>Pool Layer</h4><p>This layer is periodically inserted within the covnets, and its main function is to reduce the size of volume which makes the computation fast reduces memory, and also prevents overfitting. Two common types of pooling layers are max pooling and average pooling. If we use a max pool with 2 x 2 filters and stride 2, the resultant volume will be of dimension 16x16x12.</p><p><strong>Pooling can be of different types:</strong></p><ol><li>Max Pooling</li><li>Average Pooling</li><li>Sum Pooling</li></ol><p>Max pooling takes the largest element from the rectified feature map. Taking the largest element could also take the average pooling. Sum of all elements in the feature map call as sum pooling.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/591/1*HIiFWKX76Vmp0FkxO1iblQ.png" /></figure><h4>Fully-Connected Layer</h4><p>This layer is a regular neural network layer that takes input from the previous layer and computes the class scores and outputs the 1-D array of size equal to the number of classes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/578/1*0iFeM2Kjw7wk3o3tcd-vUA.png" /></figure><p>In the next post, I would like to talk about some popular CNN architectures such as AlexNet, VGGNet, GoogLeNet, and ResNet.</p><p>Thank you!</p><p><em>More content at </em><a href="https://plainenglish.io/"><strong><em>PlainEnglish.io</em></strong></a><em>. Sign up for our </em><a href="http://newsletter.plainenglish.io/"><strong><em>free weekly newsletter</em></strong></a><em>. Follow us on </em><a href="https://twitter.com/inPlainEngHQ"><strong><em>Twitter</em></strong></a>, <a href="https://www.linkedin.com/company/inplainenglish/"><strong><em>LinkedIn</em></strong></a><em>, </em><a href="https://www.youtube.com/channel/UCtipWUghju290NWcn8jhyAw"><strong><em>YouTube</em></strong></a><em>, and </em><a href="https://discord.gg/GtDtUAvyhW"><strong><em>Discord</em></strong></a><em>. Interested in Growth Hacking? Check out </em><a href="https://circuit.ooo/"><strong><em>Circuit</em></strong></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=77f5ab457166" width="1" height="1" alt=""><hr><p><a href="https://python.plainenglish.io/convolution-neural-network-cnn-in-deep-learning-77f5ab457166">Convolutional Neural Network (CNN) In Deep Learning</a> was originally published in <a href="https://python.plainenglish.io/">Python in Plain English</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Theft Detection Using Python and Open CV-Library (Computer Vision)]]></title>
            <link>https://python.plainenglish.io/theft-detection-using-python-and-open-cv-library-computer-vision-9efa0ed364dd?source=rss-9eaccc617264------2</link>
            <guid isPermaLink="false">https://medium.com/p/9efa0ed364dd</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Chetan Yeola]]></dc:creator>
            <pubDate>Sun, 09 Jan 2022 13:07:22 GMT</pubDate>
            <atom:updated>2022-02-18T12:05:09.764Z</atom:updated>
            <content:encoded><![CDATA[<h4>A video surveillance system to capture suspicious activities using Python, Frame Differences, and SSIM (Structural similarity index).</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/403/1*mhsg9_i9rwpSejXhKfrelw.jpeg" /></figure><p>Theft is the most common crime committed across the world. According to the National Crime Records Bureau (NCRB), ~80% of the criminal cases are related to theft. Increasing theft rates cause people to suffer both financially and emotionally. Therefore, there is a need to develop a more deterrent surveillance system, which is convenient to use, free from false alarms, minimize human interference, and is cost-effective.</p><h3>Introduction</h3><p>Computer vision works on enabling computers to see, identify and process images in the same way that human vision does, and then provide appropriate output. It is like imparting human intelligence.</p><p>In this blog, we are doing an Intelligent Video surveillance system to capture suspicious activities.</p><h4>1. Importing The Libraries</h4><pre>import cv2<br>import winsound<br>from skimage.metrics import structural_similarity as compare_ssim</pre><h4>2. Difference Function For Frame Differences</h4><pre>def difference(frame1, frame2):<br>    # convert the images to grayscale<br><br>    grayA = cv2.cvtColor(frame1, cv2.COLOR_BGR2GRAY)<br>    medianA = cv2.medianBlur(grayA ,5)<br>    grayB = cv2.cvtColor(frame2, cv2.COLOR_BGR2GRAY)<br>    medianB = cv2.medianBlur(grayB ,5)<br>    # compute the Structural Similarity Index (SSIM) between the two<br>    # images, ensuring that the difference image is returned<br>    (score, diff) = compare_ssim(medianA, medianB, full=True)<br>    diff = (diff * 255).astype(&quot;uint8&quot;)<br>    # print(&quot;SSIM: {}&quot;.format(score))<br>    return score</pre><p>We’ll be using compare_ssim (from scikit-image), argparse, imutils, and cv2 (OpenCV).</p><p>Using the compare_ssim function from scikit-image, we calculate a score and difference image, diff</p><p>The score represents the structural similarity index between the two input frames. This value can fall into the range [-1, 1] with a value of one being a “perfect match”.</p><p>The diff frames contain the actual image differences between the two input frames that we wish to visualize. The difference frame is currently represented as a floating-point data type in the range [0, 1] so we first convert the array to 8-bit unsigned integers in the range [0, 255] before we can further process it using OpenCV.</p><h4><strong>3. The user can select an area in the frame to provide monitoring for suspicious activity.</strong></h4><pre>x, y, width, height = cv2.selectROI(first_frame)<br>roi = first_frame[y: y + height, x: x + width]</pre><p>cv2.selectROI allows users to select ROI from the image. After reading the first frame of the video user can select ROI and that region is extracted from the image and stored in the variable.</p><p>For remaining frames, the same ROI coordinates are used to extract regions from each frame and saved them.</p><h4>4. Capture Video</h4><pre>video = cv2.VideoCapture(&#39;Test.mp4&#39;)<br>length = int(video.get(cv2.CAP_PROP_FRAME_COUNT))<br>codec = cv2.VideoWriter_fourcc(*&#39;XVID&#39;)<br>fps =int(video.get(cv2.CAP_PROP_FPS))<br>cap_width, cap_height = int(video.get(cv2.CAP_PROP_FRAME_WIDTH)), int(video.get(cv2.CAP_PROP_FRAME_HEIGHT))<br>output = cv2.VideoWriter(&#39;test1.avi&#39;, codec, fps, (cap_width, cap_height), True)<br>_, first_frame = video.read()</pre><p>To capture a video in Python, use the cv2 VideoCapture class, and then create an object of VideoCapture. VideoCapture has the device index or the name of a video file. The device index is just an integer to define a Camera. If we pass 0, then it is for the first or primary camera, 1 for the second camera so on. We capture the video frame by frame by frame.</p><p>You can read, display, write and do lots of other operations on images and videos using OpenCV. To save a video in OpenCV cv.VideoWriter()method is used.</p><h4>5. Similarity Index Calculation</h4><pre>while True:<br>    _, frame = video.read()<br>    if frame is None:<br>        break<br>    roi_new = frame[y: y + height, x: x + width]<br>    # avg1= np.mean(roi_new)<br>    # print(avg1)<br>    similarity = difference(roi, roi_new)<br>    if similarity &lt; 0.8:<br>        cv2.rectangle(frame, (x, y), (x + width, y + height), (0, 0, 255), 2)<br>        winsound.Beep(500, 200)<br>    cv2.imshow(&#39;new_frame&#39;, frame)<br>    output.write(frame)<br>    cv2.waitKey(10)<br>output.release()<br>video.release()<br>cv2.destroyAllWindows()</pre><p>store difference in similarity variable. Then, check the condition similarity &lt; 0.8. if the condition is true, we draw a red rectangle on the frame with cv2.rectangle.</p><h3>Output:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*y4oUHHdSJ-IJ1tE2qmIh3Q.png" /></figure><p>If u love to read this article and have a common interest in similar projects then we can grow our network and can work on more real-time projects.</p><p>For more details connect with me on my <a href="https://www.linkedin.com/in/chetan-yeola-498344ab/"><strong>Chetan Yeola | LinkedIn</strong></a></p><p><strong>THANKS!</strong></p><p><em>More content at </em><a href="http://plainenglish.io/"><strong><em>plainenglish.io</em></strong></a><em>. Sign up for our </em><a href="http://newsletter.plainenglish.io/"><strong><em>free weekly newsletter</em></strong></a><em>. Get exclusive access to writing opportunities and advice in our </em><a href="https://discord.gg/GtDtUAvyhW"><strong><em>community Discord</em></strong></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9efa0ed364dd" width="1" height="1" alt=""><hr><p><a href="https://python.plainenglish.io/theft-detection-using-python-and-open-cv-library-computer-vision-9efa0ed364dd">Theft Detection Using Python and Open CV-Library (Computer Vision)</a> was originally published in <a href="https://python.plainenglish.io/">Python in Plain English</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Recurrent Neural Networks]]></title>
            <link>https://medium.com/@yeola41/humans-dont-start-their-thinking-from-scratch-every-second-8f6d2c30a965?source=rss-9eaccc617264------2</link>
            <guid isPermaLink="false">https://medium.com/p/8f6d2c30a965</guid>
            <dc:creator><![CDATA[Chetan Yeola]]></dc:creator>
            <pubDate>Thu, 24 Jun 2021 17:40:28 GMT</pubDate>
            <atom:updated>2021-06-24T17:43:56.274Z</atom:updated>
            <content:encoded><![CDATA[<p>Recurrent Neural Networks</p><p>Humans don’t start their thinking from scratch every second. As you read this essay, you understand each word based on your understanding of previous words. You don’t throw everything away and start thinking from scratch again. Your thoughts have persistence.</p><p>Traditional neural networks can’t do this, and it seems like a major shortcoming. For example, imagine you want to classify what kind of event is happening at every point in a movie. It’s unclear how a traditional neural network could use its reasoning about previous events in the film to inform later ones.</p><p>Recurrent neural networks address this issue. They are networks with loops in them, allowing information to persist.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/458/1*aEYBqmOIbYahtNr8-KsHnA.png" /></figure><p>Recurrent Neural Networks have loops.</p><p>In the above diagram, a chunk of neural network, AA, looks at some input xtxt and outputs a value htht. A loop allows information to be passed from one step of the network to the next.</p><p>These loops make recurrent neural networks seem kind of mysterious. However, if you think a bit more, it turns out that they aren’t all that different than a normal neural network. A recurrent neural network can be thought of as multiple copies of the same network, each passing a message to a successor. Consider what happens if we unroll the loop:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NKhwsOYNUT5xU7Pyf6Znhg.png" /></figure><p>An unrolled recurrent neural network.</p><p>This chain-like nature reveals that recurrent neural networks are intimately related to sequences and lists. They’re the natural architecture of neural network to use for such data.</p><p>And they certainly are used! In the last few years, there have been incredible success applying RNNs to a variety of problems: speech recognition, language modeling, translation, image captioning… The list goes on. I’ll leave discussion of the amazing feats one can achieve with RNNs to Andrej Karpathy’s excellent blog post, <a href="http://karpathy.github.io/2015/05/21/rnn-effectiveness/">The Unreasonable Effectiveness of Recurrent Neural Networks</a>. But they really are pretty amazing.</p><p>Essential to these successes is the use of “LSTMs,” a very special kind of recurrent neural network which works, for many tasks, much much better than the standard version. Almost all exciting results based on recurrent neural networks are achieved with them. It’s these LSTMs that this essay will explore.</p><p>The Problem of Long-Term Dependencies</p><p>One of the appeals of RNNs is the idea that they might be able to connect previous information to the present task, such as using previous video frames might inform the understanding of the present frame. If RNNs could do this, they’d be extremely useful. But can they? It depends.</p><p>Sometimes, we only need to look at recent information to perform the present task. For example, consider a language model trying to predict the next word based on the previous ones. If we are trying to predict the last word in “the clouds are in the sky,” we don’t need any further context – it’s pretty obvious the next word is going to be sky. In such cases, where the gap between the relevant information and the place that it’s needed is small, RNNs can learn to use the past information.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ckg0zDhMn66MOzr_DUp6Og.png" /></figure><p>But there are also cases where we need more context. Consider trying to predict the last word in the text “I grew up in France… I speak fluent French.” Recent information suggests that the next word is probably the name of a language, but if we want to narrow down which language, we need the context of France, from further back. It’s entirely possible for the gap between the relevant information and the point where it is needed to become very large.</p><p>Unfortunately, as that gap grows, RNNs become unable to learn to connect the information.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a5EbLhyxbPR78PhiV5Esjg.png" /></figure><p>In theory, RNNs are absolutely capable of handling such “long-term dependencies.” A human could carefully pick parameters for them to solve toy problems of this form. Sadly, in practice, RNNs don’t seem to be able to learn them. The problem was explored in depth by <a href="http://people.idsia.ch/~juergen/SeppHochreiter1991ThesisAdvisorSchmidhuber.pdf">Hochreiter (1991) [German]</a> and <a href="http://www-dsi.ing.unifi.it/~paolo/ps/tnn-94-gradient.pdf">Bengio, et al. (1994)</a>, who found some pretty fundamental reasons why it might be difficult.</p><p>Thankfully, LSTMs don’t have this problem!</p><p>LSTM Networks</p><p>Long Short Term Memory networks – usually just called “LSTMs” – are a special kind of RNN, capable of learning long-term dependencies. They were introduced by <a href="http://www.bioinf.jku.at/publications/older/2604.pdf">Hochreiter &amp; Schmidhuber (1997)</a>, and were refined and popularized by many people in following work.<a href="https://colah.github.io/posts/2015-08-Understanding-LSTMs/#fn1">1</a> They work tremendously well on a large variety of problems, and are now widely used.</p><p>LSTMs are explicitly designed to avoid the long-term dependency problem. Remembering information for long periods of time is practically their default behavior, not something they struggle to learn!</p><p>All recurrent neural networks have the form of a chain of repeating modules of neural network. In standard RNNs, this repeating module will have a very simple structure, such as a single tanh layer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vODZnovJafo8L_qZ-Tk1xQ.png" /></figure><p>The repeating module in a standard RNN contains a single layer.</p><p>LSTMs also have this chain like structure, but the repeating module has a different structure. Instead of having a single neural network layer, there are four, interacting in a very special way.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J5W8FrASMi93Z81NlAui4w.png" /></figure><p>The repeating module in an LSTM contains four interacting layers.</p><p>Don’t worry about the details of what’s going on. We’ll walk through the LSTM diagram step by step later. For now, let’s just try to get comfortable with the notation we’ll be using.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/950/1*Gu0SeGRj6t6Vhf0g2JT0nA.png" /></figure><p>In the above diagram, each line carries an entire vector, from the output of one node to the inputs of others. The pink circles represent pointwise operations, like vector addition, while the yellow boxes are learned neural network layers. Lines merging denote concatenation, while a line forking denote its content being copied and the copies going to different locations.</p><p>The Core Idea Behind LSTMs</p><p>The key to LSTMs is the cell state, the horizontal line running through the top of the diagram.</p><p>The cell state is kind of like a conveyor belt. It runs straight down the entire chain, with only some minor linear interactions. It’s very easy for information to just flow along it unchanged.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HGY8vT3iSpCgqUAR_abe_Q.png" /></figure><p>The LSTM does have the ability to remove or add information to the cell state, carefully regulated by structures called gates.</p><p>Gates are a way to optionally let information through. They are composed out of a sigmoid neural net layer and a pointwise multiplication operation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/198/1*a6FEUZOlcx4peSLv3eZVnw.png" /></figure><p>The sigmoid layer outputs numbers between zero and one, describing how much of each component should be let through. A value of zero means “let nothing through,” while a value of one means “let everything through!”</p><p>An LSTM has three of these gates, to protect and control the cell state.</p><p>Step-by-Step LSTM Walk Through</p><p>The first step in our LSTM is to decide what information we’re going to throw away from the cell state. This decision is made by a sigmoid layer called the “forget gate layer.” It looks at ht−1ht−1 and xtxt, and outputs a number between 00 and 11 for each number in the cell state Ct−1Ct−1. A 11 represents “completely keep this” while a 00 represents “completely get rid of this.”</p><p>Let’s go back to our example of a language model trying to predict the next word based on all the previous ones. In such a problem, the cell state might include the gender of the present subject, so that the correct pronouns can be used. When we see a new subject, we want to forget the gender of the old subject.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QDX3N93xsmrdJ_T2nMwUgw.png" /></figure><p>The next step is to decide what new information we’re going to store in the cell state. This has two parts. First, a sigmoid layer called the “input gate layer” decides which values we’ll update. Next, a tanh layer creates a vector of new candidate values, C~tC~t, that could be added to the state. In the next step, we’ll combine these two to create an update to the state.</p><p>In the example of our language model, we’d want to add the gender of the new subject to the cell state, to replace the old one we’re forgetting.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WkYOpvES3nMyypWEMAxunA.png" /></figure><p>It’s now time to update the old cell state, Ct−1Ct−1, into the new cell state CtCt. The previous steps already decided what to do, we just need to actually do it.</p><p>We multiply the old state by ftft, forgetting the things we decided to forget earlier. Then we add it∗C~tit∗C~t. This is the new candidate values, scaled by how much we decided to update each state value.</p><p>In the case of the language model, this is where we’d actually drop the information about the old subject’s gender and add the new information, as we decided in the previous steps.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gw8I2P_wxF_2NQyMRztQug.png" /></figure><p>Finally, we need to decide what we’re going to output. This output will be based on our cell state, but will be a filtered version. First, we run a sigmoid layer which decides what parts of the cell state we’re going to output. Then, we put the cell state through tanhtanh (to push the values to be between −1−1 and 11) and multiply it by the output of the sigmoid gate, so that we only output the parts we decided to.</p><p>For the language model example, since it just saw a subject, it might want to output information relevant to a verb, in case that’s what is coming next. For example, it might output whether the subject is singular or plural, so that we know what form a verb should be conjugated into if that’s what follows next.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*w8Bgd_Gk5DasRC4GI6woTg.png" /></figure><p>Variants on Long Short Term Memory</p><p>What I’ve described so far is a pretty normal LSTM. But not all LSTMs are the same as the above. In fact, it seems like almost every paper involving LSTMs uses a slightly different version. The differences are minor, but it’s worth mentioning some of them.</p><p>One popular LSTM variant, introduced by <a href="/service/ftp://ftp.idsia.ch/pub/juergen/TimeCount-IJCNN2000.pdf">Gers &amp; Schmidhuber (2000)</a>, is adding “peephole connections.” This means that we let the gate layers look at the cell state.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g43fqCt8aIbDaH-mlXTCEg.png" /></figure><p>The above diagram adds peepholes to all the gates, but many papers will give some peepholes and not others.</p><p>Another variation is to use coupled forget and input gates. Instead of separately deciding what to forget and what we should add new information to, we make those decisions together. We only forget when we’re going to input something in its place. We only input new values to the state when we forget something older.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8nFrwolzTYtUWSaziiJGkg.png" /></figure><p>A slightly more dramatic variation on the LSTM is the Gated Recurrent Unit, or GRU, introduced by <a href="http://arxiv.org/pdf/1406.1078v3.pdf">Cho, et al. (2014)</a>. It combines the forget and input gates into a single “update gate.” It also merges the cell state and hidden state, and makes some other changes. The resulting model is simpler than standard LSTM models, and has been growing increasingly popular.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g43fqCt8aIbDaH-mlXTCEg.png" /></figure><p>These are only a few of the most notable LSTM variants. There are lots of others, like Depth Gated RNNs by <a href="http://arxiv.org/pdf/1508.03790v2.pdf">Yao, et al. (2015)</a>. There’s also some completely different approach to tackling long-term dependencies, like Clockwork RNNs by <a href="http://arxiv.org/pdf/1402.3511v1.pdf">Koutnik, et al. (2014)</a>.</p><p>Which of these variants is best? Do the differences matter? <a href="http://arxiv.org/pdf/1503.04069.pdf">Greff, et al. (2015)</a> do a nice comparison of popular variants, finding that they’re all about the same. <a href="http://jmlr.org/proceedings/papers/v37/jozefowicz15.pdf">Jozefowicz, et al. (2015)</a> tested more than ten thousand RNN architectures, finding some that worked better than LSTMs on certain tasks</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8f6d2c30a965" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Generate a parse Tree]]></title>
            <link>https://medium.com/@yeola41/generate-a-parse-tree-4b0fffe81b2d?source=rss-9eaccc617264------2</link>
            <guid isPermaLink="false">https://medium.com/p/4b0fffe81b2d</guid>
            <dc:creator><![CDATA[Chetan Yeola]]></dc:creator>
            <pubDate>Sun, 16 May 2021 06:42:14 GMT</pubDate>
            <atom:updated>2021-05-16T06:42:14.443Z</atom:updated>
            <content:encoded><![CDATA[<p>Generate a parse Tree</p><p>Please generate a parse tree for the following sentence. You can generate it/write it down manually:<br>“John went for a walk to the park with a golden statue.”</p><p>I have used the below CFG grammar to create the parse tree for the sentence:<br>“John went for a walk to the park with a golden statue.”</p><p>S -&gt; NP VP<br>NP -&gt; &#39;John&#39;<br>VP -&gt; Vi | Vt NP | VP PP<br>Vi -&gt; &#39;went&#39;<br>IN -&gt; &#39;for&#39; | &#39;to&#39; | &#39;with&#39;<br>DT -&gt; &#39;a&#39; | &#39;the&#39;<br>NP -&gt; NP PP | DT NN | DT N<br>NN -&gt; &#39;walk&#39; | &#39;park&#39;<br>N -&gt; &#39;statue&#39;<br>JJ -&gt; &#39;golden&#39;<br>N -&gt; JJ N<br>PP -&gt; IN NP</p><p>Structured Tree:<br>(S<br>(NP john)<br>(VP<br>(VP<br>(VP (VP (Vi went)) (PP (IN for) (NP (DT a) (NN walk))))<br>(PP (IN to) (NP (DT the) (NN park))))<br>(PP (IN with) (NP (DT a) (N (JJ golden) (N statue))))))</p><p>Python code for generating tree:</p><p>import nltk</p><p>defining Contex Free Grammar</p><p>grammar = nltk.CFG.fromstring(&quot;&quot;&quot;<br>S -&gt; NP VP<br>NP -&gt; &#39;john&#39;<br>VP -&gt; Vi | Vt NP | VP PP<br>Vi -&gt; &#39;went&#39;<br>IN -&gt; &#39;for&#39; | &#39;to&#39; | &#39;with&#39;<br>DT -&gt; &#39;a&#39; | &#39;the&#39;<br>NP -&gt; NP PP | DT NN | DT N<br>NN -&gt; &#39;walk&#39; | &#39;park&#39;<br>N -&gt; &#39;statue&#39;<br>JJ -&gt; &#39;golden&#39;<br>N -&gt; JJ N<br>PP -&gt; IN NP<br>&quot;&quot;&quot;)</p><p>sentence = &#39;john went for a walk to the park with a golden statue&#39;.split()<br>def parse(sent):<br>#Returns nltk.Tree.Tree format output<br>a = []<br>parser = nltk.ChartParser(grammar)<br>for tree in parser.parse(sent):<br>a.append(tree)<br>return(a[0])</p><p>Gives output as structured tree</p><p>print(parse(sentence))</p><p>Gives tree diagram in NLTK window</p><p>parse(sentence).draw()</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4b0fffe81b2d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>