<?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 Sumit Shah on Medium]]></title>
        <description><![CDATA[Stories by Sumit Shah on Medium]]></description>
        <link>https://medium.com/@sumitshah_32836?source=rss-19fb53938e3e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*PYjgmjfHt-Rvw6gFSlJcAg.jpeg</url>
            <title>Stories by Sumit Shah on Medium</title>
            <link>https://medium.com/@sumitshah_32836?source=rss-19fb53938e3e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 17:37:55 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sumitshah_32836/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[Prompt Design in Vertex AI: A Comprehensive Guide]]></title>
            <link>https://medium.com/@sumitshah_32836/prompt-design-in-vertex-ai-a-comprehensive-guide-b063c6efecb5?source=rss-19fb53938e3e------2</link>
            <guid isPermaLink="false">https://medium.com/p/b063c6efecb5</guid>
            <dc:creator><![CDATA[Sumit Shah]]></dc:creator>
            <pubDate>Sat, 26 Apr 2025 10:04:23 GMT</pubDate>
            <atom:updated>2025-04-26T10:04:23.951Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/318/1*VBckRICA_AcueVfeMB-8FA.jpeg" /></figure><p><strong>Prompt Design in Vertex AI</strong></p><p>Prompt design is the art and science of crafting effective prompts to elicit desired responses from Large Language Models (LLMs). In the context of Vertex AI, mastering prompt design is crucial for optimizing the performance of generative AI models like Google’s Gemini. This guide delves into the essential principles and advanced techniques of prompt design within Vertex AI.</p><p><strong>Understanding the Basics of Prompt Engineering</strong></p><p>Prompt engineering is fundamentally about communicating effectively with an LLM. The goal is to minimize ambiguity and guide the model towards generating relevant and accurate outputs. As the document mentions, the idea of using “unfancy” prompts is to minimize the noise in your prompt to reduce the possibility of the LLM misinterpreting the intent of the prompt.</p><p><strong>Key Principles of Prompt Design</strong></p><ul><li><strong>Conciseness:</strong> Keep your prompts brief and to the point. Avoid unnecessary words or phrases that could distract the model.</li><li><strong>Specificity and Clarity:</strong> Clearly define the desired output. The more specific you are, the better the model can understand your requirements.</li><li><strong>Single Task Focus:</strong> Break down complex tasks into smaller, single-focused prompts. This helps the model concentrate on one aspect at a time, leading to more precise results.</li></ul><p><strong>Advanced Prompting Techniques</strong></p><ul><li><strong>Providing Examples:</strong> Including examples within your prompts can significantly enhance the quality of responses. This technique, known as “few-shot prompting,” allows the LLM to learn in-context and generate outputs that align with the provided examples.</li><li><strong>Leveraging System Instructions:</strong> System instructions are a powerful way to guide the LLM’s behavior. By providing context and constraints, you can influence the model’s persona, tone, and the relevance of its responses.</li><li><strong>Classification Tasks:</strong> Where appropriate, frame your prompts as classification tasks rather than open-ended generation. This approach can help reduce variability and improve the predictability of the model’s output.</li></ul><p><strong>Iterative Prompt Refinement</strong></p><p>Prompt design is often an iterative process. It may require experimentation and adjustment to achieve the desired results. Parameters like temperature and token limit can be fine-tuned to influence the model’s output.</p><ul><li><strong>Temperature:</strong> Controls the randomness of the model’s output. Lower values produce more predictable responses, while higher values introduce more creativity.</li><li><strong>Token Limit:</strong> Restricts the length of the generated text.</li></ul><p><strong>Prompt Design Methods</strong></p><ul><li><strong>Zero-shot prompting:</strong> This is a method where the LLM is given only a prompt that describes the task and no additional data.</li><li><strong>One-shot prompting:</strong> This is a method where the LLM is given a single example of the task that it is being asked to perform.</li><li><strong>Few-shot prompting:</strong> This is a method where the LLM is given a small number of examples of the task that it is being asked to perform.</li></ul><p><strong>Best Practices for Effective Prompting</strong></p><ul><li>Begin with clear and specific instructions.</li><li>Provide context to guide the model’s understanding.</li><li>Use constraints to focus the model’s output.</li><li>Experiment with different phrasing and formats.</li><li>Iterate and refine your prompts based on the model’s responses.</li></ul><p>By following these principles and techniques, you can harness the full potential of Vertex AI’s generative AI models and create powerful applications for a wide range of use cases.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b063c6efecb5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Next Best Offer Model: A Machine Learning Approach to Predict Customer Propensity]]></title>
            <link>https://medium.com/@sumitshah_32836/next-best-offer-model-a-machine-learning-approach-to-predict-customer-propensity-d587568e4524?source=rss-19fb53938e3e------2</link>
            <guid isPermaLink="false">https://medium.com/p/d587568e4524</guid>
            <dc:creator><![CDATA[Sumit Shah]]></dc:creator>
            <pubDate>Thu, 17 Apr 2025 14:50:05 GMT</pubDate>
            <atom:updated>2025-04-17T14:50:05.690Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/208/1*TKHXb4wUwDao6dRe8eDfiw.jpeg" /></figure><p>In today’s competitive market, businesses constantly seek ways to optimize their marketing efforts and improve customer acquisition. One powerful technique that has emerged in recent years is machine learning to predict customer propensity for specific products or services. This approach, often called the “Next Best Offer” model, enables companies to target customers with personalized offers, increasing the likelihood of conversion and maximizing marketing ROI.</p><p>This blog post will delve into the development steps and application of a Next Best Offer model designed to predict the likelihood of existing mutual fund customers purchasing stock products.</p><p><strong>Problem Statement</strong></p><p>The core objective is to develop a robust machine learning model that accurately predicts the propensity of mutual fund customers to invest in stock products. In addition, the model aims to assign a propensity score to each customer, quantifying their individual likelihood of adopting stock products.</p><p><strong>Data Preparation and Feature Extraction</strong></p><p>The foundation of any successful machine learning model lies in the quality and relevance of the data. For this project, the data is likely to encompass a variety of customer and product-related information, including:</p><ul><li>Customer Demographics (Age, Occupation, Gender, etc.)</li><li>Account Details (Account type, Account balance, Investment history)</li><li>Mutual Fund Holdings</li><li>Customer Status</li><li>Mutual Fund Product Information (Asset Class, Asset Type, Product vintage, Dividend history)</li><li>Geographical Information (City, State, Tier, Region)</li><li>Derived Information (CAGR, Absolute Return, Customer Inclination, Inflow, and Outflow Class)</li></ul><p>The target variable is defined as a binary indicator, where 1 represents a mutual fund customer who has previously purchased stock products, and 0 represents those who haven’t.</p><p><strong>Exploratory Data Analysis (EDA)</strong></p><p>EDA is a crucial step in understanding the data and identifying patterns or anomalies that may impact model performance. The EDA process involves:</p><ul><li><strong>Data Exploration:</strong> Loading the data into a DataFrame and performing basic analysis using functions like info(), describe(), dtypes(), and isnull() to gain insights into the data structure and characteristics.</li><li><strong>Distribution Analysis:</strong> Examining the distribution of the target variable to understand the balance between potential and non-potential customers.</li><li><strong>Univariate Analysis: </strong>Analyzing the distribution of individual numerical and categorical features using measures such as min, max, median, unique count, and percentile distribution.</li><li><strong>Missing Value Imputation and Outlier Detection:</strong> Handling missing data and identifying/eliminating extreme values that could skew the model.</li><li><strong>Event Rate Determination:</strong> Calculating the percentage of occurrences of the target event within each category.</li><li><strong>Bivariate Analysis: </strong>Exploring the relationships between pairs of variables, including:</li><li><strong>Weight of Evidence (WOE):</strong> Measuring a feature’s strength in predicting the target variable.</li><li><strong>Information Value (IV):</strong> Assessing the predictive power of a variable.</li><li><strong>Correlation Analysis:</strong> Identifying and addressing highly correlated features to avoid redundancy.</li></ul><p><strong>Feature Selection</strong></p><p>Feature selection is the process of identifying the most relevant features for the model, improving its performance and interpretability. Techniques such as Categorical Stability Index (CSI), Population Stability Index, and Variance Inflation Factor are employed to evaluate feature importance and select the optimal subset of features.</p><p><strong>Train-Test Split and Out-of-Time Evaluation</strong></p><p>To ensure the model’s generalization ability, the data is divided into three sets:</p><ul><li><strong>Training Set (80%):</strong> Used to train the model and learn patterns in the data.</li><li><strong>Test Set (10%):</strong> Used to evaluate the model’s performance on unseen data.</li><li><strong>Out-of-Time (OOT) Set (10%):</strong> Used to assess the model’s performance on data from a later period, simulating real-world deployment.</li></ul><p><strong>Note:- The Train-Test and OOT Split vary from use case to use case.</strong></p><p><strong>Model Selection and Training</strong></p><p>For this classification problem, Logistic Regression, XGBoost, and CatBoost models are trained using the selected features.</p><p><strong>Model Evaluation</strong></p><p>The trained model’s performance is evaluated on the test set using various metrics:</p><ul><li><strong>Accuracy, Precision, Recall, and F1-score:</strong> Assessing the model’s overall accuracy and its ability to correctly classify positive and negative cases.</li><li><strong>KS Statistic:</strong> Evaluating the model’s ability to discriminate between positive and negative cases.</li></ul><p><strong>Model Improvement</strong></p><p>To further enhance the model’s performance, hyperparameter tuning techniques like Grid Search CV are employed to optimize the model’s parameters. Additionally, feature selection is revisited to identify the most impactful features and potentially reduce overfitting.</p><p><strong>Model Deployment and Application</strong></p><p>Once the model is trained and evaluated, it is deployed into a production environment to generate propensity scores for new customers. These scores, typically ranging from 1 to 10, segment customers based on their likelihood of investing in stocks.</p><p><strong>Advantages of the Next Best Offer Model</strong></p><ul><li><strong>Optimized Marketing Costs:</strong> By focusing marketing efforts on high-propensity customers, resources are allocated efficiently, reducing overall marketing spend.</li><li><strong>Targeted Outreach:</strong> Propensity scores enable tailored messaging and product information, improving customer engagement.</li><li><strong>Improved Customer Acquisition:</strong> Targeting high-propensity customers increases the chances of successful conversions and enhances customer acquisition.</li></ul><p>In conclusion, the Next Best Offer model provides a data-driven approach to identify and target customers with personalized offers. By leveraging machine learning techniques, businesses can optimize their marketing strategies, improve customer acquisition, and drive revenue growth.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d587568e4524" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>