<?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 Vishal Patil on Medium]]></title>
        <description><![CDATA[Stories by Vishal Patil on Medium]]></description>
        <link>https://medium.com/@vpatil12?source=rss-2d906d109afb------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Stories by Vishal Patil on Medium</title>
            <link>https://medium.com/@vpatil12?source=rss-2d906d109afb------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 21:59:11 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@vpatil12/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[Top 25 Generative AI Interview Questions with Answers]]></title>
            <link>https://medium.com/@vpatil12/top-25-generative-ai-interview-questions-with-answers-d749457247e4?source=rss-2d906d109afb------2</link>
            <guid isPermaLink="false">https://medium.com/p/d749457247e4</guid>
            <category><![CDATA[genai]]></category>
            <category><![CDATA[interview]]></category>
            <category><![CDATA[top-25]]></category>
            <category><![CDATA[generative-ai-tools]]></category>
            <category><![CDATA[llm]]></category>
            <dc:creator><![CDATA[Vishal Patil]]></dc:creator>
            <pubDate>Sun, 16 Feb 2025 13:01:58 GMT</pubDate>
            <atom:updated>2025-02-16T13:03:37.266Z</atom:updated>
            <content:encoded><![CDATA[<p>Mastering LLMs: Your Go-To Interview Prep! 🚀</p><p>Are you gearing up for your next big interview in the world of large language models (LLMs)?</p><p>I’ve compiled “Top 25 LLM Interview Questions” along with detailed answers to help you ace it! 🧠✨ This PDF is designed to:<br>✅ Sharpen your understanding of LLM concepts<br>✅ Prepare you for technical deep dives<br>✅ Boost your confidence for real-world problem-solving<br>From my experience working with LLMs , these questions target the core aspects interviewers often focus on.</p><p>I’m providing the PDF for free, as I believe knowledge should be shared to empower professionals like you.<br>If you find this resource useful, I’d encourage you to follow me for more insights, practical guides, and resources on LLMs, AI, and data science. Let’s connect, learn, and grow together in this ever-evolving field.<br>Feel free to drop your thoughts or questions in the comments — I’d love to hear from you!<br> 💡</p><p>Download the pdf from below link</p><p><a href="https://www.linkedin.com/posts/vishalpatil134_top-25-llm-interview-questions-2025-activity-7280017396222840832-9w7p?utm_source=share&amp;utm_medium=member_desktop&amp;rcm=ACoAADXxNYcBwWMAbx_aRi1bojF_yZ1bw-1acIQ">https://www.linkedin.com/posts/vishalpatil134_top-25-llm-interview-questions-2025-activity-7280017396222840832-9w7p?utm_source=share&amp;utm_medium=member_desktop&amp;rcm=ACoAADXxNYcBwWMAbx_aRi1bojF_yZ1bw-1acIQ</a></p><p>Follow me <a href="https://www.linkedin.com/in/vishalpatil134/">Vishal Patil</a><br>(<a href="https://lnkd.in/dnYi4ZuW">https://lnkd.in/dnYi4ZuW</a>)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d749457247e4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why AI Agents Matter: The Next Step in AI Evolution]]></title>
            <link>https://medium.com/@vpatil12/why-ai-agents-matter-the-next-step-in-ai-evolution-e9cc1fbbdaf9?source=rss-2d906d109afb------2</link>
            <guid isPermaLink="false">https://medium.com/p/e9cc1fbbdaf9</guid>
            <category><![CDATA[genai]]></category>
            <category><![CDATA[generative-ai-tools]]></category>
            <category><![CDATA[agents]]></category>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[ai-agent]]></category>
            <dc:creator><![CDATA[Vishal Patil]]></dc:creator>
            <pubDate>Sun, 16 Feb 2025 12:45:05 GMT</pubDate>
            <atom:updated>2025-02-16T12:45:05.172Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hUAHR_bqv_y2AZh1ocP7Dw.png" /><figcaption>Created with Dall-E</figcaption></figure><h3>Introduction to AI Agents</h3><p>Artificial Intelligence (AI) agents have become an integral part of modern technology, enabling machines to interact intelligently with their environment. From simple rule-based systems to advanced autonomous agents, the evolution of AI agents is a testament to the progress in computational intelligence. But what exactly are AI agents, and how do they work? Let’s explore this concept, starting from the basics.</p><h3>What Are AI Agents?</h3><p>An AI agent is an entity capable of perceiving its environment through sensors and acting upon it using actuators to achieve specific goals. These agents operate autonomously or semi-autonomously and are designed to perform tasks ranging from simple data processing to complex decision-making.</p><p>Key elements of an AI agent:</p><ol><li><strong>Perception</strong>: The ability to sense the environment using various input sources (e.g., cameras, sensors, or data streams).</li><li><strong>Decision-Making</strong>: Employing algorithms or models to process information and decide on the next action.</li><li><strong>Action</strong>: Executing tasks based on decisions made, often through actuators or software commands.</li></ol><h3>Architecture of AI Agents</h3><p>AI agents are built using a modular architecture that typically includes the following components:</p><p><strong>Sensing and Perception</strong>:</p><ul><li>Collects data from the environment using sensors or input APIs.</li><li>Includes preprocessing methods to clean and structure data.</li></ul><ol><li><strong>Knowledge Base</strong>:</li></ol><ul><li>Stores relevant information about the environment or task.</li><li>May use databases, ontologies, or machine learning models.</li></ul><p><strong>2. Reasoning and Planning</strong>:</p><ul><li>Processes information using AI techniques such as inference engines, search algorithms, or reinforcement learning.</li><li>Develops strategies to achieve goals based on current state and objectives.</li></ul><p><strong>3. Actuation</strong>:</p><ul><li>Executes actions, such as moving a robotic arm, sending a response, or triggering a system event.</li></ul><p><strong>4. Learning Module</strong>:</p><ul><li>Allows the agent to improve its performance over time using supervised, unsupervised, or reinforcement learning techniques.</li></ul><h3>How Does an AI Agent Work?</h3><p>AI agents operate in a cycle known as the <strong>Perceive-Think-Act</strong> loop:</p><ol><li><strong>Perceive</strong>: Gather data from the environment (e.g., images, text, or sensor readings).</li><li><strong>Think</strong>: Process the data using reasoning or learning algorithms to decide on an action.</li><li><strong>Act</strong>: Execute the action in the environment to influence outcomes.</li></ol><p>This loop enables agents to operate continuously and adapt to changing environments.</p><h3>Characteristics of AI Agents</h3><p>AI agents exhibit the following characteristics:</p><ol><li><strong>Autonomy</strong>: Operate independently without constant human supervision.</li><li><strong>Reactivity</strong>: Respond to changes in the environment in real time.</li><li><strong>Proactiveness</strong>: Take initiative to achieve goals.</li><li><strong>Social Ability</strong>: Communicate and collaborate with other agents or humans.</li><li><strong>Adaptability</strong>: Learn from experiences and improve performance.</li><li><strong>Goal-Oriented Behavior</strong>: Focus on achieving defined objectives.</li></ol><h3>Advantages of AI Agents</h3><ol><li><strong>Automation</strong>: AI agents can handle repetitive tasks efficiently.</li><li><strong>Scalability</strong>: Capable of processing large volumes of data simultaneously.</li><li><strong>Adaptability</strong>: Learn and adapt to new environments or tasks.</li><li><strong>Accuracy</strong>: Reduce human errors by making data-driven decisions.</li><li><strong>Cost Efficiency</strong>: Long-term operational savings through automation.</li></ol><h3>Applications of AI Agents</h3><p>AI agents have a wide range of applications across industries, including:</p><ul><li><strong>Customer Support</strong>: Chatbots and virtual assistants like Siri or Alexa.</li><li><strong>Healthcare</strong>: Diagnosis systems and patient management tools.</li><li><strong>Autonomous Vehicles</strong>: Self-driving cars using perception and decision-making.</li><li><strong>Gaming</strong>: NPCs (non-player characters) with intelligent behavior.</li><li><strong>Finance</strong>: Algorithmic trading and fraud detection.</li></ul><h3>How Do AI Agents Differ from LLMs?</h3><p>Large Language Models (LLMs), such as GPT, are a subset of AI that focus on understanding and generating human-like language. While both AI agents and LLMs utilize AI techniques, they differ significantly:</p><p><strong>1 Purpose</strong>:</p><ul><li>AI Agents: Broad range of tasks, including perception, reasoning, and action.</li><li>LLMs: Primarily focused on natural language processing (NLP).</li></ul><p><strong>2 Components</strong>:</p><ul><li>AI Agents: Include sensors, actuators, and decision-making modules.</li><li>LLMs: Typically consist of neural networks optimized for language tasks.</li></ul><p><strong>3. Autonomy</strong>:</p><ul><li>AI Agents: Can act independently in dynamic environments.</li><li>LLMs: Require external prompts to generate responses.</li></ul><p><strong>4. Applications</strong>:</p><ul><li>AI Agents: Found in robotics, automation, and dynamic decision-making.</li><li>LLMs: Used in text-based applications like chatbots, summarization, and translation.</li></ul><h3>Conclusion</h3><p>AI agents represent a significant leap in artificial intelligence, offering a framework for machines to interact, learn, and evolve in complex environments. By understanding their architecture, characteristics, and applications, we can appreciate their potential to revolutionize industries and improve lives. With advancements in AI, the future of autonomous and intelligent systems looks brighter than ever.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e9cc1fbbdaf9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Essentials of Prompt Engineering: Making AI Work for You]]></title>
            <link>https://medium.com/@vpatil12/the-essentials-of-prompt-engineering-making-ai-work-for-you-b6af4eb24cdd?source=rss-2d906d109afb------2</link>
            <guid isPermaLink="false">https://medium.com/p/b6af4eb24cdd</guid>
            <category><![CDATA[chatgpt]]></category>
            <category><![CDATA[prompt-engineering]]></category>
            <category><![CDATA[prompt]]></category>
            <category><![CDATA[genarative-ai]]></category>
            <category><![CDATA[genai]]></category>
            <dc:creator><![CDATA[Vishal Patil]]></dc:creator>
            <pubDate>Fri, 21 Jun 2024 05:50:29 GMT</pubDate>
            <atom:updated>2024-06-21T05:50:29.489Z</atom:updated>
            <content:encoded><![CDATA[<p>In the world of artificial intelligence (AI) and natural language processing (NLP), prompt engineering has emerged as a crucial field. If you’ve ever wondered how computers can understand and respond to human language, prompt engineering is a big part of the answer. This blog will walk you through the basics of prompt engineering, its principles, key elements, and its significance, as well as what the future holds for this exciting field.</p><h3>What is Prompt Engineering?</h3><p>At its core, prompt engineering is the practice of designing and refining prompts — input text — that guide AI models, like ChatGPT, to produce desired responses. Think of it as crafting the right questions or statements to get the best possible answers from an AI system.</p><h3>What is a Prompt?</h3><p>A prompt is essentially the text you provide to an AI model to get a response. It can be a question, a statement, or a command. For example, if you type “Tell me a joke,” the phrase “Tell me a joke” is the prompt, and the AI’s response is generated based on that prompt.</p><h3>Principles of Prompting</h3><ul><li><strong>Clarity:</strong> Make your prompts clear and specific. Ambiguity can lead to confusing or irrelevant answers.</li><li><strong>Relevance:</strong> Ensure the prompt is relevant to the information you seek. The more on-topic it is, the better the response.</li><li><strong>Simplicity:</strong> Keep it simple. Overly complex prompts can confuse the AI.</li><li><strong>Context:</strong> Providing context can help the AI understand what you’re asking. For example, “Tell me a joke about cats” gives more direction than just “Tell me a joke.”</li></ul><h3>Key Elements of a Prompt</h3><ul><li><strong>Instruction:</strong> What you want the AI to do (e.g., “Explain,” “Describe,” “List”).</li><li><strong>Context:</strong> Background information to guide the AI (e.g., “In the context of quantum physics…”).</li><li><strong>Format:</strong> The structure you want the answer in (e.g., “In bullet points,” “In a short paragraph”).</li><li><strong>Constraints:</strong> Any limitations or specific requirements (e.g., “In less than 100 words,” “Using layman’s terms”).</li></ul><h3>How Prompt Engineering Works</h3><p>Prompt engineering involves several steps:</p><ol><li><strong>Defining the Goal:</strong> What do you want to achieve with your prompt? For example, extracting specific information, generating creative content, or providing explanations.</li><li><strong>Crafting the Prompt:</strong> Using the principles of clarity, relevance, simplicity, and context to design the prompt.</li><li><strong>Testing and Refining:</strong> Trying out the prompt with the AI, analyzing the results, and making adjustments as needed.</li><li><strong>Iterating:</strong> Repeating the process until the AI consistently produces the desired outcome.</li></ol><h3>Technical Skills for Prompt Engineering</h3><p>While prompt engineering is accessible, having certain technical skills can enhance your effectiveness:</p><ul><li><strong>Understanding AI Models:</strong> Knowing how different AI models work helps in crafting better prompts.</li><li><strong>Data Analysis:</strong> Ability to analyze the AI’s responses to improve future prompts.</li><li><strong>Programming Skills:</strong> Basic knowledge of programming, especially Python, can be useful for integrating and testing prompts within AI systems.</li><li><strong>Domain Knowledge:</strong> Expertise in the subject area you’re working with helps in creating more accurate and effective prompts.</li></ul><h3>Non-technical Skills for Prompt Engineering</h3><ul><li><strong>Communication:</strong> Effectively conveying ideas, collaborating with teams, and understanding user needs.</li><li><strong>Subject Matter Expertise:</strong> Possessing domain-specific knowledge relevant to the application.</li><li><strong>Language Proficiency:</strong> Mastery of language, grammar, and semantics to craft precise and effective prompts.</li><li><strong>Critical Thinking:</strong> Evaluating model outputs, identifying biases, and ensuring ethical AI practices.</li><li><strong>Creativity:</strong> Thinking outside the box, experimenting with new prompt styles, and innovating solutions.</li></ul><h3>Advanced Prompt Engineering Strategies</h3><ul><li><strong>Zero-Shot Prompting:</strong> Involves giving the AI a task or question without any prior examples. This relies on the AI’s pre-existing knowledge to generate a response</li><li><strong>Few-Shot Learning:</strong> Providing the AI with a few examples of the desired outcome to improve its responses.</li><li><strong>Chain of Thought Prompting:</strong> Breaking down complex queries into simpler, sequential prompts to guide the AI through logical steps.</li><li><strong>Contextual Prompts:</strong> Using detailed background information to improve the accuracy of the AI’s responses.</li><li><strong>Multi-Turn Prompting:</strong> Engaging the AI in a back-and-forth conversation to refine and clarify responses.</li></ul><h3>Significance of Prompt Engineering</h3><p>Prompt engineering is significant because it enhances the usability and effectiveness of AI systems. It allows non-experts to interact with complex AI models and get meaningful, accurate responses. This democratizes access to AI technology, making it useful across various fields, from customer service to healthcare.</p><h3>The Future of Prompt Engineering</h3><p>As AI continues to evolve, so will prompt engineering. Future developments might include:</p><ul><li><strong>More Sophisticated AI Models:</strong> Better models that require less prompting and understand context more deeply.</li><li><strong>Automated Prompt Generation:</strong> AI systems that can generate and refine their own prompts.</li><li><strong>Cross-Disciplinary Applications:</strong> Wider use of AI prompting in diverse fields such as law, education, and creative arts.</li><li><strong>Enhanced Accessibility:</strong> Tools and interfaces that make prompt engineering more user-friendly for everyone.</li></ul><h3>In Summary</h3><p>Prompt engineering is a vital skill in the age of AI, enabling us to harness the power of AI models more effectively. By understanding and applying the principles and strategies of prompt engineering, we can improve our interactions with AI and unlock its full potential.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b6af4eb24cdd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introduction to Generative AI and Large Language Models (LLMs)]]></title>
            <link>https://medium.com/@vpatil12/introduction-to-generative-ai-and-large-language-models-llms-5b7ea0428900?source=rss-2d906d109afb------2</link>
            <guid isPermaLink="false">https://medium.com/p/5b7ea0428900</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[genai]]></category>
            <category><![CDATA[chatgpt]]></category>
            <dc:creator><![CDATA[Vishal Patil]]></dc:creator>
            <pubDate>Mon, 17 Jun 2024 13:52:03 GMT</pubDate>
            <atom:updated>2024-06-17T13:52:03.893Z</atom:updated>
            <content:encoded><![CDATA[<p>AI (Artificial Intelligence) has made huge progress recently, changing many industries and our daily lives. Two of the most exciting advancements in AI are Generative AI and Large Language Models (LLMs). These technologies have transformed how we interact with machines, creating new possibilities for creativity, automation, and problem-solving. In this blog post, we’ll explain the basics of Generative AI and LLMs, their uses, and their potential impact on the future.</p><h3>What is Generative AI?</h3><p>Generative AI is a type of AI that creates new content based on the data it has learned from. Unlike traditional AI, which focuses on sorting and predicting, Generative AI makes new data that looks similar to what it was trained on. This can include text, images, music, and even virtual worlds.</p><h3>Key Concepts in Generative AI</h3><ol><li>Generative Models: These are the heart of Generative AI. They learn patterns in the input data and generate new, similar data. Examples include Generative Adversarial Networks (GANs) and Variational Autoencoders (VAEs).</li><li>Training Data: The quality and variety of the training data greatly affect what the generative model produces. For example, a model trained on classical music will create music in a classical style.</li><li>Applications: Generative AI can be used in many fields, including creating art, composing music, discovering new drugs, and designing new materials.</li></ol><h3>Introduction to Large Language Models (LLMs)</h3><p>LLMs are a type of Generative AI that focuses on language. These models are designed to understand, generate, and work with human language in a way that makes sense and fits the context. Some well-known examples are OpenAI’s GPT (Generative Pre-trained Transformer) series, with GPT-4 being one of the latest versions.</p><h3>How LLMs Work</h3><p>LLMs use neural networks, especially transformers, which handle sequences of data like text. They are pre-trained on vast amounts of text data from many sources, allowing them to learn grammar, facts about the world, and some reasoning skills. After pre-training, they can be fine-tuned for specific tasks or topics.</p><h3>Key Features of LLMs</h3><ol><li>Language Understanding: LLMs can understand and generate text that is correct and makes sense in context. They can answer questions, summarize information, and write essays or articles.</li><li>Versatility: LLMs can be used for many natural language processing (NLP) tasks, like translation, sentiment analysis, and creating chatbots.</li><li>Scalability: Modern LLMs can be very large, with billions of parameters, helping them capture detailed patterns and nuances in language.</li></ol><h3>Applications of LLMs</h3><ol><li>Content Creation: LLMs can generate human-like text for blogs, articles, ads, and social media posts.</li><li>Customer Support: Chatbots powered by LLMs provide efficient and accurate customer support, handling a wide range of questions and issues.</li><li>Education: LLMs can help create personalized learning experiences by generating educational content and providing tutoring.</li><li>Healthcare: In healthcare, LLMs can help summarize medical records, generate clinical notes, and even offer diagnostic suggestions.</li></ol><h3>Potential Impact and Future Prospects</h3><p>Generative AI and LLMs have a huge impact and continue to grow. These technologies can boost human creativity, improve efficiency in various industries, and solve complex problems. However, they also come with challenges, such as ethical concerns, potential biases, and the need for good regulations.</p><h3>Ethical Considerations</h3><ol><li>Bias and Fairness: LLMs can unintentionally continue biases from their training data. Ensuring fairness and reducing bias is essential for ethical AI use.</li><li>Privacy: Using large datasets raises concerns about privacy and data security. Protecting user data is crucial.</li><li>Misuse: The power of these models can be misused to create fake content, spread misinformation, and other harmful activities. Setting guidelines and monitoring use is important to prevent misuse.</li></ol><h3>The Road Ahead</h3><p>As Generative AI and LLMs keep improving, we can expect even more advanced models with better capabilities. Cooperation between researchers, policymakers, and industry leaders will be key to getting the benefits while addressing the challenges. With responsible development, these technologies can greatly contribute to society and enhance our quality of life.</p><h3>Conclusion</h3><p>Generative AI and Large Language Models represent a major leap in artificial intelligence. Their ability to create and understand complex data opens up new avenues for innovation and solving problems. As we explore their opportunities and challenges, it’s important to focus on ethical considerations and societal impact. The future of AI is promising, and with careful management, Generative AI and LLMs can help create a better world.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5b7ea0428900" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Exploring Data with Ease: An Introduction to Pandas Profiling]]></title>
            <link>https://medium.com/@vpatil12/exploring-data-with-ease-an-introduction-to-pandas-profiling-6039587247f9?source=rss-2d906d109afb------2</link>
            <guid isPermaLink="false">https://medium.com/p/6039587247f9</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[pandas-profiling]]></category>
            <category><![CDATA[exploratory-data-analysis]]></category>
            <category><![CDATA[eda]]></category>
            <dc:creator><![CDATA[Vishal Patil]]></dc:creator>
            <pubDate>Mon, 17 Jul 2023 13:18:30 GMT</pubDate>
            <atom:updated>2023-07-17T13:25:00.784Z</atom:updated>
            <content:encoded><![CDATA[<h4>Also Known as ydata-profiling (<a href="https://pypi.org/project/ydata-profiling/">https://pypi.org/project/ydata-profiling</a>)</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/575/1*28qIL158xnJWyMkPQQqPkQ.png" /></figure><p><strong><em>Introduction</em></strong></p><p>Data analysis is a fundamental aspect of any data-driven organization or individual. As datasets continue to grow in size and complexity, it becomes increasingly challenging to understand their structure, uncover patterns, and gain valuable insights efficiently. To address this challenge, the Python data manipulation library Pandas offers a powerful tool called &quot;Pandas Profiling.&quot; This tool simplifies the data exploration process, providing comprehensive insights into the dataset&#39;s characteristics with just a few lines of code.</p><p>In this blog post, we will introduce you to Pandas Profiling, explain its functionalities, and demonstrate how to use it to generate insightful reports about your datasets.</p><p><strong><em>What is Pandas Profiling?</em></strong></p><p>Pandas Profiling is an open-source Python library that automates the process of data exploration and descriptive analysis. It generates an interactive HTML report with a wide range of statistics and visualizations, offering a holistic overview of the dataset&#39;s composition. By utilizing Pandas Profiling, data analysts and data scientists can save valuable time while still obtaining valuable insights into their data.</p><p><strong><em>Key Features of Pandas Profiling:</em></strong></p><ol><li><strong>Quick Overview:</strong> Pandas Profiling provides a high-level summary of the dataset, including the number of missing values, data types, and various statistical measures like mean, median, standard deviation, and more.</li><li><strong>Data Type Inference:</strong> The library automatically infers data types for each column in the dataset, making it easier to identify potential data type mismatches or errors.</li><li><strong>Descriptive Statistics:</strong> Pandas Profiling presents descriptive statistics for numeric columns, such as quartiles, percentiles, and correlations, providing a better understanding of the data distribution.</li><li><strong>Categorical Analysis:</strong> For categorical columns, the library displays the unique values, their frequency distribution, and bar plots, helping identify the most common categories.</li><li><strong>Missing Value Analysis:</strong> The tool highlights columns with missing values and provides insights into their distribution, which is essential for data preprocessing.</li><li><strong>Correlation Analysis:</strong> Pandas Profiling generates a correlation matrix and heatmap, allowing users to quickly spot significant correlations between numeric variables.</li><li><strong>Visualizations:</strong> The report includes various interactive visualizations, such as histograms, scatter plots, box plots, and density plots, providing a rich graphical representation of the data.</li></ol><p><strong>How to Use Pandas Profiling?</strong></p><p><strong>Step 1: Install Pandas Profiling</strong></p><p>To begin using Pandas Profiling, you first need to install the library. You can do this via pip:</p><pre>pip install pandas-profiling</pre><p><strong>Step 2: Import Required Libraries</strong></p><p>Next, import the necessary libraries, including Pandas and Pandas Profiling:</p><pre>import pandas as pd<br>from pandas_profiling import ProfileReport</pre><p><strong>Step 3: Load and Profile the Dataset</strong></p><p>Load your dataset using Pandas and pass it to the Pandas Profiling ProfileReport function:</p><pre># Load the dataset using Pandas<br>data = pd.read_csv(&#39;your_dataset.csv&#39;)<br><br># Generate the report<br>profile = ProfileReport(data)</pre><p><strong>Step 4: Generate the HTML Report</strong></p><p>To generate the report, use the to_file() method and provide the desired output file name:</p><pre>profile.to_file(&quot;data_report.html&quot;)</pre><p><strong>Step 5: Explore the Report</strong></p><p>Open the generated data_report.html file in your web browser to explore the interactive report. The report offers a comprehensive overview of the dataset, allowing you to dive into each feature&#39;s details and visualizations.</p><p><strong>Conclusion</strong></p><p>Pandas Profiling is a powerful tool that significantly simplifies the process of data exploration and descriptive analysis. By generating comprehensive reports with interactive visualizations and statistics, it enables data analysts and scientists to gain valuable insights into their datasets quickly. This makes it an indispensable tool for any Python-based data analysis project.</p><p>Whether you are dealing with small or large datasets, Pandas Profiling can help you save time, identify data issues, and make better-informed decisions based on a deeper understanding of your data. So, start integrating Pandas Profiling into your data analysis workflow and harness the full potential of your datasets. Happy analyzing!</p><p><strong><em>Check this GitHub repo for code and sample output for the tips dataset</em></strong></p><p><a href="https://github.com/Vishal1180/Pandas_profiling">GitHub - Vishal1180/Pandas_profiling: Also know as ydata_profiling</a></p><h4>Claps, please……..! Kindly follow for such amazing readings.</h4><h4>👉👉👉👉<a href="https://medium.com/@vpatil12">https://medium.com/@vpatil12</a></h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6039587247f9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Step by Step Guide to OpenAI Fine Tune Model]]></title>
            <link>https://medium.com/@vpatil12/question-answer-bot-using-openai-fine-tune-model-12d9f917a074?source=rss-2d906d109afb------2</link>
            <guid isPermaLink="false">https://medium.com/p/12d9f917a074</guid>
            <category><![CDATA[chatgpt]]></category>
            <category><![CDATA[fine-tuning]]></category>
            <category><![CDATA[chatbots]]></category>
            <category><![CDATA[chatgpt-chatbot]]></category>
            <category><![CDATA[openai]]></category>
            <dc:creator><![CDATA[Vishal Patil]]></dc:creator>
            <pubDate>Wed, 22 Mar 2023 11:44:13 GMT</pubDate>
            <atom:updated>2023-03-22T11:59:13.232Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/848/1*LcraTom0O9u0tEB_PfbMEg.jpeg" /></figure><p><strong>Introduction</strong></p><p>F<em>ine-tuning is a process that takes a model that has already been trained for one given task and then tunes or tweaks the model to make it perform a second similar task. Open AI Provides the capabilities to fine tune their basic models like Davinci, Ada, Curie and Babbage which indeed can be fine tune as per the user use case. Chatbots are computer programs developed to engage in conversations with users. They have become particularly popular in the realm of customer support. Presently, chatbots can be found on a multitude of websites, allowing users to bypass the inconvenience of calling customer service and waiting for a response. Chatbots can be designed with varying levels of sophistication, from basic rule-based systems with limited functionality to intelligent chatbots that leverage cutting-edge AI technology.</em></p><p>Steps involved in model fine tunning</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/670/1*MR7Y6WpCSWvOVZ6rv22XpQ.png" /></figure><ol><li><strong>Fine Tunning</strong></li></ol><p>Fine tune involves three broad level steps<br>1.Prepare and upload training data<br>2.Train a new fine-tuned model<br>3.Use your fine-tuned model</p><p><strong>1 Prepare training data<br></strong>As per the use case we need to follow certain format for creation of training data it varies for use case. But overall we need to have quetions and answers in the following format and in jsonl.<br><em>{“prompt”: “&lt;prompt text&gt;”, “completion”: “&lt;ideal generated text&gt;”}<br>{“prompt”: “&lt;prompt text&gt;”, “completion”: “&lt;ideal generated text&gt;”}<br>{“prompt”: “&lt;prompt text&gt;”, “completion”: “&lt;ideal generated text&gt;”}</em></p><p>Some guideline for training data preparation are available on openai documentation section <a href="https://platform.openai.com/docs/guides/fine-tuning/preparing-your-dataset">https://platform.openai.com/docs/guides/fine-tuning/preparing-your-dataset</a><br> — Upload the file created for data preparation for this we can use following command on CLI<br>&gt;<strong><em>openai tools fine_tunes.prepare_data -f Filename.jsonl</em></strong></p><p><strong>2 Train New Fine Tune Model<br></strong>As per the use case you can select the model which need to be fine tuned <br>using following command we can do that on CLI<br>&gt;<strong><em>openai api fine_tunes.create -t Filename.jsonl -m davinci — suffix “Specify_your_name” — n_epochs 1</em></strong></p><p>After this the file tune job is created we can track the status of the job with<br><strong><em>&gt;openai api fine_tunes.follow -i &lt;YOUR_FINE_TUNE_JOB_ID&gt;</em></strong></p><p><strong>3.Use your fine-tuned model</strong></p><p>We can use that model directly in playground or from CLI <br>for CLI we can use following python code <br><strong><em>import openai<br>openai.Completion.create( model=FINE_TUNED_MODEL,<br> prompt=YOUR_PROMPT )</em></strong></p><p>For playground we need to select fine tune model from Model Tab present in right</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/832/1*OUqCIBs_3t4wpMBpod_2ng.png" /></figure><p><strong>Making Request to fine tune Model<br></strong>Following python function code can be used for making the request to fine tune model inside engine/model you can mention fine tune model name created by you.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/662/1*hzeispZMhUPpFeP9HJXGEA.png" /></figure><p><strong>Thats ALL……………….!!!<br>Thank you for taking the time to read this article! We appreciate your interest and hope you found it informative and helpful. If you have any questions or feedback, please feel free to share your thoughts on LinkedIn </strong><a href="http://www.linkedin.com/in/vishalpatil134.">www.linkedin.com/in/vishalpatil134<strong>.</strong></a><strong><br>Kindly follow for more stories</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=12d9f917a074" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Evaluation Metrics For Regression Models]]></title>
            <link>https://medium.com/@vpatil12/evaluation-metrics-for-regression-models-ee82175744a?source=rss-2d906d109afb------2</link>
            <guid isPermaLink="false">https://medium.com/p/ee82175744a</guid>
            <category><![CDATA[evaluation-metric]]></category>
            <category><![CDATA[r-squared]]></category>
            <category><![CDATA[rmse]]></category>
            <category><![CDATA[aem]]></category>
            <category><![CDATA[mse]]></category>
            <dc:creator><![CDATA[Vishal Patil]]></dc:creator>
            <pubDate>Sun, 12 Dec 2021 09:32:12 GMT</pubDate>
            <atom:updated>2021-12-12T09:32:12.555Z</atom:updated>
            <content:encoded><![CDATA[<h4>This article provides the most common metrics that every Data Scientist must know while evaluating the performance of the Regression model in a machine learning project.</h4><p><em>Hello everyone today I am going through the performance measures that are most applicable to Regression models. These are the most common tools to be able to effectively evaluate whether a model is actually well-performant and ready to be brought into production or not.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/0*Ftp_5atFtCK7BBUx.jpg" /></figure><h3>Regression</h3><p>Regression is a type of Machine learning algorithm which helps in finding the relationship between independent and dependent variables</p><p>In simple words, Regression can be defined as a Machine learning problem where we have to predict discrete values like price, weight, height, ratings, etc.<br>The following figure shows important metrics used in regression models.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/793/1*DRegO__7d-JGtNSmIZAlbg.png" /><figcaption><strong>Metrics for Regression</strong></figcaption></figure><p><strong>1 Mean Absolute Error (MAE)<br></strong>This is nothing but the error difference between the actual result and the predicted result. MAE is a very simple metric. To find the MAE of your model which is basically a mistake made by the model known as an error. Now find the difference between the actual value and predicted value that is an absolute error but we have to find the mean absolute of the complete dataset. so, s<strong>um all the errors and divide them by a total number of observations And this is MAE, </strong>and we as data scientists always try to minimize the MAE as it is a loss and the performance of the model may get degraded.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/1*tYO-OHgRNn762oE0A_9JZw.png" /></figure><p><strong>2. Mean Squared Error(MSE)</strong><br>MSE is a most used and very simple metric with a little bit of change in mean absolute error. Mean squared error states that finding the squared difference between actual and predicted value.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/559/1*DnvKQ6Uy9-I_ZZcfLQe-8Q.png" /></figure><p><strong>3 Root Mean Squared Error(RMSE)<br></strong> RMSE calculates the average of the squared errors across all samples but, in addition, takes the square root of the result, effectively taking the square root of MSE. By doing so, RMSE provides an error measure in the same unit as the target variable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/382/0*8gfK_VgwNfd0QTEq" /></figure><p><strong>4. R-Squared (R2 Score)<br></strong>R2 score is a metric that tells the performance of your model, not the loss in an absolute sense that how many wells did your model perform. R2 squared is also known as Coefficient of Determination or sometimes also known as Goodness of fit. It is pronounced as R squared and is also known as the coefficient of determination. It works by measuring the amount of variance in the predictions explained by the dataset.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/506/1*9bEWbPJe2c0vNkKCyXosnQ.png" /></figure><p><strong>5 Adjusted R-Squared<br></strong>One of the drawbacks of R² is that the more features are added to a model, the more the R² increases. This happens even though the features added to the model are not intrinsically predictive.<br>Adjusted R-squared is a <strong>modified version of R-squared</strong> that has been adjusted for the number of predictors in the model. The adjusted R-squared increases when the new term improves the model more than would be expected by chance. It decreases when a predictor improves the model by less than expected.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/0*SJzQQrXMSfSxPLKE.jpeg" /></figure><p><strong>Conclusion:</strong> In this article, I had discussed some of the important evaluation parameters available in the Regression model. Also, I Would suggest you pick any dataset, apply a Machine learning algorithm and try to evaluate a model on different evaluation metrics.</p><blockquote>You may find this useful<br>👉👉👉<a href="https://medium.com/@vpatil12/evaluation-metrics-for-classification-models-in-machine-learning-6c539f724e41">https://medium.com/@vpatil12/evaluation-metrics-for-classification-models-in-machine-learning-6c539f724e41</a></blockquote><blockquote>Kindly follow me here:</blockquote><blockquote>👍<a href="https://medium.com/www.linkedin.com/in/vishalpatil134"><strong>https:/www.linkedin.com/in/vishalpatil134</strong></a></blockquote><blockquote>👍<a href="https:// www.github.com/vpatil1180"><strong>https:// www.github.com/vpatil1180</strong></a></blockquote><blockquote>👍<a href="https://medium.com/@vpatil12"><strong>https://medium.com/@vpatil12</strong></a></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ee82175744a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Evaluation Metrics for Classification Models in Machine Learning.]]></title>
            <link>https://medium.com/@vpatil12/evaluation-metrics-for-classification-models-in-machine-learning-6c539f724e41?source=rss-2d906d109afb------2</link>
            <guid isPermaLink="false">https://medium.com/p/6c539f724e41</guid>
            <category><![CDATA[classification-models]]></category>
            <category><![CDATA[auc-roc-curve]]></category>
            <category><![CDATA[evaluation-metric]]></category>
            <category><![CDATA[accuracy-and-precision]]></category>
            <category><![CDATA[f1-score]]></category>
            <dc:creator><![CDATA[Vishal Patil]]></dc:creator>
            <pubDate>Sat, 11 Dec 2021 16:07:00 GMT</pubDate>
            <atom:updated>2021-12-20T10:44:25.763Z</atom:updated>
            <content:encoded><![CDATA[<h4>This article provides the most common metrics that every Data Scientist must know while evaluating a classification model in a machine learning project.</h4><h4>Introduction</h4><h4>To measure the quality of any machine learning model evaluating its performance is the most important aspect. Choice of metrics influences how the performance of machine learning algorithms is measured and compared. When you build your model, it is very crucial to measure how accurately it predicts your expected outcome. If you ask me do we have different evaluation metrics for different algorithms then the answer will be Yes and also when to use which metrics remains an area of discussion. For now, I will only focus on evaluation metrics used in classification models.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Lv-SgDsCy45lOuYt.jpeg" /></figure><p>Before going forward just go through some basic terms related to Machine Learning Algorithms.<br><strong>Supervised Learning: </strong>Learning under supervision is supervised learning or Learning based on previous experiences is known as supervised learning. Supervised learning allows you to collect data or produce a data output from the previous experience. Supervised Learning is further divided into two main categories i.e. Classification &amp; Regression Algorithms.</p><p><strong>Regression: </strong>Regression is a supervised learning technique which helps in finding the correlation between variables and enables us to predict the continuous output variable based on one or more predictor variables. In this model, we get some fixed values like height, weight.</p><p><strong>Classification: </strong>The Classification algorithm is a Supervised Learning technique that is used to identify the category of new observations based on training data. Here, the target outcome will be a discrete/categorical value like Yes/No, Spam/Not spam, etc.</p><p><strong>Unsupervised Learning: </strong>Unsupervised learning refers to the use of artificial intelligence (AI) algorithms to identify patterns in data sets containing data points that are neither classified nor labeled. In other words, unsupervised learning allows the system to identify patterns within data sets on its own.</p><h3><strong>Need of Evaluation Metrics</strong></h3><p>The next important thing is to understand why we need performance metrics?<br>Evaluation metrics can help you assess your model’s performance, monitor your Machine Learning model in the production phase, and control your model to fit your business needs. Our primary aim is to select a model which gives high accuracy. As a data scientist, it’s your prime duty to check the performance of the model for various metrics because a model may perform well using one evaluation metric while may perform poorly using another measurement from another evaluation metric.</p><p><em>The following figure shows the most important metrics used in classification algorithms.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/666/1*reEqo4LYH_BTfcNo2STB3g.png" /></figure><h3><strong>1 Confusion Matrix</strong></h3><p>A confusion matrix is a simple and powerful tool to understand the effectiveness of a classification model.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/312/1*ykSEZtf9MrbmglGIZ3UDag.png" /><figcaption>Confusion Matrix</figcaption></figure><p>Consider the scenario where Team A &amp; Team B are playing a cricket match and we have some results.</p><ul><li>TP: True Positive: Predicted values correctly predicted as actual positive</li><li>FP: Predicted values incorrectly predicted an actual positive. i.e., Negative values predicted as positive</li><li>FN: False Negative: Positive values predicted as negative</li><li>TN: True Negative: Predicted values correctly predicted as an actual negative</li></ul><p><strong><em>True Positive: </em></strong><em>You projected positive and its turn out to be true. For example, you had predicted that Team A would win the world cup, and it won.<br></em><strong><em>True Negative: </em></strong><em>When you predicted negative, and it’s true. You had predicted that Team A would not win and it lost.<br></em><strong><em>False Positive: </em></strong><em>Your prediction is positive, and it is false. You had predicted that Team A would win, but it lost.<br></em><strong><em>False Negative: </em></strong><em>Your prediction is negative, and the result it is also false. You had predicted that Team B would not win, but it won. You should remember that we describe predicted values as either True or False or Positive and Negative.</em></p><h3><strong>Why do you need a Confusion matrix?</strong></h3><ul><li>It shows how any classification model is confused when it makes predictions.</li><li>The confusion matrix provides detailed results of the classification.</li><li>The confusion matrix not only gives you insight into the errors being made by your classifier but also the types of errors that are being made.</li><li>This breakdown helps you to overcome the limitation of using classification accuracy alone.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/688/1*UXlx19mp4dDUCKZMCTuq1Q.png" /><figcaption><strong>Scikit-Learn implementation of Confusion_matrix</strong></figcaption></figure><p><strong>When to use: </strong><em>It is mainly used in binary classification problems as well as multiclass-classification problems where we are having multiple classes within the target features. Confusion Matrix is not only used for binary variables but is also used for variables that can take more than two values such as High/Medium/Low, Cat/Lion/Tiger, etc. Confusion Matrix also helps to evaluate balanced datasets and not just skewed datasets.</em></p><h3>2 Accuracy</h3><p>The most simplest form of metrics for model evaluation is Accuracy. It can be defined as the ratio of the number of correct predictions to the total number of predictions made for a dataset. The proportion of true results among the total number of cases examined. <br><em>Accuracy = Number of correct predictions / Total number of predictions <br></em><strong><em>Accuracy = (TP+TN)/(TP+FP+FN+TN)</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/691/1*03moqv7NfBQXqowbxU0dFg.png" /><figcaption><strong>Scikit-learn implementation of accuracy score</strong></figcaption></figure><p><strong>When to use: </strong><em>Accuracy metric is useful when the target class is well balanced but is not a good choice with unbalanced classes.</em></p><h3>3 Precision &amp; Recall</h3><p><strong>A]Precision(Positive Predictive Value)</strong><br>It is the ratio of True Positives to all the positives predicted by the model. It is useful for the skewed and unbalanced dataset. The more False positives the model predicts, the lower the precision.<br><strong>Precision = (TP)/(TP+FP). </strong><br><em>Out of all the positive classes, how much we predicted correctly. It should be high as possible.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/697/1*U2VuxCV1Y2PGRbVOOkrAqQ.png" /><figcaption><strong>Scikit-learn implementation of precision_score</strong></figcaption></figure><p><strong>When to use: </strong>Precision is a valid choice of evaluation metric when we want to be very sure of our prediction.</p><p><strong>B] Recall(Sensitivity)<br></strong>Also known as sensitivity. It is the ratio of true positives to all the positives in your dataset. It measures the model’s ability to detect positive samples. The more false negatives the model predicts, the lower the recall.<br><strong>Recall = (TP)/(TP+FN)</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/692/1*HTQnR1OEPOIJxIZFVgmZRA.png" /><figcaption><strong>Scikit-learn implementation of recall_score</strong></figcaption></figure><p><strong>When to use: </strong>Recall is a valid choice of evaluation metric when we want to capture as many positives as possible.</p><h3>4 F1-Score / F-measure</h3><p>A good F1 score means that you have low false positives and low false negatives, so you’re correctly identifying real threats, and you are not disturbed by false alarms. An F1 score is considered perfect when it’s 1, while the model is a total failure when it’s 0.<br>It is a single metric that combines both Precision and Recall. The higher the F1 score, the better is the performance of our model. The range for F1-score is [0,1]. This metric only favors classifiers that have similar precision and recall.<br><strong>F1 = 2* (precision * recall)/(precision + recall)</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/694/1*PhhVMcypbyW5RVXYCiXPoQ.png" /><figcaption><strong>Scikit-learn implementation of f1_score</strong></figcaption></figure><p><strong>When to use: </strong>We want to have a model with both good precision and recall i.e. good coverage of actual positives and actual negatives.</p><h3>5 ROC-AUC</h3><p><strong>A] ROC</strong><br>A ROC curve also termed as <strong>Receiver Operating Characteristic</strong> curve<strong> </strong>is a graph showing the performance of a classification model. <strong><br></strong>ROC curve plots two parameters: TPR-True Positive Rate(recall) and FPR-False Positive Rate</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/690/1*7cBU0pbs_HwRCft14pplsw.png" /><figcaption><strong>Scikit-learn implementation of Roc_curve</strong></figcaption></figure><p><strong>When to use</strong>: It’s a hybrid metric useful for unbalanced classes. The Receiver Operating characteristic (ROC) curve is explicitly used for binary classification. However, it can be extended for multiclass classification too.<br><strong>B] AUC<br></strong>An <strong>AUC (Area Under the Curve)</strong> or also termed as Area Under the ROC Curve is a metric used to summarize a graph by using a single number. AUC scores are used to compare different models but can be impacted by imbalanced data. Its value generally lies between 0 to 1.<strong>The higher the AUC score, the better is the model.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/690/1*AjPD6MThcCb4PnNG01raiA.png" /><figcaption><strong>Scikit-learn implementation of AUC</strong></figcaption></figure><p><strong>When to use</strong>: Generally used when there is a clear distribution of classes in the given dataset. You should use it when you care equally about positive and negative classes. Avoid using it when the dataset is imbalanced.</p><p><strong>6 Log Loss/Cross-Entropy<br></strong>Log loss (i.e. cross-entropy loss) evaluates the performance by comparing the actual class labels and the predicted probabilities. The comparison is quantified using cross-entropy. Cross-entropy quantifies the comparison of two probability distributions. In supervised learning tasks, we have a target variable that we are trying to predict. The actual distribution of the target variable and our predictions are compared using the cross-entropy. The result is the cross-entropy loss, also known as the log loss.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/692/1*eoyynvZz9MANP_VN3WYLeA.png" /><figcaption><strong>Scikit-learn implementation of log_loss</strong></figcaption></figure><p><strong>When to use:</strong> Log Loss is the most important classification metric based on probabilities. It’s hard to interpret raw log-loss values, but log-loss is still a good metric for comparing models. For any given problem, a lower log loss value means better predictions.</p><h4>Conclusion: In this article, I almost covered all evaluation metrics used for classification algorithms in any machine learning project. Also, we learned when to use which metric for performance evaluation.</h4><h3>Claps, please……..! Kindly follow for such amazing writings.</h3><h4>👉👉👉👉<a href="https://medium.com/@vpatil12">https://medium.com/@vpatil12</a></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/450/0*8XJlRV9euNmCF_gM.gif" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6c539f724e41" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SQL for Data Science]]></title>
            <link>https://medium.com/@vpatil12/sql-for-data-science-a6f0373119b?source=rss-2d906d109afb------2</link>
            <guid isPermaLink="false">https://medium.com/p/a6f0373119b</guid>
            <category><![CDATA[mysql-with-python]]></category>
            <category><![CDATA[mysql-workbench]]></category>
            <category><![CDATA[data-scientist]]></category>
            <category><![CDATA[jupyter-notebook]]></category>
            <category><![CDATA[sql-for-data-science]]></category>
            <dc:creator><![CDATA[Vishal Patil]]></dc:creator>
            <pubDate>Thu, 02 Dec 2021 12:20:18 GMT</pubDate>
            <atom:updated>2021-12-03T04:01:27.312Z</atom:updated>
            <content:encoded><![CDATA[<p><strong><em>The main purpose of this article is to understand the importance of SQL(Structured Query Langauge) in the Data Scientist role. I will say SQL is must. SQL is necessary in Data preparation and Data wrangling phase. For performing data analytics with the data that is stored in relational databases like Oracle, MySQL, we need SQL</em></strong>. <strong><em>As a data scientist one must have a good understanding and knowledge of dealing with relational databases. Learning SQL will definitely help you to understand and manage your data in an efficient way for making better data-driven decisions. Following figure shows various SQL skill set required for Data Science.</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/580/1*i9OnTvlIcFdTyWddm4arMg.png" /><figcaption><strong>SQL SKILL SET REQUIRED FOR DATA SCIENCE</strong></figcaption></figure><p><strong>SQL-Skill Required for Data Science<br>1 RDBMS<br></strong><em>In order to store structured data, you must know RDBMS in-depth. You can then access, retrieve and manipulate the data through SQL queries.</em></p><p><strong>2 SQL Commands<br></strong><em>A Data Scientist must know these following SQL commands</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/596/1*DPIE6bSJ2d2Hzhk1PyRvAQ.png" /><figcaption><strong>BASIC SQL COMMANDS</strong></figcaption></figure><p><strong>3 Joins<br></strong><em>Table joins are the most important concepts of relational databases. There are two types of joins — Inner Join and Outer Join. They are then further divided into Inner, Left, Right, Full etc.</em></p><p><strong>4 Subqueries<br></strong><em>A subquery is the nested query that is embedded in another query. It will return the information to the primary query.</em></p><p><strong>5 Indexing<br></strong><em>Using Indexing one can easily locate the specific record also with SQL indexing, we can quickly load the data into the database.</em></p><p><strong>6 Null Values<br></strong><em>Null is used to represent a missing value. A field that contains Null value is blank in a table.</em></p><p><strong>MySQL(Workbench) Connection with Python<br></strong><em>Following are the important steps you need to follow for creating connection and performing operations.</em></p><p><strong>1 Installing and Importing important librabries</strong><br><em>First of all using </em><strong><em>pip install mysql-connector-python</em></strong><br><em>First, we will create a connection for this, we will do the following step using jupyter notebook that will establish a connection to the MySQL database server.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/979/1*pJPn2cCLxtPokzf_1cmZ5g.png" /></figure><p><strong>2 Performing Operations <br></strong><em>Using various SQL commands we have seen earlier Creating Databases, Adding tables, Inserting values, Fetching all the data, Deleting perticular rows, droping tables as shown below.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/469/1*FSHq2nTiqynl0ZxlT08SXQ.png" /><figcaption>Jupyter Notebook Snippets</figcaption></figure><p><em>Following figures shows the Mysql Workbench instance showing databases so created and also the data fetched using select command.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/508/1*p-b5EyrV6d4rdiGubnhTbw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/467/1*Vtc-5DQTsFWKEsG-bIfPfQ.png" /><figcaption>MySQL Workbench Instance</figcaption></figure><blockquote>In the next step I have created new table with name team1 and performed some basic operations like Insert, Update ,Fetch, Delete and Drop</blockquote><p><strong>A]Create Table</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1004/1*LJa1Vvjmw7zLoyfYYlA8CQ.png" /></figure><p><strong>B]Insert Values<br></strong><em>You can insert one record or multiple record in the table using following commands</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fO4v76XPfhfVrQjyuYpFkw.png" /></figure><p><strong>C] Fetching Record</strong></p><p><em>Using fetchone() and fetchall() function we can fetch the records from database tables.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/429/1*KfEjU6WtkhSt46DzgPGV4A.png" /></figure><p><strong>D] Delete a Record</strong></p><p><em>Using delete command along with the where clause we can delete the respective record from the table.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/468/1*3yWl4g4mFwFdORwPRlC2Pw.png" /></figure><p><strong>E] Update a Record</strong></p><p><em>We can update the specific record using update method and we can set new value for it.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/598/1*lg3ptZt9C7aChXecKEwdZA.png" /></figure><p><strong><em>Conclusion:<br></em></strong><em>After going through this article you must understood the importance SQL for Data Science. Here, my main focus is on how SQL is essential for Data Science and also how we can work with MySQL using python. Thanks for reading the article.</em></p><p><strong>Follow is the link of my github profile where you will get Jupyter Notebook file for further reference. </strong><a href="https://github.com/Vishal1180/MySQL_BASICS_FOR_DS"><strong>https://github.com/Vishal1180/MySQL_BASICS_FOR_DS</strong></a><strong><br><em>You can also check my writings here-&gt; </em></strong><a href="https://medium.com/@vpatil1180"><strong><em>https://medium.com/@vpatil1</em></strong></a><strong><em>2</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a6f0373119b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Feature Engineering and Modeling phase in the journey of Data Science project (Part II)]]></title>
            <link>https://medium.com/@vpatil12/feature-engineering-and-modeling-phase-in-the-journey-of-data-science-project-part-ii-4657d1865982?source=rss-2d906d109afb------2</link>
            <guid isPermaLink="false">https://medium.com/p/4657d1865982</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[model-selection]]></category>
            <category><![CDATA[feature-engineering]]></category>
            <category><![CDATA[eda]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Vishal Patil]]></dc:creator>
            <pubDate>Sat, 27 Nov 2021 10:58:44 GMT</pubDate>
            <atom:updated>2021-12-03T04:03:33.934Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>This is the second part of the article consists of next important phase after performing EDA is selecting appropriate dependent and independent varibles for model creation. This is also the next most important phase in the life cycle of any data science project.</blockquote><blockquote><strong>Part I Link </strong><a href="https://medium.com/@vpatil1180/importance-of-exploratory-data-analysis-in-the-journey-of-data-science-project-part-i-fbe18bac479c"><em>https://medium.com/@vpatil12/importance-of-exploratory-data-analysis-in-the-journey-of-data-science-project-part-i-fbe18bac479c</em></a></blockquote><p><strong>Feature engineering</strong> refers to the process of using domain knowledge to select and transform the most relevant variables from raw data when creating a predictive model. Feature is nothing but one of the property or the characteristics that is present in the dataset, or one can call it as column present in the dataset.The process of identifying &amp; extracting relevant features from raw data for a machine learning algorithm is called feature engineering.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nhhNu2ivA6oKnukCZW283g.png" /></figure><p><strong>Need &amp; Benefits of Feature Engineering <br></strong>As a data scientist we must concern with the accuracy of the model hence here comes the role of feature engineering and feature extraction in any data science project. To enhance the accuracy of model and also to improve the predictive accuracy of model we generally go for this step. Following figure shows some of the important benefits of feature engineering process.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/832/1*Gj_5ovgCXLe2UByGNEiRbg.png" /></figure><blockquote>Now in our car dataset we need to select the features for building the model here <strong>‘selling price’ </strong>is our dependent variable and all remaining variables we are considering as independent variables</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/759/1*OGH1ZhsE7UkfGv91XaiFFQ.png" /></figure><blockquote>Next step is to select specific model for our dataset here we are taking ExtraTreeRegressor. This algorithm works by creating a large number of unpruned decision trees from the training dataset. Predictions are made by averaging the prediction of the decision trees in the case of regression. Also we are ploting important features from our car dataset.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*CtXR82TreXnuzrD3AbXMtQ.png" /></figure><blockquote><strong>Model selection</strong> is the process of choosing one of the models as the final model that addresses the problem. As per the data observed based on that a perticular machine learning algorithm is selected. The train-test split procedure is used to estimate the performance of machine learning algorithms when they are used to make predictions on data not used to train the model. From the given dataset we can considering 80% data for training purpose and 20% for testing purpose.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/523/1*LH3popUO3O5TxhgONIfuUA.png" /></figure><blockquote>In the next step I used RandomizedSearchCV which is mainly used for Randomized search on hyper parameters. RandomizedSearchCV implements a “fit” and a “score” method.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/795/1*zL5A3zM4kFOHyCeg2MEEbw.png" /></figure><blockquote>Then we fit the model by passing X_train and y_train variables and then pass some values for prediction purpose</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/803/1*HFRF5eVDKc8NnI_J59BMmw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/523/1*v9AptGr4coEUwvPy4L297A.png" /></figure><blockquote>Finally I plotted the scatter plot using matplotlib library of data visualization using y_test and predicted values and calculated the various error values and after that pickle file is generated for deployment process.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/616/1*XemA5aKTHDlbC4lRclTtXg.png" /></figure><p><strong>Conclusion: </strong>As the project journey started from loading the dataset and in the first part of this article I had already perfomed the complete Exploratory Data Analysis , here this article mailny focus on Feature Engineering and model selection process. At the end successfully applied predictive modeling through Random Forest Regressor technique for predicting the car price.</p><blockquote>Source Code: <a href="https://github.com/Vishal1180/Car_Price_Prediction"><strong>GitHub</strong></a><strong> </strong>Car_Dataset: <a href="https://www.kaggle.com/nehalbirla/vehicle-dataset-from-cardekho?select=car+data.csv"><strong>Kaggle</strong></a></blockquote><blockquote>This Project is available at <a href="https://vishcarpriceprediction.herokuapp.com/">https://vishcarpriceprediction.herokuapp.com/</a></blockquote><h3><strong>Thanks For Reading …………!</strong></h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4657d1865982" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>