<?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 Abhijeet Vichare on Medium]]></title>
        <description><![CDATA[Stories by Abhijeet Vichare on Medium]]></description>
        <link>https://medium.com/@abhijeetvichare76?source=rss-40f8ec38a2f1------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*wuC3g12suBn5SrC03NjT3Q.jpeg</url>
            <title>Stories by Abhijeet Vichare on Medium</title>
            <link>https://medium.com/@abhijeetvichare76?source=rss-40f8ec38a2f1------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 18 Nov 2026 21:18:53 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@abhijeetvichare76/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[Future-Proofing Your Career: A Guide for Data Scientists and Analysts]]></title>
            <link>https://medium.com/@abhijeetvichare76/future-proofing-your-career-a-guide-for-data-scientists-and-analysts-66accd39dac5?source=rss-40f8ec38a2f1------2</link>
            <guid isPermaLink="false">https://medium.com/p/66accd39dac5</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[chatgpt]]></category>
            <category><![CDATA[covid19]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[careers]]></category>
            <dc:creator><![CDATA[Abhijeet Vichare]]></dc:creator>
            <pubDate>Mon, 10 Jul 2023 22:43:41 GMT</pubDate>
            <atom:updated>2023-07-10T22:43:41.131Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*n1RDOql0cNf6Si2v" /><figcaption>Photo by <a href="https://unsplash.com/es/@fabiooulucas?utm_source=medium&amp;utm_medium=referral">Fábio Lucas</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>In the ever-evolving world of data science and analytics, staying ahead of the curve is crucial. The recent release of ChatGPT and its code interpreter has sparked a revolution, offering a plethora of opportunities for data scientists and analysts.</p><h4>Overview of ChatGPT and its Code Interpreter</h4><p>ChatGPT’s code interpreter feature allows it to understand and execute code, making it a powerful tool for data manipulation, analysis, and visualization. If you’re interested more on how Code Interpreter works, I have covered a practical example of ChatGPT’s Code Interpreter here:</p><p><a href="https://medium.com/@abhijeetvichare76/revolutionizing-data-analysis-with-chatgpts-code-interpreter-30d6e0916fe6">Revolutionizing Data Analysis with ChatGPT’s Code Interpreter</a> — <a href="https://medium.com/u/40f8ec38a2f1">Abhijeet Vichare</a></p><p>The advent of tools like ChatGPT underscores the need for continuous learning and upskilling in data science. Here are some concrete steps to leverage ChatGPT effectively:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*JVSd2Nek8HTaG0pZ" /><figcaption>Photo by <a href="https://unsplash.com/ja/@siva_photography?utm_source=medium&amp;utm_medium=referral">Levart_Photographer</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Understand the Basics</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FkyLhFEKgNoWin9Ezu4%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FkyLhFEKgNoWin9Ezu4%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2FkyLhFEKgNoWin9Ezu4%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="435" frameborder="0" scrolling="no"><a href="https://medium.com/media/36e42bbb6638567774d75cc2406c81b2/href">https://medium.com/media/36e42bbb6638567774d75cc2406c81b2/href</a></iframe><p>Familiarize yourself with the fundamentals of key AI tools that are revolutionizing data science, including ChatGPT and its code interpreter. Here are some resources to get you started:</p><ul><li><strong>ChatGPT:</strong> OpenAI’s <a href="https://beta.openai.com/docs/">documentation</a> and <a href="https://github.com/openai/openai-cookbook">tutorials</a> provide a comprehensive overview of ChatGPT and its code interpreter.</li><li><strong>Deep Learning Modules:</strong> TensorFlow is a popular open-source platform for machine learning. You can learn more about it from the official <a href="https://www.tensorflow.org/overview/">TensorFlow website</a>. PyTorch is another widely used machine learning library. Check out the <a href="https://pytorch.org/tutorials/">PyTorch tutorials</a> to get started.</li><li><strong>Tableau: </strong>Tableau is a powerful tool for data visualization. You can learn more about it from the <a href="https://www.tableau.com/learn/training">Tableau Training</a> page.</li><li><strong>Power BI:</strong> Power BI is a business analytics tool by Microsoft. The <a href="https://docs.microsoft.com/en-us/power-bi/guided-learning/">Power BI Guided Learning</a> section is a great place to start.</li></ul><h3>Practice Regularly</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FxT9DPjkNXsQuoZva6c%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FxT9DPjkNXsQuoZva6c%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2FxT9DPjkNXsQuoZva6c%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="326" frameborder="0" scrolling="no"><a href="https://medium.com/media/1fc2a95c4221430709e4ac4e5904ef75/href">https://medium.com/media/1fc2a95c4221430709e4ac4e5904ef75/href</a></iframe><p>The best way to master any tool is through regular practice. Start incorporating ChatGPT into your daily tasks to understand its capabilities and limitations. Here are some ways to do this:</p><ul><li><strong>Automate Simple Tasks:</strong> Begin by automating simple data cleaning tasks or generating basic data visualizations. This will help you get a feel for the tool and understand its functionalities.</li><li><strong>Use ChatGPT as Your Personal Assistant:</strong> ChatGPT can be a valuable assistant in tackling larger projects. For instance, you could use it to develop a predictive model for a dataset of your choice. ChatGPT can assist with data preprocessing, model selection, and even interpreting the results.</li><li><strong>Develop Your Portfolio</strong>: Use ChatGPT to work on bigger projects that interest you. This could be anything from analyzing social media data to predict trends, to creating a recommendation system for a movie database. These projects not only help you learn but also add value to your portfolio.</li></ul><p>Platforms like <a href="https://www.kaggle.com/">Kaggle</a>, <a href="https://github.com/">GitHub</a>, and data science blogs on Medium can be great sources of inspiration for new projects. They provide numerous datasets and project ideas that you can use to practice and learn.</p><h3>Join a Community</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FLHlDlE9mJbD6VkRgay%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FLHlDlE9mJbD6VkRgay%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2FLHlDlE9mJbD6VkRgay%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="435" frameborder="0" scrolling="no"><a href="https://medium.com/media/58f39923583bfd2c76561daf56414e12/href">https://medium.com/media/58f39923583bfd2c76561daf56414e12/href</a></iframe><p>Participating in online communities and forums is a great way to learn, share knowledge, and stay updated. Here are some platforms that are rich with information and resources:</p><ul><li><a href="https://datascience.stackexchange.com/"><strong>Data Science Stack Exchange</strong></a><strong>:</strong> This is a question-and-answer site for data science professionals, machine learning specialists, and those interested in learning more about the field.</li><li><a href="https://www.kaggle.com/"><strong>Kaggle</strong></a><strong>:</strong> Kaggle is a platform for predictive modeling and analytics competitions. It also hosts datasets, has a robust forum for data science discussions, and offers micro-courses on many data science topics.</li><li><a href="https://www.reddit.com/r/MachineLearning/"><strong>r/MachineLearning</strong></a><strong>:</strong> This subreddit is a vibrant community for sharing and discussing the latest developments in machine learning. It’s a great place to learn about new research, tools, and techniques.</li><li><a href="https://towardsdatascience.com/"><strong>Towards Data Science</strong></a><strong>:</strong> This Medium publication shares concepts, ideas, and codes related to data science. It’s a great place to learn about the latest trends and insights in the field.</li><li><a href="https://www.alignmentforum.org/"><strong>AI Alignment Forum</strong></a><strong>: </strong>This forum is a place to discuss and coordinate the problem of aligning superintelligent AI with human values.</li><li><a href="https://stats.stackexchange.com/"><strong>Cross Validated</strong></a><strong>: </strong>This is a question-and-answer site for people interested in statistics, machine learning, data analysis, data mining, and data visualization.</li><li><a href="https://datatau.net/"><strong>DataTau</strong></a><strong>: </strong>This is a community-driven site where users share, discuss, and vote on data science and machine learning articles.</li></ul><p>By actively participating in these communities, you can learn from others’ experiences, ask questions, and share your knowledge. It’s a great way to stay updated with the latest trends and developments in the field.</p><h3>Attend Workshops and Webinars</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FdAv3NTqhgQ1fTKWUCp%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FdAv3NTqhgQ1fTKWUCp%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2FdAv3NTqhgQ1fTKWUCp%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="244" frameborder="0" scrolling="no"><a href="https://medium.com/media/2ecc7316fded331370cb1e7074337a05/href">https://medium.com/media/2ecc7316fded331370cb1e7074337a05/href</a></iframe><p>Coursera offers courses from top universities and organizations worldwide. They have a wide range of data science courses, including specializations in machine learning, data visualization, and data analysis.</p><ul><li><a href="https://www.meetup.com/"><strong>Meetup</strong></a><strong>:</strong> Meetup is a platform for finding and building local communities. You can use it to meet new people, learn new things, find support, and pursue your passions with others. Look for data science meetups in your area.</li><li><a href="https://www.linkedin.com/learning/"><strong>LinkedIn Learning</strong></a><strong>:</strong> LinkedIn Learning offers video courses taught by industry experts in software, creative, and business skills, including data science and related fields.</li></ul><p>I have shortlisted a list of courses, webinars, and workshops that I would recommend:</p><ol><li><strong>Data Science MicroMasters on edX:</strong> This program from the University of California, San Diego (UCSD) covers a range of data science topics including Python, machine learning, big data analysis, and more.</li><li><strong>Machine Learning with TensorFlow on Google Cloud Platform Specialization on Coursera:</strong> This five-course specialization from Google Cloud provides a hands-on introduction to machine learning with TensorFlow.</li><li><strong>Data Science Webinar Series by DataCamp:</strong> DataCamp regularly hosts webinars on a variety of data science topics. Past webinars have covered topics like data visualization, data cleaning, and machine learning.</li><li><strong>AI For Everyone by deeplearning.ai on Coursera:</strong> This non-technical course is designed to help people understand AI’s impact on society and the basics of AI strategy.</li><li><strong>Kaggle Days Meetup:</strong> These are local events organized by Kaggle Days Meetup groups. They often include workshops and webinars on various data science topics.</li><li><strong>Data Science for Business Leaders by Harvard Business School Online:</strong> This course provides business leaders with an understanding of data science and its role in decision-making.</li></ol><h3>Stay Updated</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2Fv4fR5KjNr5c6Ystfho%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2Fv4fR5KjNr5c6Ystfho%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2Fv4fR5KjNr5c6Ystfho%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="244" frameborder="0" scrolling="no"><a href="https://medium.com/media/8797252aed4f5c6f39e328ea398bf8a0/href">https://medium.com/media/8797252aed4f5c6f39e328ea398bf8a0/href</a></iframe><p>Keeping up with the latest news and updates in the field of AI and data science is crucial. Here are some strategies to ensure you’re always in the loop:</p><p><strong>Follow Key Players</strong>: Stay updated with the latest developments from leading AI research groups and companies. Here are a few to consider:</p><ul><li><a href="https://openai.com/research/">OpenAI</a> — Creators of ChatGPT, regularly publish research and updates.</li><li><a href="https://ai.googleblog.com/">Google AI</a> — Google’s AI blog is a great resource for the latest in AI research and tools.</li><li><a href="https://deepmind.com/blog">DeepMind</a> — DeepMind, an Alphabet subsidiary, is at the forefront of AI research.</li><li><a href="https://ai.facebook.com/blog">Facebook AI</a> — Facebook AI regularly shares updates about its research and advancements in AI.</li></ul><p><strong>Subscribe to Newsletters:</strong> Newsletters can deliver the latest news and updates straight to your inbox. Some popular ones include:</p><ul><li><a href="https://jack-clark.net/">Import AI</a> — A weekly newsletter about artificial intelligence, data science, and machine learning.</li><li><a href="https://www.deeplearning.ai/thebatch/">The Batch</a> — A weekly update from deeplearning.ai led by Andrew Ng.</li><li><a href="https://dataelixir.com/">Data Elixir</a> — A weekly newsletter of the best data science news and resources from around the web.</li><li><a href="https://tldr.tech/ai">TLDR AI</a>: A daily newsletter with links and summaries of interesting stories in AI, machine learning, and data science</li><li>Follow Influential People on Social Media: Many AI researchers and data science professionals share insights and updates on platforms like Twitter and LinkedIn. Some influential figures include <a href="https://twitter.com/AndrewYNg">Andrew Ng</a>, <a href="https://twitter.com/ylecun">Yann LeCun</a>, and <a href="https://twitter.com/drfeifei">Fei-Fei Li</a>.</li></ul><p><strong>Attend Conferences and Meetups:</strong> Events like <a href="https://nips.cc/">NeurIPS</a>, <a href="https://icml.cc/">ICML</a>, and <a href="https://www.kdd.org/">KDD</a> are great places to learn about the latest research and developments in AI and data science.</p><h3>Network, Network, Network</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FVgkjDGwJvLwEQlXQkf%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FVgkjDGwJvLwEQlXQkf%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2FVgkjDGwJvLwEQlXQkf%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="243" frameborder="0" scrolling="no"><a href="https://medium.com/media/678826e7a42f0db38b61e813489910f1/href">https://medium.com/media/678826e7a42f0db38b61e813489910f1/href</a></iframe><p>Networking is a timeless skill that remains crucial, irrespective of technological advancements. It’s a powerful tool for learning about new opportunities, staying updated on trends, and even finding mentors. Here’s how to make the most of networking in the data science field:</p><ul><li><strong>Leverage LinkedIn:</strong> LinkedIn is a powerful tool for networking. Connect with peers, join relevant groups, and participate in discussions. Don’t be shy about reaching out to people for informational interviews — it’s a great way to learn about different roles and companies.</li><li><strong>Engage on Twitter:</strong> Many data scientists and AI researchers are active on Twitter.</li><li><strong>Alumni Networks:</strong> Don’t forget about your university’s alumni network. It can be a valuable resource for making connections in the field.</li></ul><p>Remember, networking is not just about taking — it’s also about giving. Be ready to share your knowledge, offer help, and provide support to others in your network. It’s a surefire way to build strong, mutually beneficial relationships.</p><h3>Conclusion</h3><p>The advent of AI tools like ChatGPT and its code interpreter signifies a transformative era in data science and analytics. These advancements are not merely changing the way we work — they’re reshaping the skills landscape and redefining the future of the profession.</p><p>As we navigate this dynamic landscape, continuous learning, and upskilling become more than just strategies for career advancement — they become essential for career survival. By understanding the basics of these new tools, practicing regularly, participating in relevant communities, attending workshops and webinars, staying updated with the latest developments, and networking actively, data scientists and analysts can not only stay relevant but also become pioneers in their field.</p><p>Moreover, it’s important to remember that while tools and technologies evolve, certain skills remain timeless. Critical thinking, problem-solving, and effective communication are as valuable today as they will be in the future. Similarly, the ability to learn and adapt is a meta-skill that will serve professionals well, irrespective of how the field evolves.</p><p>Finally, it’s worth noting that the journey of learning and growth is not a solitary one. By sharing knowledge, collaborating on projects, and building a strong professional network, we can collectively drive the field forward. After all, the future of data science and analytics is not just about the tools we use, but also about the community we build.</p><p>In conclusion, the future of data science is exciting and full of possibilities. By embracing continuous learning and staying adaptable, data scientists and analysts can look forward to a rewarding and impactful career in this vibrant field.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FrCfs9ADbwmJna%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FrCfs9ADbwmJna%2Fgiphy.gif&amp;image=https%3A%2F%2Fmedia3.giphy.com%2Fmedia%2Fv1.Y2lkPTc5MGI3NjExaGdkODZlYXhwZmZnNmw4emVyMDdjYmNyMTFoOGljNTdhcWo2azl1NiZlcD12MV9naWZzX2dpZklkJmN0PWc%2FrCfs9ADbwmJna%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="352" frameborder="0" scrolling="no"><a href="https://medium.com/media/9f36730280af9be6ef3cc8b82dadc3c9/href">https://medium.com/media/9f36730280af9be6ef3cc8b82dadc3c9/href</a></iframe><p>As we continue to explore the fascinating world of data science together, I invite you to follow me for more updates and insights. Your support means a lot to me. If you found this article helpful, please consider giving it a like or sharing it with your network. Your engagement not only motivates me but also helps me create more content that can assist us all in navigating the ever-evolving landscape of data science and analytics. Let’s continue this journey of learning and growth together. Thank you for your support!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=66accd39dac5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Revolutionizing Data Analysis with ChatGPT’s Code Interpreter]]></title>
            <link>https://medium.com/@abhijeetvichare76/revolutionizing-data-analysis-with-chatgpts-code-interpreter-30d6e0916fe6?source=rss-40f8ec38a2f1------2</link>
            <guid isPermaLink="false">https://medium.com/p/30d6e0916fe6</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[future]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[visualization]]></category>
            <dc:creator><![CDATA[Abhijeet Vichare]]></dc:creator>
            <pubDate>Fri, 07 Jul 2023 19:34:20 GMT</pubDate>
            <atom:updated>2023-07-07T19:34:20.258Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*fTu9B4jG4EkTZVLq" /><figcaption>Photo by <a href="https://unsplash.com/@ilgmyzin?utm_source=medium&amp;utm_medium=referral">ilgmyzin</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Introduction</h3><p>In the world of AI, one name that has consistently echoed in the corridors of innovation is GPT, more specifically, OpenAI’s GPT-3. It’s not just a chatbot, it’s a powerful language model that can generate human-like text given some input. But what if I told you that this incredible technology has been taken a step further? OpenAI has now launched a new feature — a code interpreter within ChatGPT. It’s as impressive as it sounds and has the potential to revolutionize how we approach coding, data analysis, and problem-solving.</p><h3>My Experiment with ChatGPT’s Code Interpreter</h3><p>To fully grasp the capabilities of this new tool, I embarked on an experiment. My goal was to read and analyze costs from a PDF bill and plot a histogram of the spending categories. I engaged with ChatGPT’s code interpreter to carry out these tasks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4kjCbz8Mllfqi48oY9v0Lw.png" /><figcaption>A bill uploaded to the ChatGPT code interpreter</figcaption></figure><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2F7bRQR1BH21RV9yEb25%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2F7bRQR1BH21RV9yEb25%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2F7bRQR1BH21RV9yEb25%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="362" frameborder="0" scrolling="no"><a href="https://medium.com/media/b2ea9002d9986514480bea4cdd0c2965/href">https://medium.com/media/b2ea9002d9986514480bea4cdd0c2965/href</a></iframe><p>The process was simple. First, I uploaded a PDF bill. The AI then used a tool called PDFPlumber to extract the text from the PDF. The next challenge was parsing the extracted text to identify the spending categories (items) and their costs. ChatGPT employed Python’s regular expressions (regex) to match and extract these details, illustrating its ability to handle complex string manipulations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-s9wGqH-2hMLcww47YwN9Q.png" /></figure><p>However, data extraction from real-world documents is often messy and requires iterative refinement. ChatGPT was up to the task. It identified and resolved issues with the initial extraction, such as service fees and taxes being incorrectly identified as items, and was able to correctly aggregate costs under the same category.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_EGUS7pBnw0OgVFU6PaR5w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AnemrQ3gdwcrA-W-nTjm5w.png" /></figure><p>First it showed the two items of the order as part of the spending category and I asked a follow-up question to add other spending categories in the Histogram. Here are the results:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vKac1MIZI_k5YVxdx02Atw.png" /></figure><h3>The Impact of ChatGPT’s Code Interpreter</h3><p>The ability to dynamically interpret and execute code opens a whole new realm of possibilities for ChatGPT. It can assist in real-time data analysis, automate repetitive tasks, aid in learning and teaching programming, debug code, and much more.</p><p>This feature bridges the gap between coding and natural language processing, allowing even non-programmers to harness the power of code through intuitive, conversational interfaces. It also offers immense value to seasoned developers by providing a quick and easy way to experiment with code snippets, test ideas, and even aid in complex problem-solving.</p><p>Of course, it’s crucial to discuss both the strengths and potential limitations of any new technology. Let’s explore some of the drawbacks of ChatGPT’s code interpreter feature.</p><h3>Drawbacks of ChatGPT’s Code Interpreter</h3><p>While ChatGPT’s code interpreter is a game-changer, it does come with a few limitations.</p><p><strong>1. Pro Membership Requirement</strong>: As it currently stands, this powerful feature is only available to Pro members. This paywall may limit access for individuals or organizations that cannot afford the Pro membership, thereby excluding a portion of potential users.</p><p><strong>2. Wait Times</strong>: During my experiment, I noticed that the wait time for code execution was relatively high. While this is understandable considering the complexity of the tasks being performed, in a fast-paced environment where quick results are often needed, this could potentially be a drawback.</p><p><strong>3. Limited Internet Access</strong>: For security reasons, the code interpreter does not have access to the internet. This means that it can’t make external API calls or fetch data from the web in real-time, which could limit its functionality in certain use cases.</p><p><strong>4. Knowledge Cut-Off:</strong> As of now, ChatGPT’s training data only includes information up until September 2021. While this is fairly recent, it does mean that the model might not be aware of or able to leverage certain advancements or changes in technology, programming languages, or libraries that have occurred since then.</p><p><strong>5. Complex Error Handling: </strong>While ChatGPT does a commendable job in understanding and executing code, handling complex errors or bugs might not be as straightforward. For beginners, it might be a bit challenging to troubleshoot code without the detailed error messages that an Integrated Development Environment (IDE) typically provides.</p><h3>My Take on ChatGPT’s Code Interpreter</h3><p>As I navigated through this process, I was impressed by the sophistication and utility of ChatGPT’s code interpreter. It wasn’t merely executing commands; it was interacting, understanding the nuances of the problem, and even refining its approach based on the data.</p><p>The ability of the AI to integrate coding within a conversational model is groundbreaking. It lowers the entry barrier to coding and data analysis and makes these critical skills more accessible. ChatGPT’s code interpreter is more than an incremental upgrade; it’s a giant leap toward the democratization of coding and data literacy.</p><p>Despite these limitations, it’s important to remember that this is a relatively new feature, and future updates and iterations will likely address many of these challenges.</p><p>Remember, as we continue to harness the power of AI, we’re not just writing code. We’re writing history. Stay tuned for more explorations into the fascinating world of AI with ChatGPT.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=30d6e0916fe6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Meet Speedy: My Dashing Journey of Creating an RL Agent to Master the CarRacing Environment]]></title>
            <link>https://medium.com/@abhijeetvichare76/meet-speedy-my-dashing-journey-of-creating-an-rl-agent-to-master-the-carracing-environment-57e345ded3fc?source=rss-40f8ec38a2f1------2</link>
            <guid isPermaLink="false">https://medium.com/p/57e345ded3fc</guid>
            <category><![CDATA[gaming]]></category>
            <category><![CDATA[self-driving-cars]]></category>
            <category><![CDATA[reinforcement-learning]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Abhijeet Vichare]]></dc:creator>
            <pubDate>Tue, 06 Jun 2023 00:34:37 GMT</pubDate>
            <atom:updated>2023-06-06T00:34:37.589Z</atom:updated>
            <content:encoded><![CDATA[<p>Hey there, gearheads and AI enthusiasts! Buckle up because I’m going to take you on a high-octane journey today. We’re not just racing cars; we’re coding a reinforcement learning (RL) agent to race cars. Say hello to Speedy, my virtual speedster that learned to navigate the challenging CarRacing environment, powered by a DQN model and the Ray RLlib library. Let’s hit the gas and see how it all unfolded!</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FzJoTqSplr6Q%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DzJoTqSplr6Q&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FzJoTqSplr6Q%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/b9b191eab11611e953420582544bc808/href">https://medium.com/media/b9b191eab11611e953420582544bc808/href</a></iframe><h4>Green Light: The Challenge</h4><p>First off, let’s talk about the circuit, the CarRacing environment. It’s a thrilling racetrack, yet intimidating for our AI buddies. It’s unpredictable, with a randomly generated track each time, chock-full of tight turns and narrow straits. The goal? Keep the car on the road and finish as quickly as possible. This is where Speedy comes in, my RL agent.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ahstaENFrS8dkkux" /><figcaption>Photo by <a href="https://unsplash.com/@aj5tdt?utm_source=medium&amp;utm_medium=referral">Anders J</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h4>Building Speedy: Our High-tech Speedster</h4><p>What makes Speedy different? Speedy is built using a Deep Q-Network (DQN) model, a form of reinforcement learning that combines Q-Learning with deep neural networks. The muscle behind Speedy, however, is the Ray RLlib library, a high-performance, easy-to-use reinforcement learning library. The beauty of Ray RLlib is that it’s flexible and scalable, offering both high-level and low-level APIs that make it a perfect pit crew for Speedy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*4ocna5g8W0bLA6f1" /><figcaption>Photo by <a href="https://unsplash.com/@gabimedia?utm_source=medium&amp;utm_medium=referral">Gabriel Vasiliu</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h4>Pit Stop 1: Initializing Speedy</h4><p>Like any rookie, Speedy needed some basic instructions. Using Ray RLlib, I initialized Speedy’s DQN model, setting the hyperparameters to help him learn how to navigate the CarRacing environment. To do this, Speedy had to observe the state of the environment, take actions, and learn from the rewards. The reward, in this case, is to finish the track as fast as possible without careening off into the virtual grass.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*kHG2WhUZwOGmX6N9" /><figcaption>Photo by <a href="https://unsplash.com/@ar1428?utm_source=medium&amp;utm_medium=referral">Andrew Roberts</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h4>Pit Stop 2: Learning the Rules of the Road</h4><p>Once Speedy was initialized, it was time to hit the road. Speedy was set loose in the CarRacing environment to explore, make mistakes, and learn. Each time Speedy made a move, it received feedback, a reward or punishment. And thanks to the magic of the DQN model, Speedy learned to associate actions with their long-term value based on this feedback.</p><h4>Pit Stop 3: The Training Loop</h4><p>The real grunt work was in the training loop. Speedy trained in episodes, racing around the tracks, learning from each experience, and then adjusting its Q-values. It wasn’t always smooth driving. There were plenty of crashes and wrong turns, but with each error, Speedy improved, optimizing its policy to pick the actions that maximized the cumulative reward.</p><h4>The Checkered Flag: Mastering the Track</h4><p>After countless laps and lessons, Speedy was no longer the rookie we had started with. It was making intelligent decisions, expertly navigating the twists and turns of the CarRacing environment, and best of all, staying on the road! Through the power of reinforcement learning, our RL agent had truly become Speedy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*GMZ1H_4ssEnRx85b" /><figcaption>Photo by <a href="https://unsplash.com/@glen_rushton?utm_source=medium&amp;utm_medium=referral">Glen Rushton</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h4>The Victory Lap: Looking Back</h4><p>In the end, the journey of building Speedy was not just about teaching an RL agent to navigate a racetrack. It was about experiencing the remarkable power of reinforcement learning and the incredible utility of the Ray RLlib library. Building Speedy was an exhilarating ride full of twists, turns, and the occasional crash, but it was worth every minute when we saw Speedy master the CarRacing environment.</p><p>In the world of AI, this is just the starting line. As for Speedy, the open road is calling. Who knows what race he’ll conquer next?</p><p><strong>Keep your engines running and your code compiling!</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=57e345ded3fc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to win friends and influence people — A book review? Yay, or nay?]]></title>
            <link>https://medium.com/@abhijeetvichare76/how-to-win-friends-and-influence-people-a-book-review-yay-or-nay-160dbac45814?source=rss-40f8ec38a2f1------2</link>
            <guid isPermaLink="false">https://medium.com/p/160dbac45814</guid>
            <category><![CDATA[leadership]]></category>
            <category><![CDATA[self-improvement]]></category>
            <category><![CDATA[communication]]></category>
            <category><![CDATA[book-review]]></category>
            <category><![CDATA[professional-development]]></category>
            <dc:creator><![CDATA[Abhijeet Vichare]]></dc:creator>
            <pubDate>Wed, 24 May 2023 00:56:40 GMT</pubDate>
            <atom:updated>2023-05-24T00:56:40.671Z</atom:updated>
            <content:encoded><![CDATA[<h3>How to win friends and influence people — A book review? Yay, or nay?</h3><p>When it comes to self-help classics, few have stood the test of time like Dale Carnegie’s “How to Win Friends and Influence People.” First published in 1936, it’s been lauded and scrutinized by generations, often with a contentious blend of the two.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*esdwE9hDO8RdRtn-" /><figcaption>Photo by <a href="https://unsplash.com/@markusspiske?utm_source=medium&amp;utm_medium=referral">Markus Spiske</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h4>Book Overview</h4><p>Dale Carnegie’s masterpiece is essentially a practical manual on human relations. It contains a wealth of advice, built on common-sense principles, all geared towards helping readers navigate their social and professional relationships more effectively.</p><p>The book is structured around four main sections:</p><ol><li>fundamental techniques in handling people</li><li>ways to make people like you</li><li>how to win people to your way of thinking</li><li>how to be a leader and change people without giving offense or arousing resentment.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*T6SMfLrjRWHws597" /><figcaption>Photo by <a href="https://unsplash.com/fr/@mrsunflower94?utm_source=medium&amp;utm_medium=referral">Matteo Vistocco</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h4><strong>Core Principles Explored</strong></h4><p>Here’s a brief overview of some of the key principles that Carnegie presents:</p><p>1. <strong>Don’t Criticize, Condemn or Complain</strong>: Carnegie believed that people don’t like to admit fault, and criticism often results in resentment rather than learning.</p><p>2. <strong>Give Honest and Sincere Appreciation</strong>: Genuine praise and appreciation go a long way to building good relationships. It should be specific, honest, and sincere.</p><p>3. <strong>Arouse in the Other Person an Eager Want</strong>: This is essentially about understanding what motivates others and helping them see how your proposals align with their needs or desires.</p><p>4. <strong>Be Genuinely Interested in Other People</strong>: Show genuine interest in others and they are likely to reciprocate.</p><p>5. <strong>Let the Other Person Do a Great Deal of Talking</strong>: People love to talk about themselves and their ideas. Allowing them to do so can create a favorable impression of you.</p><p>6. <strong>Make the Other Person Feel Important — And Do It Sincerely</strong>: Recognizing the achievements and worth of others is another effective way to build strong relationships.</p><h4>Timeless or Outdated?</h4><p>After more than eight decades, Carnegie’s wisdom still seems largely timeless. His focus on empathy, genuine interest, and appreciation taps into fundamental aspects of human psychology. These principles have universal appeal and application, whether you’re trying to foster a better relationship with a colleague, a friend, or a family member.</p><p>That said, some critics argue that Carnegie’s principles can be misused, and manipulated into strategies for ingratiation or insincerity. While this is a risk, the book itself underscores the importance of sincerity, arguing that effective human relations can’t be built on deception or superficiality.</p><h4><strong>A Handy Tool in Your Interpersonal Arsenal</strong></h4><p>This emphasis on adaptability and thoughtful application makes Carnegie’s work an essential tool to have in your interpersonal arsenal. It provides a foundation upon which to build your unique approach to relationship building and influence.</p><p>In the ever-evolving dynamics of human interaction, there are few guides as enduring as Carnegie’s. His principles serve as a reminder of the importance of empathy, genuine interest, and respect in all our relationships.</p><p>Used wisely and adapted to the complexities of individual circumstances, “How to Win Friends and Influence People” can undoubtedly help you navigate a path to more enriching and positive relationships.</p><h4>The Verdict: Yay or Nay?</h4><p>So, is “How to Win Friends and Influence People” worth reading? I would say a resounding “Yay.” It’s not without its potential pitfalls, but the enduring popularity and influence of Carnegie’s book suggest that it has considerable value.</p><p>Its principles are fundamentally about respect, understanding, and valuing others — timeless insights that remain relevant today. Carnegie’s book doesn’t offer a magic formula for instant popularity or success, but it does provide thoughtful guidance for those seeking to improve their interpersonal skills and relationships.</p><p>In an age where communication is often reduced to snippets of text and social media posts, Carnegie’s emphasis on thoughtful, genuine engagement seems more important than ever. In conclusion, this is a timeless classic that is well worth revisiting, whether you’re a seasoned professional, a new graduate, or simply someone looking to enhance your relationships and interpersonal skills.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=160dbac45814" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[UCM and Price Elasticity: A Love Story for the Economically Curious]]></title>
            <link>https://medium.com/@abhijeetvichare76/ucm-and-price-elasticity-a-love-story-for-the-economically-curious-86a1552a8c6a?source=rss-40f8ec38a2f1------2</link>
            <guid isPermaLink="false">https://medium.com/p/86a1552a8c6a</guid>
            <category><![CDATA[business-intelligence]]></category>
            <category><![CDATA[ucm]]></category>
            <category><![CDATA[price-analysis]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[price-elasticity]]></category>
            <dc:creator><![CDATA[Abhijeet Vichare]]></dc:creator>
            <pubDate>Mon, 15 May 2023 19:46:05 GMT</pubDate>
            <atom:updated>2023-05-15T19:46:05.035Z</atom:updated>
            <content:encoded><![CDATA[<h4>Unraveling the Magic of Utility Consistent Mapping in the Land of Price Elasticity</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*tw3zCIb-LG7Ne3XQ" /><figcaption>Photo by <a href="https://unsplash.com/@angelekamp?utm_source=medium&amp;utm_medium=referral">Angèle Kamp</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Once upon a time, in the mystical land of Price Elasticity, a concept named Utility Consistent Mapping (UCM) was born. This enchanting character is the unsung hero of economics, and today, we’re going to unveil its secrets and dive into its fascinating world. So, buckle up, dear reader, as we embark on an adventure through the riveting realm of UCM and price elasticity!</p><h4>Chapter 1: The Mysterious UCM</h4><p>To understand the enigmatic UCM, we must first learn about its dear friend, the Price Elasticity of Demand. Price elasticity measures how sensitive the demand for a product is to a change in its price. In simpler terms, it tells us if people will still buy something when its price increases (or decreases).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*DKTFB2aF6kcUvxg0.jpg" /></figure><p>Now, let’s get to the heart of the matter: UCM. Utility Consistent Mapping is a mathematical framework that helps us determine the price elasticity of a product by examining how consumers’ preferences change as prices shift. UCM elegantly weaves together the fabric of consumer behavior with the threads of utility theory, allowing economists to unravel the mysteries of price elasticity.</p><h4>Chapter 2: A Dance of Demand and Utility</h4><p>Imagine two products: a bewitching book of spells and a shimmering silk scarf. If the price of the spellbook doubles, will people still buy it? What if the price of the scarf goes up? UCM helps us answer these questions by analyzing how the utility — the satisfaction or happiness derived from consuming goods — of these items changes with price fluctuations.</p><p>This utility, in the magical land of Price Elasticity, can be represented as a series of points on a graph called the Indifference Curve. Each point on the curve shows the combination of the spellbook and the scarf that provides the same level of satisfaction to the consumer. UCM helps us draw the enchanting map that guides us through these curves, painting a picture of consumers’ preferences as prices change.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yXlMfSCqmvZ6bwoYIzBbAw.png" /></figure><h4>Chapter 3: The UCM Potion: Ingredients for Success</h4><p>The secret ingredients of the UCM potion are three magical elements: the demand function, the expenditure function, and the utility function. Combined, these elements create a potion so powerful, it can reveal the inner workings of price elasticity.</p><p>- Demand Function: This mystical formula calculates the quantity of goods demanded based on their price.<br>- Expenditure Function: A spellbinding component that estimates the minimum amount of money a consumer needs to achieve a certain level of satisfaction.<br>- Utility Function: The enchanting essence that captures the satisfaction derived from consuming a specific bundle of goods.</p><p>By brewing these three elements together, UCM concocts a potion that allows us to unveil the secrets of price elasticity and consumer behavior.</p><h4>Chapter 4: The Adventures of UCM and Price Elasticity</h4><p>As we meander through the land of Price Elasticity, UCM guides us in understanding the choices consumers make when prices change. With its magical powers, UCM helps businesses set prices that maximize profits, aids policymakers in designing effective tax policies, and assists environmentalists in crafting strategies to promote sustainable consumption.</p><p>From determining the optimal price for a potion that turns you invisible to understanding the impact of taxes on the sale of enchanted broomsticks, UCM plays a pivotal role in the thrilling tale of price elasticity.</p><h4>Epilogue: A Never-ending Journey</h4><p>So, our adventure in the land of UCM and Price Elasticity comes to an end, but the story never truly finishes. With every new product, service, or policy, the tale continues. UCM, the unsung hero of economics, will forever be our guiding light</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=86a1552a8c6a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mastering Value Iteration: A Beginner’s Guide to Solving the Taxi Problem in Open AI Gym]]></title>
            <link>https://medium.com/@abhijeetvichare76/mastering-value-iteration-a-beginners-guide-to-solving-the-taxi-problem-in-open-ai-gym-f65111e7725c?source=rss-40f8ec38a2f1------2</link>
            <guid isPermaLink="false">https://medium.com/p/f65111e7725c</guid>
            <category><![CDATA[uber]]></category>
            <category><![CDATA[reinforcement-learning]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Abhijeet Vichare]]></dc:creator>
            <pubDate>Sat, 22 Apr 2023 17:56:49 GMT</pubDate>
            <atom:updated>2023-04-22T17:56:49.177Z</atom:updated>
            <content:encoded><![CDATA[<p>Value Iteration is a popular reinforcement learning algorithm used to find the optimal policy for a given Markov Decision Process (MDP). In this article, we will explain the basics of the Value Iteration algorithm and use it to solve the Taxi problem in Open AI Gym.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*HPIoR-tOmCNNNEHW" /><figcaption>Photo by <a href="https://unsplash.com/@waldemarbrandt67w?utm_source=medium&amp;utm_medium=referral">Waldemar</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h4>The Taxi Problem</h4><p>The Taxi problem is a simple MDP with a 5x5 grid of tiles representing a taxi environment. The objective of the problem is to pick up a passenger from a location and drop them off at another location while avoiding obstacles. The taxi can move in four directions: north, south, east, or west. The problem is considered solved when the taxi reaches the destination.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/550/0*h0G5inh-XEmaSU2Y.gif" /></figure><p>To apply the Value Iteration algorithm to this problem, we need to define a reward function that provides feedback to the agent for its actions. In the Taxi problem, the reward for successfully dropping off the passenger is +20, the reward for picking up or dropping off the passenger in the wrong location is -10, and the reward for moving to a new location is -1. Our objective is to train an agent that can maximize the cumulative reward over multiple episodes.</p><p>The Value Iteration algorithm works by iteratively updating the value function for each state until it converges to the true value function. The value function estimates the expected cumulative reward that the agent can achieve from a particular state. We can define the value function recursively using the Bellman equation:</p><p>V(s) = max_a ∑p(s’|s,a) (r(s,a,s’) + γV(s’))</p><p>Where V(s) is the value function for state s, max_a is the maximum value over all possible actions a, p(s’|s,a) is the probability of transitioning to state s’ from state s after taking action a, r(s,a,s’) is the reward for transitioning from state s to state s’ after taking action a, and γ is the discount factor that determines the importance of future rewards.</p><p>We can use the Bellman equation to iteratively update the value function for each state until it converges to the true value function. This process is known as value iteration. We can then use the value function to improve the policy by selecting the action that leads to the state with the highest value.</p><p>To implement the Value Iteration algorithm, we first initialize the value function to zero for all states. We then loop over the states and actions in the environment and use the Bellman equation to update the value function for each state:</p><pre>class ValueIteration:<br>    def __init__(self, env, gamma=0.9):<br>        self.env = env<br>        self.gamma = gamma<br>        self.value = np.zeros(self.env.nS)+3<br>        self.policy = np.zeros([self.env.nS, self.env.nA]) <br>        self.iterations = 0<br>        self.delta = 10**5<br>        self.value_history = []<br>        self.policy_history = []<br>        self.policy_stable = False<br>        self.eps = 1e-9<br><br>    def value_iteration(self):<br>        while self.delta&gt;self.eps:<br>            self.value = self.value_update()<br>            self.policy = self.policy_update()<br>            self.policy_stable = self.policy_check()<br>            self.iterations += 1<br>        return self.policy, self.value</pre><p>In the above code, env is the Taxi environment, gamma is the discount factor, and eps(Theta) is the convergence threshold. We start with an initial value function of zeros and loop over the states and actions in the environment. The value iteration function has three main steps:</p><p><strong>1. Update the value:</strong> In the first step of value iteration, we update the value function for each state in the Markov decision process (MDP). The value function represents the expected cumulative reward that an agent will receive from a particular state, given its current policy. We update the value function by taking the maximum of the expected rewards that the agent can receive from all possible actions in each state. The updated value function is then stored for use in the next iteration.</p><pre>def value_update(self):<br>    value = np.zeros(self.env.nS)<br>    for s in range(self.env.nS):<br>        value[s] = max([sum([p * (r + self.gamma * self.value[s_]) for p, s_, r, _ in self.env.P[s][a]]) for a in range(self.env.nA)])<br>    self.delta = max(np.abs(self.value - value))<br>    return value</pre><p><strong>2. Update the policy:</strong> In the second step of value iteration, we update the policy for each state in the MDP. The policy determines the action that the agent should take in each state in order to maximize its expected cumulative reward. We update the policy by selecting the action that corresponds to the maximum expected reward, based on the updated value function.</p><pre>def policy_update(self):<br>    policy = np.zeros([self.env.nS, self.env.nA])<br>    for s in range(self.env.nS):<br>        action_values = np.zeros(self.env.nA)<br>        for a in range(self.env.nA):<br>            for prob, next_state, reward, done in self.env.P[s][a]:<br>                action_values[a] += prob * (reward + self.gamma * self.value[next_state])<br>        best_a = np.argmax(action_values)<br>        policy[s] = np.eye(self.env.nA)[best_a]<br>    return policy</pre><p><strong>3. Check if the policy is stable: </strong>In the third and final step of value iteration, we check if the policy has stabilized. This means that the policy is no longer changing as we update the value function, indicating that we have found the optimal policy for the MDP. We can check if the policy is stable by comparing it to the policy from the previous iteration. If the policies are the same, we have found the optimal policy and can stop iterating. Otherwise, we continue iterating by updating the value function and policy again.</p><pre>def policy_check(self):<br>    policy_stable = True<br>    for s in range(self.env.nS):<br>        chosen_a = np.argmax(self.policy[s])<br>        action_values = np.zeros(self.env.nA)<br>        for a in range(self.env.nA):<br>            for prob, next_state, reward, done in self.env.P[s][a]:<br>                action_values[a] += prob * (reward + self.gamma * self.value[next_state])<br>        best_a = np.argmax(action_values)<br>        if chosen_a != best_a:<br>            policy_stable = False<br>            break<br>    return policy_stable</pre><p>Now that we have the Value Iteration class with us, we will load the Taxi environment in the gym.</p><pre>env = gym.make(&quot;Taxi-v3&quot;)<br>value_iter = ValueIteration(env, gamma=0.9)<br>policy, V = value_iter.value_iteration()<br><br>eps = 1000<br>n = 1000<br>wins = 0<br>for _ in range(eps):<br>    ite = 0<br>    state,_ = env.reset()<br>    done = False<br>    while not done and ite &lt; n:<br>        action = np.argmax(policy[state])<br>        state, reward, done,_, info = env.step(action)<br>        if render:env.render()<br>        if done and reward == 20:<br>            wins += 1<br>        ite += 1<br>return wins / eps</pre><p>In the above code, we import the gym library and create an instance of the Taxi environment. We then run the value iteration algorithm to obtain the value function and the policy extraction algorithm to obtain the optimal policy. We use the optimal policy to simulate the agent’s behavior in the environment and calculate the total reward received.</p><p>Here is a video of the agent solving the Taxi problem using the value iteration algorithm:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*DPeDvYzRqERuWdL5ANtP9Q.gif" /></figure><p>In this article, we have explored the Value Iteration algorithm and its application to the Taxi problem in Open AI Gym. Value Iteration is a powerful technique for solving MDPs and can be applied to a wide range of problems. We encourage readers to explore further and apply these techniques to their own projects.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f65111e7725c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Solving the Frozen Lake Problem with RL: Learn the Fundamentals with a Practical Example]]></title>
            <link>https://medium.com/@abhijeetvichare76/solving-the-frozen-lake-problem-with-rl-learn-the-fundamentals-with-a-practical-example-187be0207e8c?source=rss-40f8ec38a2f1------2</link>
            <guid isPermaLink="false">https://medium.com/p/187be0207e8c</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[simulation]]></category>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[reinforcement-learning]]></category>
            <category><![CDATA[openai]]></category>
            <dc:creator><![CDATA[Abhijeet Vichare]]></dc:creator>
            <pubDate>Mon, 10 Apr 2023 21:10:33 GMT</pubDate>
            <atom:updated>2023-04-10T21:10:33.316Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*fUFMF3svGPqhzHIe" /><figcaption>Photo by <a href="https://unsplash.com/fr/@ninjason?utm_source=medium&amp;utm_medium=referral">Jason Leung</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Reinforcement learning (RL) is a subfield of machine learning that enables agents to learn optimal behavior through trial and error. In this article, we will explore the basics of RL by building an agent to solve the Frozen Lake environment using policy evaluation and policy improvement algorithms.</p><p>The Frozen Lake is a playground environment developed by OpenAI gym. It&#39;s a grid world with a 4x4 grid of tiles. Each tile can be either frozen or a hole, and the objective is to reach the goal tile without falling into a hole. The agent can take four actions: move up, down, left, or right. The environment is stochastic, which means that the agent’s actions may not always lead to the desired outcome.</p><p>To build an RL agent, we need to define a reward function that provides feedback to the agent for its actions. In the Frozen Lake environment, the reward for reaching the goal tile is +1, and the reward for falling into a hole is -1. The reward for moving onto a frozen tile is 0. Our objective is to train an agent that can maximize the cumulative reward over multiple episodes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/402/1*-Mqf9foBr8af5EuqZ-EZyQ.png" /></figure><h4>Policy Evaluation</h4><p>We will start with the policy evaluation algorithm, which involves evaluating the value function for a given policy. The value function estimates the expected cumulative reward that the agent can achieve by following the policy from a particular state. We can define the value function recursively using the Bellman equation:</p><blockquote>V(s) = r(s,a) + γ∑p(s’|s,a)V(s’)</blockquote><p>Where <em>V(s)</em> is the value function for state <strong>s</strong>,<strong> r(s, a)</strong> is the immediate reward for taking action <strong>a</strong> in state <strong>s</strong>, <strong>p(s’|s, a)</strong> is the probability of transitioning to state s’ from state s after taking action <strong>a</strong>, and <strong>γ</strong> is the discount factor that determines the importance of future rewards.</p><p>We can use the Bellman equation to iteratively update the value function for each state until it converges to the true value function. This process is known as policy evaluation. We can then use the value function to improve the policy by selecting the action that leads to the state with the highest value.</p><p>To implement the policy evaluation algorithm, we first initialize the value function to zero for all states. We then loop over the states and actions in the environment and use the Bellman equation to update the value function for each state:</p><pre>def policy_evaluation(env, policy, gamma=1.0, theta=0.00001):<br>    V = np.zeros(env.nS)<br>    ite = 0<br>    while (ite&lt;10000):<br>        delta = 0<br>        for s in range(env.nS):<br>            v = 0<br>            for a, action_prob in enumerate(policy[s]):<br>                for prob, next_state, reward, done in env.P[s][a]:<br>                    v += action_prob * prob * (reward + gamma * V[next_state])<br>            delta = max(delta, np.abs(v - V[s]))<br>            V[s] = v<br>        if delta &lt; theta:<br>            break<br>        ite += 1<br>    return np.array(V)</pre><p>In the above code, env is the Frozen Lake environment, the policy is the current policy, gamma is the discount factor, and theta is the convergence threshold. We start with an initial value function of zeros and loop over the states and actions in the environment. For each state, we calculate the expected reward for each action using the Bellman equation and update the value function for that state. We repeat this process until the value function converges within the specified threshold.</p><p>Once we have the value function, we can use it to improve the policy by selecting the action that leads to the state with the highest value. We can do this by implementing the policy improvement algorithm:</p><pre>def policy_improvement(env, policy_eval_fn=policy_evaluation, gamma=1.0):<br>    def one_step_lookahead(state, V):<br>        A = np.zeros(env.nA)<br>        for a in range(env.nA):<br>            for prob, next_state, reward, done in env.P[state][a]:<br>                A[a] += prob * (reward + gamma * V[next_state])<br>        return A<br><br>    policy = np.zeros([env.nS, env.nA]) / env.nA<br>    ite = 0<br>    while (ite&lt;10000):<br>        V = policy_eval_fn(env, policy, gamma=gamma)<br><br>        policy_stable = True<br>        for s in range(env.nS):<br>            chosen_a = np.argmax(policy[s])<br>            action_values = one_step_lookahead(s, V)<br>            best_a = np.argmax(action_values)<br>            if chosen_a != best_a:<br>                policy_stable = False<br>            policy[s] = np.eye(env.nA)[best_a]<br>        if policy_stable:<br>            return policy, V<br>        ite += 1<br>    return policy, V</pre><p>In the given code, gamma is the discount factor, and theta is the convergence threshold. We start with an initial policy of zeros and loop over the policy evaluation and policy improvement steps until the policy converges into a stable policy that maximizes the expected cumulative reward.</p><p>To see the policy iteration algorithm in action, we can run the following code:</p><pre>def policy_render(env, policy, n=100):<br>    wins = 0<br>    for _ in range(n):<br>        state,_ = env.reset()<br>        done = False<br>        while not done:<br>            action = np.argmax(policy[state])<br>            state, reward, done,_, info = env.step(action)<br>            env.render()<br>            if done and reward == 1:<br>                wins += 1<br>    return wins / n<br><br>env = gym.make(&quot;FrozenLake-v1&quot;,map_name = &quot;4x4&quot;,render_mode=&quot;human&quot;)<br>env.nS = 16<br>env.nA = 4<br>random_policy = np.ones([env.nS, env.nA]) / env.nA<br>v = policy_evaluation(env, random_policy)<br>policy, v = policy_improvement(env)<br>policy_render(env, policy)</pre><p>In the above code, we import the gym library and create an instance of the Frozen Lake environment. We then run the policy iteration algorithm to obtain the optimal policy and print it out.</p><p>Here is a video of the agent solving the Frozen Lake environment using the policy iteration algorithm:</p><p><a href="https://youtube.com/shorts/bc2hyF91s-8?feature=share">Frozen Lake using Policy Improvement</a></p><p>We hope that you found this tutorial helpful in understanding the basics of reinforcement learning and building an agent to solve the Frozen Lake environment using policy evaluation and policy improvement algorithms. If you are interested in learning more about RL, we invite you to stay tuned for more posts where we will cover additional RL techniques and their practical applications. Moreover, if you have any specific environment in mind that you want us to solve using RL, feel free to leave a comment or reach out to us directly. Finally, don’t forget to check out the Open AI Gym website for more RL environments to explore and experiment with!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=187be0207e8c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Sam Walton: Made in America — A Book Review, Yay or Nay?]]></title>
            <link>https://medium.com/@abhijeetvichare76/sam-walton-made-in-america-a-book-review-yay-or-nay-8723a46fd9be?source=rss-40f8ec38a2f1------2</link>
            <guid isPermaLink="false">https://medium.com/p/8723a46fd9be</guid>
            <category><![CDATA[business]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[retail]]></category>
            <category><![CDATA[books]]></category>
            <category><![CDATA[book-review]]></category>
            <dc:creator><![CDATA[Abhijeet Vichare]]></dc:creator>
            <pubDate>Fri, 31 Mar 2023 06:16:22 GMT</pubDate>
            <atom:updated>2023-03-31T06:16:22.411Z</atom:updated>
            <content:encoded><![CDATA[<h3>Sam Walton: Made in America — A Book Review, Yay or Nay?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dmC-yNZZTIsZGlHvyehJqQ.jpeg" /></figure><p>Well, it depends. Sam Walton: Made in America is a real-life story of a guy brought up during the depression era who understood the value of a dollar and who incorporated that into his business.</p><p>He started by opening a Ben Franklin franchise and always came up with ways to give the best deals to customers. He would keep visiting his competitors to see how they were innovating, and he would not shy away from “borrowing” their ideas and implementing them in his own stores.</p><blockquote>With the possible exception of Henry Ford, Sam Walton is the entrepreneur of the century. <br>— Tom Peter, co-author of In the Search of Excellence</blockquote><p>Sam Walton’s generation brought the idea of heavy discounting and creating super stores. When Walmart was expanding, Sam would buy the cheapest planes and travel across stores, and scout new locations. The way he described the experiences made me want to get a pilot’s license just for the thrill of it. The way Sam would describe his attitude toward solving problems motivated me to get out of my slumps and start working harder.</p><p>Sam Walton was not without his flaws in running a business, and he was honest and open about them. One of his shortcomings was his sporadic nature. He had a habit of scheduling meetings but failing to show up. However, this trait also had its benefits, as it allowed him to be adaptable and tackle new problems. When he became fixated on an issue, he devoted all of his energy to it, ultimately finding a solution.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*JI8oT-tW6f0aLaV6" /><figcaption>Photo by <a href="https://unsplash.com/es/@daveballew?utm_source=medium&amp;utm_medium=referral">David Ballew</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Walmart was one of the first employers to offer stock. During the early days of Walmart, Sam would allow branch managers to buy a percentage of the profits of the stores they were managing. As the company became closer to the mammoth it currently is, it started to offer stock options to its associates too. This and other efforts such as listening to everyone’s ideas, and letting ideas bubble up to the top, were a great way to make everyone in the company feel included.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*EycwZi1qUsIrTJKy" /><figcaption>Photo by <a href="https://unsplash.com/@helloimnik?utm_source=medium&amp;utm_medium=referral">Nik</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>When I read The Everything Store, a book about Amazon’s journey, I came across a section that compared Amazon and Walmart’s technological advancements. The book made it sound like Amazon was on GPT-4 while Walmart was still using linear regression. However, the book Sam Walton: Made in America, correctly points out that during the 1960s and 1970s, Walmart was the pioneer of that time. While Sam was initially reluctant to invest in technology, Walmart implemented ideas such as barcodes, SKUs, and satellite internet to stay updated on all stores. These advancements were revolutionary for their time and helped Walmart maintain its competitive edge. Even though Sam’s descriptions of analytics in the book might sound outdated compared to current times, they were exemplary for the time period.</p><p>There are a ton of parallels between the philosophies of Amazon and Walmart such as being frugal, bias towards action, and customer obsession, and both of these conglomerates are, in a lot of sense, similar.</p><p>Sam Walton loved his profession, his family, and his team, and this book beautifully illustrates his life and legacy. If you are interested in reading about a man who hustled his way to become the richest man in America, I think this book would definitely be a yay for you.</p><p>If you enjoyed reading this post, please give it a clap to show your appreciation. Also, feel free to follow my page for more book reviews and other interesting content. Your support means a lot and it motivates me to continue sharing valuable insights and information.</p><p>Thank you again for reading, and I hope to see you soon with more exciting content!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8723a46fd9be" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My journey to completing the Blind 75 List on Leetcode and improving my coding skills for Data…]]></title>
            <link>https://medium.com/@abhijeetvichare76/my-journey-to-completing-the-blind-75-list-on-leetcode-and-improving-my-coding-skills-for-data-44fefb70c419?source=rss-40f8ec38a2f1------2</link>
            <guid isPermaLink="false">https://medium.com/p/44fefb70c419</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[leetcode]]></category>
            <category><![CDATA[python-programming]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[interview]]></category>
            <dc:creator><![CDATA[Abhijeet Vichare]]></dc:creator>
            <pubDate>Tue, 28 Mar 2023 17:48:06 GMT</pubDate>
            <atom:updated>2023-03-28T17:48:06.814Z</atom:updated>
            <content:encoded><![CDATA[<h3>My journey to completing the Blind 75 List on Leetcode and improving my coding skills for Data Science</h3><p>As a seasoned Data Scientist, I knew the importance of being proficient in coding. Thus, I set a goal to complete the Blind 75 List on Leetcode, which covers most of the data structures needed for a Data Scientist’s job. In the process, I also discovered my interest in the engineering side of Data Science and Machine Learning Engineering roles. In this article, I will share my journey of completing the Blind 75 List and some valuable lessons I learned along the way.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X7s2Wo3VgQBNPKl_bKhzbA.jpeg" /></figure><h4>Mastering Data Structures: A Must for Every Data Scientist</h4><blockquote>The Blind 75 List — A Comprehensive List of Data Structures</blockquote><p>The Blind 75 List on Leetcode is a comprehensive list of data structures that every Data Scientist should know. It covers everything from arrays, linked lists, trees, graphs, and many more. Completing this list helped me gain confidence in my ability to manipulate data and write efficient algorithms.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FJWuBH9rCO2uZuHBFpm%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2FGiflytics-JWuBH9rCO2uZuHBFpm&amp;image=https%3A%2F%2Fmedia1.giphy.com%2Fmedia%2Fv1.Y2lkPTc5MGI3NjExNzlhZDBlODRiYzhmZjQ4ZGU5MDA2MTYxN2I1MzA2YjE3MzMyMTQyYSZjdD1n%2FJWuBH9rCO2uZuHBFpm%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="435" frameborder="0" scrolling="no"><a href="https://medium.com/media/7bd6861134f3d587cdf9e1f6d646dc0a/href">https://medium.com/media/7bd6861134f3d587cdf9e1f6d646dc0a/href</a></iframe><h4>Small Optimizations Can Make a Big Difference</h4><blockquote>Mastering Python Methods — enumerate, defaultdict, Counter, and LRU Cache</blockquote><p>Python has some built-in methods that can optimize code and make it more efficient. These include enumerate, defaultdict, Counter, and LRU Cache. They help you to write the code in a more “Pythonic” way. Learning and implementing these methods can improve code speed and reduce memory usage.</p><h4>Learning New Data Structures to Solve Complex Problems</h4><blockquote>The Trie Data Structure — A New Addition to My Toolbox</blockquote><p>As I progressed through the Blind 75 List, I encountered new and complex problems that required me to learn new data structures such as the Trie. This data structure helped me solve problems related to searching and autocomplete, which are essential in many real-world applications. I can imagine myself using trie for multiple NLP applications. <br>Graphs: Graphs are used in recommendation systems to model user-item interactions and to identify clusters of similar users or items. They can also be used in social media analysis to identify influential users and communities.<br>Here are some more data structures that you might practice in the Blind 75 list which are extremely useful when dealing with data science solutions:</p><ol><li>Heaps: Heaps are used in natural language processing to find the most frequently occurring words or phrases in a text corpus. They can also be used in data compression to efficiently encode and decode data.</li><li>Linked Lists: Linked Lists are used in machine learning algorithms such as linear regression to store data points and update model parameters. They can also be used in decision trees to represent the branching structure of the tree.</li><li>Queues: Queues are used in data processing pipelines to ensure that data is processed in the correct order. They can also be used in time series analysis to model events that occur over time.</li><li>Sets: Sets are used in data cleaning and preprocessing tasks to remove duplicates and identify unique values. They can also be used in anomaly detection to identify data points that deviate from the expected pattern.</li></ol><h4>There’s More Than One Way to Solve a Problem</h4><blockquote>The Importance of Exploring Multiple Solutions</blockquote><p>There are many ways to solve a problem, and it’s crucial to explore different solutions to understand the trade-offs between speed and memory. I would attempt the first solution that came to my mind to get acquainted with coding ideas. Then, I would optimize the code and try different approaches. I also learned from other solutions in the editorial, discussion sections, and solution bars, which expanded my thinking.</p><h4>Managing Time and Staying Consistent</h4><blockquote>Consistency is Key to Achieving Goals</blockquote><p>Completing the Blind 75 List was no small feat, but I managed to do it while juggling other tasks. I set a fixed time to solve questions — first thing in the morning. I would do multiple easy/medium questions a day and stick to one hard question a day. Consistency is the key to achieving any goal.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2F3orieQVOJqFhAD0Gf6%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2Fseason-17-the-simpsons-17x2-3orieQVOJqFhAD0Gf6&amp;image=https%3A%2F%2Fmedia2.giphy.com%2Fmedia%2Fv1.Y2lkPTc5MGI3NjExYzJmNmYyN2NiZTdlMDVhN2E0MjE1YTU0ZDg4ODYwZTZhNmU5YTA1NSZjdD1n%2F3orieQVOJqFhAD0Gf6%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="328" frameborder="0" scrolling="no"><a href="https://medium.com/media/5dbb75bd29ba5e45187f883de26b09ec/href">https://medium.com/media/5dbb75bd29ba5e45187f883de26b09ec/href</a></iframe><p>Completing the Blind 75 List on Leetcode was a great learning experience that helped me improve my coding skills and discover my interest in Machine Learning Engineering. I encourage every Data Scientist to take on this challenge and keep striving to learn new skills.</p><p>So, if you found this article helpful or informative, please like and share it with others who might benefit from it. And don’t forget to follow me for more updates on data science, machine learning, and programming!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=44fefb70c419" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Publish Your Flask App on PythonAnywhere]]></title>
            <link>https://medium.com/@abhijeetvichare76/how-to-publish-your-flask-app-on-pythonanywhere-f081b3f23fd1?source=rss-40f8ec38a2f1------2</link>
            <guid isPermaLink="false">https://medium.com/p/f081b3f23fd1</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[website]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[flask]]></category>
            <dc:creator><![CDATA[Abhijeet Vichare]]></dc:creator>
            <pubDate>Tue, 28 Mar 2023 01:33:42 GMT</pubDate>
            <atom:updated>2023-03-28T01:38:44.700Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j2pQ3mz9hSxcysbR3iyiXA.jpeg" /></figure><p>Welcome back! In the previous article, we showed you how to create a Flask app that displays a live map on a webpage using Folium. Now that you have your Flask app up and running on your local machine, it’s time to take the next step and make it accessible to the world. In this tutorial, we’ll show you how to publish your Flask app on PythonAnywhere, a popular platform for hosting Python web applications. By the end of this tutorial, you’ll have your Flask app live on the internet, ready for anyone to access and interact with your live map. So let’s get started!</p><p><a href="https://medium.com/@abhijeetvichare76/publishing-live-maps-on-the-internet-using-python-with-folium-and-flask-5cb41116b178">Publishing Live Maps on the Internet using Python with Folium and Flask</a></p><p>Step 1: Create a PythonAnywhere account</p><p>First, you need to create a PythonAnywhere account. Go to the PythonAnywhere website and sign up for a free account. Once you’ve created an account, you’ll be taken to the dashboard.</p><p><a href="https://www.pythonanywhere.com/">Host, run, and code Python in the cloud: PythonAnywhere</a></p><p>Step 2: Upload your Flask app files</p><p>Next, you need to press on the Web Tab and create a new Web app by pressing the “Add a new web app” button. While creating the app, you’ll be asked to add the dev environment and the python version you would like to use when deploying the app. Select Flask for the dev environment. For reliability issues, I would suggest using the Python version that you’ve used on your local system to develop the app.</p><p>Once you have created the web app, the location of the folder for your web app should be “/home/{user}/mysite”. Replicate the folder with the folder structure you have on your local setup.</p><p>Step 3: Create a virtual environment</p><p>To ensure that your Flask app runs smoothly on PythonAnywhere, you need to create a virtual environment with all the necessary dependencies. Click on the “Consoles” tab and then open a new Bash console.</p><p>In the console, navigate to your Flask app directory and create a new virtual environment by running the following command:</p><pre>$ virtualenv --python=/usr/bin/python3.8 myenv</pre><p>Replace “myenv” with the name of your virtual environment. Activate the virtual environment by running:</p><pre>$ source myenv/bin/activate</pre><p>Step 4: Install dependencies</p><p>Next, you need to install all the dependencies for your Flask app. Use pip to install the required packages by running the following command:</p><pre>$ pip install -r requirements.txt</pre><p>Make sure to include a requirements.txt file in your Flask app directory that lists all the required dependencies.</p><p>For example, here’s how the requirements.txt file should look like:</p><pre>Flask==2.2.2<br>folium==0.14.0</pre><p>Step 5: Launch your Flask app</p><p>Once you’ve completed all the steps above, you’re ready to launch your Flask app on PythonAnywhere. Click on the “Reload” button on the “Web” tab to apply your changes, and then click on the link to your Flask app to launch it.</p><p>Congratulations! You’ve successfully published your Flask app on PythonAnywhere and made it accessible on the internet. Now anyone can access your live map and interact with your data.</p><p>Note that these steps can be followed to host any Python website online, not just Flask apps. PythonAnywhere is a versatile platform that supports various web frameworks and applications.</p><p>In conclusion, hosting your Python website on PythonAnywhere is an easy and affordable way to share your projects with the world. We hope this tutorial has been helpful in guiding you through the process of publishing your Flask app.</p><p>If you found this blog post useful, make sure to like and subscribe to our page for more such tutorials on Python, data visualization, and web development.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f081b3f23fd1" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>