{"id":28923952,"url":"https://github.com/sumdiboii/loan-prediction-decision-trees","last_synced_at":"2026-05-07T09:34:48.568Z","repository":{"id":300417540,"uuid":"1006123072","full_name":"Sumdiboii/loan-prediction-decision-trees","owner":"Sumdiboii","description":"A Decision Tree Classifier was implemented to predict personal loan acceptance using a dataset of 5,000 customers. Key features included income, education, mortgage, and credit card usage. The model achieved 97% accuracy, with 92% precision and 76% recall for positive loan predictions, validated using a classification report and confusion matrix.","archived":false,"fork":false,"pushed_at":"2025-06-21T15:17:54.000Z","size":0,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-21T15:35:29.302Z","etag":null,"topics":["classification","data-visualisation","decision-trees","loan-prediction","machine-learning","python","scikit-learn","supervised-learning"],"latest_commit_sha":null,"homepage":"https://colab.research.google.com/drive/1tUx7J-Nv1iLBHVT84zBBrdLQOzSLgNS0?usp=sharing","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Sumdiboii.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-21T14:45:57.000Z","updated_at":"2025-06-21T15:17:57.000Z","dependencies_parsed_at":"2025-06-21T15:35:30.697Z","dependency_job_id":"e0fab59d-da54-42c1-a7a5-99faf386140f","html_url":"https://github.com/Sumdiboii/loan-prediction-decision-trees","commit_stats":null,"previous_names":["sumdiboii/loan-prediction-decision-trees"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Sumdiboii/loan-prediction-decision-trees","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sumdiboii%2Floan-prediction-decision-trees","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sumdiboii%2Floan-prediction-decision-trees/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sumdiboii%2Floan-prediction-decision-trees/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sumdiboii%2Floan-prediction-decision-trees/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Sumdiboii","download_url":"https://codeload.github.com/Sumdiboii/loan-prediction-decision-trees/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sumdiboii%2Floan-prediction-decision-trees/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261273867,"owners_count":23133829,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["classification","data-visualisation","decision-trees","loan-prediction","machine-learning","python","scikit-learn","supervised-learning"],"created_at":"2025-06-22T10:02:25.324Z","updated_at":"2025-10-20T03:02:40.726Z","avatar_url":"https://github.com/Sumdiboii.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!-- TITLE with Animated Typing Effect --\u003e\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://readme-typing-svg.demolab.com?font=Fira+Code\u0026pause=1000\u0026color=22bb55\u0026center=true\u0026vCenter=true\u0026width=600\u0026lines=Loan+Prediction+Using+Decision+Trees;Machine+Learning+Classification+Project\" alt=\"Typing SVG\" /\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"readme-images/real-estate.png\" width=\"10%\" alt=\"Loan Project Logo\" /\u003e\n\u003c/p\u003e\n\n\u003cbr\u003e\n\n\u003ch1 align=\"center\"\u003e💼 Loan Prediction Using Decision Trees 💼\u003c/h1\u003e\n\u003ch3 align=\"center\"\u003eScikit-learn powered classification model for banking analytics.\u003c/h3\u003e\n\n\u003cbr\u003e\n\n\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://colab.research.google.com/drive/1tUx7J-Nv1iLBHVT84zBBrdLQOzSLgNS0?usp=sharing\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/Open%20in%20Colab-Click%20Here-F9AB00?style=for-the-badge\u0026logo=googlecolab\" alt=\"📊 Open in Colab\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003cbr\u003e\n\n---\n\n\u003cbr\u003e\n\n## 🚀 Project Overview\n\nThis project utilizes a Decision Tree Classifier to predict whether a customer will accept a personal loan offer, based on a dataset of 5,000 banking records. Key features include customer income, education level, credit card spending, mortgage value, and account behavior. The model was trained using scikit-learn and evaluated with a classification report and confusion matrix, achieving an **accuracy of 97%**, with **92% precision** and **76% recall** for predicting positive loan responses.\n\n\u003cbr\u003e\n\n\n---\n\n\u003cbr\u003e\n\n## 🛠️ Tech Stack and Tools\n\n\u003cbr\u003e\n\n\u003cdiv align=\"center\"\u003e\n\n\u003ctable\u003e\n  \u003cthead\u003e\n    \u003ctr\u003e\n      \u003cth\u003eTechnology\u003c/th\u003e\n      \u003cth\u003ePurpose\u003c/th\u003e\n    \u003c/tr\u003e\n  \u003c/thead\u003e\n  \u003ctbody\u003e\n    \u003ctr\u003e\n      \u003ctd\u003ePython\u003c/td\u003e\n      \u003ctd\u003ePrimary programming language\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003ePandas\u003c/td\u003e\n      \u003ctd\u003eData loading, cleaning, and manipulation\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003eMatplotlib \u0026 Seaborn\u003c/td\u003e\n      \u003ctd\u003eData visualization and analysis\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003eScikit-learn\u003c/td\u003e\n      \u003ctd\u003eModel training, testing, and evaluation\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003eJupyter Notebook / Colab\u003c/td\u003e\n      \u003ctd\u003eInteractive development and visualization\u003c/td\u003e\n    \u003c/tr\u003e\n  \u003c/tbody\u003e\n\u003c/table\u003e\n\n\u003c/div\u003e\n\n\u003cbr\u003e\n\n---\n\n\u003cbr\u003e\n\n## 🔍 Core Highlights\n\n- 📊 Cleaned and preprocessed 5,000 rows of real-world banking data  \n- 🌲 Trained a Decision Tree Classifier with `max_leaf_nodes=3`  \n- 🧠 Achieved **97% overall accuracy**  \n- 🎯 Precision: **92%** for identifying loan-accepting customers  \n- 📉 Visualized loan acceptance trends across education, family size, and financial behavior  \n\n\u003cbr\u003e\n\n---\n\n\u003cbr\u003e\n\n\n## 📚 Key Learning Outcomes\n\n- Practical understanding of classification algorithms using Decision Trees  \n- Insights into data-driven loan decision modeling  \n- Experience in evaluating model performance with precision, recall, and confusion matrix  \n- Visualization of model errors using Seaborn  \n\n\u003cbr\u003e\n\n\n\n---\n\n\u003cbr\u003e\n\n\n## 👨‍💻 About the Creator\n\n**Sumdiboii** – Machine Learning Enthusiast \u0026 Software Developer  \n\n*LinkedIn – [Sumedh Pimplikar](https://www.linkedin.com/in/sumedh-pimplikar)*\n\n\u003cbr\u003e\n\n\u003e **From raw banking data to sharp predictions — this project showcases the practical power of decision trees in solving real-world business problems.**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsumdiboii%2Floan-prediction-decision-trees","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsumdiboii%2Floan-prediction-decision-trees","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsumdiboii%2Floan-prediction-decision-trees/lists"}