<?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 Vickybanna on Medium]]></title>
        <description><![CDATA[Stories by Vickybanna on Medium]]></description>
        <link>https://medium.com/@vickybanna3327?source=rss-4d9321217dfa------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*tC3wS-NEVuy5QPY7</url>
            <title>Stories by Vickybanna on Medium</title>
            <link>https://medium.com/@vickybanna3327?source=rss-4d9321217dfa------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 14:13:01 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@vickybanna3327/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[How I Built an AI-Powered Sales Forecasting Platform That Analyzed a Billion-Dollar Dataset]]></title>
            <link>https://medium.com/@vickybanna3327/how-i-built-an-ai-powered-sales-forecasting-platform-that-analyzed-a-billion-dollar-dataset-836940201f6b?source=rss-4d9321217dfa------2</link>
            <guid isPermaLink="false">https://medium.com/p/836940201f6b</guid>
            <category><![CDATA[sales-forecasting]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[business-intelligence]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Vickybanna]]></dc:creator>
            <pubDate>Thu, 07 May 2026 03:35:05 GMT</pubDate>
            <atom:updated>2026-05-07T03:53:44.549Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G9_IuvHLXSbdnFUmplW1gA.png" /></figure><p>When I started learning data science a few months ago, I had one goal — build something that actually solves a real business problem. Not a tutorial project. Not a copy-paste exercise. Something a real company could actually use.</p><p>Today I want to share how I built SalesIQ — an AI-powered sales forecasting platform that runs 5 machine learning models simultaneously, generates ensemble forecasts, detects anomalies, and explains everything in plain English using Claude AI.</p><p>And yes — I tested it on a billion dollar dataset.</p><p><strong>The Problem I Wanted to Solve</strong></p><p>Every business needs to forecast sales. How much inventory do we need next month? How many staff should we hire for the holiday season? Should we be worried about that revenue dip in February?</p><p>Traditionally answering these questions required either an expensive data science team or complex Excel models that most managers struggle to maintain. I wanted to build something where a business owner with zero data science background could upload their sales CSV file and get professional grade forecasting in under 3 minutes.</p><p>That is what SalesIQ does.</p><p><strong>What SalesIQ Does</strong></p><p>SalesIQ is a two app ecosystem. The first app is the Data Cleaner. The second app is the Forecasting Platform.</p><p>The two app design was a deliberate architectural decision. Real world sales data is messy — different encodings, multiple stores in one file, daily instead of monthly data, inconsistent column names. The Data Cleaner gives users full visibility and control over data preparation before any forecasting happens. This separation of concerns means the Forecasting Platform always receives clean consistent data and never fails due to data quality issues. It mirrors how enterprise data pipelines work in real companies — a data engineering layer feeds a clean data layer which feeds the analytics layer.</p><p>Here is the complete workflow:</p><p>Step 1 — User uploads any raw CSV file to the Data Cleaner — from Kaggle, Excel, government databases, or any retail system.</p><p>Step 2 — The cleaner automatically handles any file encoding — UTF-8, Latin-1, CP1252, or any other format.</p><p>Step 3 — User previews the raw data and selects which column is the date and which column is the sales value from simple dropdowns — no coding required.</p><p>Step 4 — User applies filters if needed — filter by specific store, region, product category, or any other dimension.</p><p>Step 5 — User chooses aggregation level — daily, weekly, or monthly. Monthly is recommended for most forecasting scenarios.</p><p>Step 6 — The cleaner shows a preview chart of the clean data so the user can verify it looks correct before downloading.</p><p>Step 7 — User downloads the clean CSV file called salesiq_ready.csv.</p><p>Step 8 — User uploads salesiq_ready.csv to the Forecasting Platform and gets a complete AI powered forecast in under 3 minutes.</p><p>This two-step approach eliminates every error that occurs when raw messy data goes directly into a machine learning model. The user is always in control of what data goes into the forecast.</p><p><strong>The Technical Architecture</strong></p><p>I built SalesIQ using Python and Streamlit for the web interface. The statistical analysis layer uses scipy and pandas. The forecasting engine runs 5 models in parallel.</p><p>Model 1 is Linear Regression — a simple baseline that captures overall trend direction.</p><p>Model 2 is Gradient Boosting — an ensemble tree method that captures complex non-linear patterns in sales data.</p><p>Model 3 is XGBoost — one of the most powerful gradient boosting implementations, widely used in winning Kaggle forecasting competitions.</p><p>Model 4 is Facebook Prophet — specifically designed for business time series with strong seasonality and holiday effects.</p><p>Model 5 is Exponential Smoothing — a classic statistical method that weights recent data more heavily than older data.</p><p>After training all 5 models the system uses walk-forward validation to test each model across multiple time windows. This is more honest than a simple train-test split because it tests how well each model generalizes across different periods of time — exactly how it would perform in real business use.</p><p>The models are then combined into an ensemble with weights inversely proportional to their MAPE scores. More accurate models get higher votes in the final prediction. This ensemble approach consistently outperforms any single model.</p><p>For visualization I used Plotly to create fully interactive charts where users can hover over any data point to see exact values, zoom in on specific time periods, and download charts as PNG files.</p><p><strong>What the Forecasting Platform Shows</strong></p><p>The platform has six tabs.</p><p>The Overview tab shows total sales, average monthly sales, best month, and recent trend with an interactive sales history chart and year over year comparison.</p><p>The Statistical Analysis tab shows trend analysis with annual growth rate and R-squared, seasonality index for every month showing which months are above and below average, rolling averages at 3, 6, and 12 months, and a sales heatmap showing every month of every year as a colour coded grid.</p><p>The Forecast and Scenarios tab shows the 12-month ensemble forecast with confidence intervals and three scenario cards — best case, base case, and worst case — with a full downloadable forecast table.</p><p>The Model Comparison tab shows MAPE, RMSE, R-squared, and walk-forward validation scores for all 5 models with a bar chart comparison, ensemble weights pie chart, and radar chart showing each model’s accuracy, fit, and consistency simultaneously.</p><p>The Anomaly Detection tab automatically flags months where sales deviated more than 2 standard deviations from the mean using Z-score analysis, marking them as stars on the chart with full details on hover.</p><p>The AI Insights tab connects to Claude API to generate a plain English executive summary, top 3 risks, top 3 opportunities, 5 specific actionable recommendations, and a forecast explanation that a non-technical business owner can immediately act on.</p><p><strong>Testing on Real World Data</strong></p><p>I tested SalesIQ on three completely different real world datasets to prove it works universally.</p><p>The first was the classic Superstore retail dataset — 48 months of US retail sales data. SalesIQ achieved 11.65% MAPE with Gradient Boosting as the best model. It correctly identified November as the peak month with a seasonality index of 184.1 and February as the slowest month at 31.2. One anomaly was detected — November 2017 at 147% above the monthly average driven by an exceptional Black Friday season.</p><p>The second was the Walmart grocery dataset — 36 months of weekly sales across 45 stores. After using the Data Cleaner to aggregate all stores to monthly totals SalesIQ handled the encoding differences automatically and generated clean forecasts without any errors.</p><p>The third and most impressive was the Corporación Favorita store sales dataset from the famous Kaggle time series forecasting competition. This dataset contains over 3 million rows of daily sales data from 54 stores across Ecuador from 2013 to 2017. After using the Data Cleaner to aggregate to 56 monthly data points SalesIQ analyzed over one billion dollars in total sales, detected 18.38% annual growth rate, identified December as the peak month, and generated a 12-month ensemble forecast of 304 million dollars with scenario planning between 260 million and 393 million dollars. The anomaly detection found zero anomalies — confirming this is an exceptionally well-managed retail operation with consistent and predictable growth.</p><p><strong>Key Findings Across All Three Datasets</strong></p><p>Gradient Boosting consistently outperformed Prophet on complex retail data. Prophet is designed for simple seasonal patterns but struggles when sales are driven by multiple competing factors simultaneously.</p><p>Walk-forward validation revealed that Linear Regression gets dramatically less accurate as you test it across more time windows — its walk-forward MAPE was 200% on the Superstore data compared to just 22% for Gradient Boosting. This shows why honest validation across multiple time windows is essential before trusting any forecast.</p><p>The ensemble model was always more accurate than any individual model — this is the core insight behind every professional forecasting system used by companies like Amazon, Walmart, and Google.</p><p><strong>The Anomaly Detection Module</strong></p><p>One of the features I am most proud of is the anomaly detection system. Using Z-score analysis it automatically identifies months where sales deviated significantly from the expected pattern — more than 2 standard deviations from the mean.</p><p>For the Superstore data it correctly identified November 2017 as the only anomaly in 4 years — sales were 147% above the monthly average that month. For the Corporación Favorita data it detected no anomalies — confirming extremely consistent operations across 5 years.</p><p>This kind of automated anomaly detection replaces what used to require a data analyst manually reviewing monthly reports. A business running SalesIQ on their live monthly data sees anomalies the moment they occur — not three months later in a quarterly review.</p><p><strong>The Scenario Planning Feature</strong></p><p>Beyond point forecasts SalesIQ generates three scenarios for every dataset. The base case is the most likely outcome based on historical patterns. The best case assumes growth momentum continues at full rate. The worst case assumes growth slows down.</p><p>For the Corporación Favorita dataset the gap between best case of 393 million and worst case of 260 million dollars represents 133 million dollars of planning uncertainty over 12 months. A CFO using this tool knows exactly how much cash reserve to maintain and what inventory levels to plan for under each scenario.</p><p><strong>What I Learned Building This</strong></p><p>Building SalesIQ taught me things no course could.</p><p>I learned that real world data is almost never clean. Handling multiple encodings, column name variations, aggregation levels, multiple stores in one file, and missing values is where most of the real engineering work lives. The Data Cleaner took as much work to build as the entire forecasting engine.</p><p>I learned that no single model is always best. Gradient Boosting won on retail data. Prophet won on simpler seasonal data. The ensemble is always the safest choice because it combines the strengths of all models and reduces the risk of any one model failing badly.</p><p>I learned that walk-forward validation is the only honest way to test a forecasting model. A model that looks great on a single train-test split can still be terrible in production if it was just lucky on that particular split.</p><p>Most importantly I learned that the hardest part of data science is not the machine learning. It is translating numbers into decisions that business people can actually act on. Every feature in SalesIQ was designed with one question in mind — what does this number mean for the person running this business?</p><p><strong>Links</strong></p><p>SalesIQ Forecasting App — salesiq-vikash.streamlit.app</p><p>SalesIQ Data Cleaner App — salesiq-cleaner-vikash.streamlit.app</p><p>GitHub — github.com/vickybanna3327-byte/salesiq</p><p>Special thanks to my mentor Yash Shah for pushing me to go deeper on every project and to build things that work on real data, not just toy examples. This is what going in depth actually looks like.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=836940201f6b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I Reduced 150 Lines of Machine Learning Code to Just 4 — Without Losing the Fundamentals]]></title>
            <link>https://medium.com/@vickybanna3327/how-i-reduced-150-lines-of-machine-learning-code-to-just-4-without-losing-the-fundamentals-f7c6a659ad86?source=rss-4d9321217dfa------2</link>
            <guid isPermaLink="false">https://medium.com/p/f7c6a659ad86</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Vickybanna]]></dc:creator>
            <pubDate>Fri, 17 Apr 2026 18:56:02 GMT</pubDate>
            <atom:updated>2026-04-17T18:56:02.538Z</atom:updated>
            <content:encoded><![CDATA[<p>Most students don’t quit machine learning because it is hard.<br> They quit because it is overwhelming.</p><p>You open your first tutorial, and before you even understand what a model is, you are already looking at 150 lines of code — imports, encoders, scalers, train-test splits, model comparisons. Somewhere in between, you lose the thread.</p><p>I know this because I was that student.</p><p>So instead of trying to fight the complexity, I asked a simple question:</p><p>What if we could remove the friction, without removing the learning?</p><p>That question led me to build a Python library called automlease — a tool that reduces a full machine learning workflow into just a few lines of code, while still preserving the logic behind each step.</p><p>In this article, I will walk you through how it works — not just what it does, but what is happening behind the scenes.</p><h3>What is automlease?</h3><p>automlease is an open-source Python library (available on PyPI) that automates a complete machine learning pipeline:</p><ul><li>Data cleaning</li><li>Exploratory Data Analysis (EDA)</li><li>Model training and comparison</li><li>Model evaluation and reporting</li></ul><p>All in just a few lines of code.</p><p>To install:</p><p>pip install automlease</p><p>But the goal is not just automation.</p><p>The goal is to help beginners focus on understanding patterns and decisions, instead of getting stuck in setup.</p><h3>Why I Built This</h3><p>When I started learning machine learning, I noticed something interesting:</p><ul><li>The actual modeling step takes around 10 lines of code</li><li>The surrounding setup takes 100–150 lines</li></ul><p>As a beginner, this creates a mismatch:</p><ul><li>90% effort goes into setup</li><li>10% effort goes into actual learning</li></ul><p>That is backwards.</p><p>automlease flips this:</p><p>It handles repetitive setup so you can focus on why the model behaves the way it does.</p><h3>The 4 Steps Behind Every Machine Learning Project</h3><p>No matter the industry — healthcare, finance, or tech — every ML project follows the same structure:</p><p>Step 1 — Data Cleaning<br> Step 2 — Exploratory Data Analysis (EDA)<br> Step 3 — Model Building<br> Step 4 — Model Evaluation</p><p>automlease does not remove these steps.<br> It simply executes them efficiently.</p><h3>The Dataset</h3><p>To demonstrate, I used a housing dataset with 489 observations:</p><p>RM — average number of rooms<br> LSTAT — percentage of lower-income population<br> PTRATIO — student-teacher ratio<br> MEDV — median house value (target)</p><p>The objective is simple:</p><p>Can we predict house prices using these features?</p><h3>Step 1 — Data Cleaning (Automated, Not Ignored)</h3><p>from automlease import AutoML<br> model = AutoML()<br> model.fit(‘housing.csv’, target=’MEDV’)</p><p>Behind this single line, several important operations happen:</p><ul><li>Missing values are handled (median for numeric, most frequent for categorical)</li><li>Text data is converted into numeric form</li><li>The problem type (regression or classification) is detected</li><li>Data is split into training and testing sets</li></ul><p>Output you will see:</p><p>Dataset loaded: 489 rows<br> Task detected: Regression<br> Data split: 391 training and 98 testing</p><p>The key point is this:</p><p>The complexity is not removed — it is handled systematically.</p><h3>Step 2 — Understanding the Data (EDA)</h3><p>model.eda()</p><p>Two important visualizations are generated automatically.</p><p>First, a correlation heatmap:</p><p>RM vs MEDV shows a strong positive relationship (~0.70)<br> LSTAT vs MEDV shows a strong negative relationship (~-0.76)<br> PTRATIO vs MEDV shows a moderate negative relationship (~-0.52)</p><p>This tells us:</p><p>House prices increase with the number of rooms, and decrease with higher poverty levels and lower school quality.</p><p>Second, the target distribution:</p><p>Most house prices cluster around mid-range values (around 400K), indicating a relatively balanced dataset.</p><p>This matters because highly skewed data can affect model performance.</p><h3>Step 3 — Model Building (Comparison, Not Guessing)</h3><p>automlease automatically trains and compares multiple models:</p><ul><li>Linear Regression</li><li>Random Forest</li><li>XGBoost</li></ul><p>Best result:</p><p>Random Forest — R² = 0.85</p><p>Important clarification:</p><p>R² does not mean 85% accuracy.</p><p>It means the model explains 85% of the variation in house prices.</p><p>In simple terms, the model captures most of the patterns in the data.</p><p>Why Random Forest performed better:</p><p>The relationships in this dataset are not purely linear.<br> Variables like income level and housing characteristics interact in complex ways.</p><p>Random Forest handles these nonlinear relationships better than linear models.</p><h3>Step 4 — Model Evaluation and Interpretation</h3><p>model.report()</p><p>Two outputs are generated.</p><p>First, actual vs predicted plot:</p><p>Points close to the diagonal line represent accurate predictions.<br> A slight spread is normal and reflects real-world uncertainty.</p><p>Second, feature importance:</p><p>LSTAT — around 0.50<br> RM — around 0.43<br> PTRATIO — around 0.07</p><p>Business insight:</p><p>Location (income level) is the strongest driver of house prices.<br> Property size is the second most important factor.<br> School quality has a smaller but still meaningful impact.</p><p>This is not just a model output — it is decision-making insight.</p><h3>The Complete Workflow</h3><p>from automlease import AutoML</p><p>model = AutoML()<br> model.fit(‘housing.csv’, target=’MEDV’)<br> model.eda()<br> model.report()</p><p>A complete machine learning pipeline in a structured and repeatable way.</p><h3>What automlease (v0.3.0) Includes</h3><ul><li>Automatic data cleaning</li><li>Multiple model comparison</li><li>EDA visualizations</li><li>Model evaluation reports</li><li>SHAP-based explanations</li><li>predict_new() for instant predictions</li><li>Streamlit dashboard generation</li></ul><h3>Limitations (Important)</h3><p>No tool replaces understanding.</p><p>automlease is designed for:</p><ul><li>Learning</li><li>Rapid prototyping</li><li>Portfolio building</li></ul><p>But for real-world production systems, you still need:</p><ul><li>Custom feature engineering</li><li>Hyperparameter tuning</li><li>Proper validation techniques like cross-validation</li><li>Domain-specific adjustments</li></ul><p>Think of it as a learning accelerator, not a full replacement.</p><h3>Final Thoughts</h3><p>Machine learning is not about writing long code.<br> It is about understanding patterns, making decisions, and interpreting results.</p><p>Tools like automlease do not make you a data scientist.<br> But they can remove the friction that stops you from becoming one.</p><p>If you have been delaying machine learning because it feels too complex:</p><p>Start small<br> Focus on concepts<br> Build something real</p><p>Then go deeper.</p><h3>About the Author</h3><p>Vikash Singh Rajput is a BTech Management graduate from NAIT in Edmonton, Canada, actively building projects in data science, business analytics, and operations.</p><p>GitHub: github.com/vickybanna3327-byte<br> PyPI: pypi.org/project/automlease<br> LinkedIn: linkedin.com/in/vikash-rajput-414ba4320</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f7c6a659ad86" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I Built and Published My First Python Library on PyPI — automlease]]></title>
            <link>https://medium.com/@vickybanna3327/how-i-built-and-published-my-first-python-library-on-pypi-automlease-4f96d76ec109?source=rss-4d9321217dfa------2</link>
            <guid isPermaLink="false">https://medium.com/p/4f96d76ec109</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[pypi]]></category>
            <dc:creator><![CDATA[Vickybanna]]></dc:creator>
            <pubDate>Sat, 04 Apr 2026 08:59:13 GMT</pubDate>
            <atom:updated>2026-04-04T08:59:13.156Z</atom:updated>
            <content:encoded><![CDATA[<p>As a recent BTech Management graduate from NAIT in Edmonton, Canada, I just accomplished something I never imagined when I started learning Python a few weeks ago — I built and published my own open source Python library on PyPI. It is called automlease, and anyone in the world can now install it with a single command.</p><p>This article walks you through what I built, why I built it, and how you can build your own PyPI library too.</p><p>What is automlease?</p><p>automlease is a Python library that lets complete beginners train a machine learning model in just 3 lines of code. Instead of writing 200+ lines of imports, data cleaning, model training, and evaluation code, automlease does everything automatically.</p><p>Install it: pip install automlease</p><p>Use it: from automlease import AutoML model = AutoML() model.fit(‘your_data.csv’, target=’target_column’) model.report()</p><p>That is it. Four lines. Your model is trained, evaluated, and a beautiful report is generated automatically.</p><p>What automlease does automatically:</p><p>It loads any CSV file you provide. It cleans missing values and converts text columns to numbers automatically. It detects whether your problem is classification or regression. It trains multiple ML models and picks the best one. It generates a detailed evaluation report with accuracy, precision, recall and F1 score. It creates a feature importance chart automatically. It saves the best model as a file so you can use it later.</p><p>The Problem I Wanted to Solve</p><p>When I was building my Heart Disease Prediction ML project, I realized that as a beginner, I was spending most of my time on repetitive setup code — importing libraries, handling missing values, encoding text columns, and splitting data. The actual machine learning part was only a small portion of the work.</p><p>I thought — what if a beginner could skip all of that and just focus on the results? That is exactly what automlease does.</p><p>The Libraries I Combined</p><p>My professor Yash Shah challenged me to combine 2 to 3 existing libraries into something new and useful. Here is what automlease combines:</p><p>Pandas handles loading and cleaning the data. scikit-learn provides the machine learning algorithms — Random Forest and Logistic Regression for classification, Random Forest and Linear Regression for regression. matplotlib and seaborn create the automatic feature importance charts. joblib saves the best-trained model automatically. Rich creates beautifully formatted terminal output with tables and colours.</p><p>How I Built It</p><p>I created a Python class called AutoML with two main methods. The fit method handles everything from loading data to training and saving the best model. The report method generates the evaluation summary and charts.</p><p>The entire library is built around one insight — a beginner should not need to know HOW machine learning works to USE machine learning. automlease handles the how, so the user can focus on the results.</p><p>Testing it on Real Data</p><p>I tested automlease on the same UCI Heart Disease dataset I used for my previous project — 920 real patient records. With just 3 lines of code automlease loaded the data, cleaned it, trained a Random Forest model, and achieved 83.78% accuracy. It also automatically generated a feature importance chart showing that chest pain type, maximum heart rate, and age were the most important predictors.</p><p>What I Learned</p><p>Building and publishing a PyPI library taught me things no course could. I learned how Python packages are structured with <strong>init</strong>.py and setup.py files. I learned how to use twine to publish to PyPI. I learned how to write clear documentation in README.md. Most importantly, I learned that creating something useful for others is the most rewarding part of being a developer.</p><p>Links</p><p>PyPI: <a href="https://pypi.org/project/automlease/">https://pypi.org/project/automlease/</a></p><p>GitHub: <a href="https://github.com/vickybanna3327-byte/automlease">https://github.com/vickybanna3327-byte/automlease</a></p><p>Special thanks to my mentor Yash Shah for pushing me to build something original and publish it to the world. This is just the beginning!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4f96d76ec109" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I Built a Heart Disease Prediction App Using Python and Machine Learning]]></title>
            <link>https://medium.com/@vickybanna3327/how-i-built-a-heart-disease-prediction-app-using-python-and-machine-learning-64135c723e65?source=rss-4d9321217dfa------2</link>
            <guid isPermaLink="false">https://medium.com/p/64135c723e65</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[health]]></category>
            <dc:creator><![CDATA[Vickybanna]]></dc:creator>
            <pubDate>Thu, 02 Apr 2026 03:20:41 GMT</pubDate>
            <atom:updated>2026-04-02T03:20:41.074Z</atom:updated>
            <content:encoded><![CDATA[<p>As a recent BTech Management graduate from NAIT in Edmonton, Canada, I have been working hard to break into the data science field. Under the mentorship of my professor, Yash Shah, I recently built a Heart Disease Prediction App using Python, scikit-learn, and Streamlit — and deployed it live on the internet for anyone to use.</p><p>In this article, I will walk you through exactly how I built it, step by step, so you can build it too.</p><p>What does the app do?</p><p>The app takes 10 medical details about a patient — age, sex, chest pain type, blood pressure, cholesterol, and more — and predicts whether that patient is at HIGH RISK or LOW RISK of heart disease. It uses a Random Forest machine learning model trained on 920 real patient records from the Cleveland Heart Disease dataset.</p><p>The Tools I Used</p><p>Python 3.12 — the programming language<br>Pandas — for loading and cleaning the data<br>Scikit-learn — for training the machine learning model<br>Streamlit — for building the web app interface<br>GitHub — for storing the code<br>Streamlit Cloud — for deploying the app live</p><p>The Dataset</p><p>I used the UCI Heart Disease dataset, which contains 920 patient records with 16 columns. After cleaning the data and removing columns with too many missing values, I was left with 740 clean records and 10 input features.</p><p>The most important features the model learned from were chest pain type, maximum heart rate achieved, number of blocked blood vessels, and age.</p><p>Building the Machine Learning Model</p><p>I trained a Random Forest Classifier using scikit-learn. After splitting the data 80% for training and 20% for testing, my model achieved 83.78% accuracy. More importantly, the Recall score was 89% — meaning the model correctly identified 89% of all patients who actually had heart disease. In medical predictions, Recall is more important than overall accuracy because missing a sick patient is far more dangerous than a false alarm.</p><p>Building the Streamlit App</p><p>Streamlit made it incredibly easy to turn my Python model into a real web app. With just a few lines of code, I created sliders and dropdowns for each input feature, and a Predict button that shows the result instantly.</p><p>Live App Link</p><p>You can try the app yourself here: <a href="https://heart-disease-prediction-hkyd2p6yqscevonpvffyb8.streamlit.app/">https://heart-disease-prediction-hkyd2p6yqscevonpvffyb8.streamlit.app/</a></p><p>GitHub Repository: <a href="https://github.com/vickybanna3327-byte/heart-disease-prediction">https://github.com/vickybanna3327-byte/heart-disease-prediction</a></p><p>What I Learned</p><p>This project taught me the complete data science pipeline — from raw data to a live, deployed application. I learned the difference between regression and classification, how to handle missing data, how to evaluate a model using precision, recall and F1-score, and how to deploy a machine learning app for free using Streamlit Cloud.</p><p>If you are a beginner in data science, I highly recommend building a project like this. The best way to learn is by doing!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=64135c723e65" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>