{"id":15142631,"url":"https://github.com/sureshmrd/loan-prediction-ml","last_synced_at":"2026-03-15T21:03:30.860Z","repository":{"id":255974576,"uuid":"854016493","full_name":"sureshmrd/Loan-Prediction-ML","owner":"sureshmrd","description":null,"archived":false,"fork":false,"pushed_at":"2024-09-08T08:40:44.000Z","size":238,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-12T14:49:11.699Z","etag":null,"topics":["fastapi","ml","python3"],"latest_commit_sha":null,"homepage":"","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/sureshmrd.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}},"created_at":"2024-09-08T07:08:17.000Z","updated_at":"2024-09-08T08:40:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"ed0e65ff-53ba-4733-9d77-652c16e96d59","html_url":"https://github.com/sureshmrd/Loan-Prediction-ML","commit_stats":{"total_commits":4,"total_committers":2,"mean_commits":2.0,"dds":0.25,"last_synced_commit":"b7df925f5467fa58c756e3cb26c0539d4854995e"},"previous_names":["sureshmrd/loan-prediction-ml"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sureshmrd%2FLoan-Prediction-ML","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sureshmrd%2FLoan-Prediction-ML/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sureshmrd%2FLoan-Prediction-ML/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sureshmrd%2FLoan-Prediction-ML/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sureshmrd","download_url":"https://codeload.github.com/sureshmrd/Loan-Prediction-ML/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246368666,"owners_count":20766060,"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":["fastapi","ml","python3"],"created_at":"2024-09-26T09:43:11.976Z","updated_at":"2025-12-25T22:18:46.548Z","avatar_url":"https://github.com/sureshmrd.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Loan Approval Prediction using Machine Learning\n\n## Project Overview\n\nThis project focuses on predicting loan approval outcomes using machine learning techniques. The prediction model aims to assist lenders in assessing whether an applicant is eligible for a loan based on certain factors. The project follows a structured approach starting from data analysis to deploying the model using FastAPI.\n\n## Table of Contents\n\n1. [Project Overview](#project-overview)\n2. [Technologies Used](#technologies-used)\n3. [Steps Involved](#steps-involved)\n   - [1. Data Analysis](#1-data-analysis)\n   - [2. Feature Engineering](#2-feature-engineering)\n   - [3. Training ML Models](#3-training-ml-models)\n   - [4. FastAPI App Creation](#4-fastapi-app-creation)\n4. [How to Run the Project](#how-to-run-the-project)\n5. [Results](#results)\n\n\n## Technologies Used\n\n- Python\n- Pandas\n- Scikit-learn\n- FastAPI\n- NumPy\n- Matplotlib / Seaborn for visualization\n\n\n## Steps Involved\n\n### 1. Data Analysis\n\n- The dataset contains features related to applicants, such as their Gender(Male/Female) ,Education(Graduate/Not),income, loan amount, credit history, etc.\n- Exploratory data analysis (EDA) was conducted to understand patterns and trends in the data.\n- Various visualization techniques were used to highlight key relationships between the features and the target variable.\n\n### 2. Feature Engineering\n\n- Feature selection and transformation were performed to enhance the model's predictive power.\n- Missing values were handled appropriately.\n- Categorical variables were encoded using techniques such Label Encoder.\n\n### 3. Training ML Models\n\n- Several machine learning algorithms were evaluated, including Logistic Regression, SVM, KNearestNeighbors.\n- The model was trained on a split of training and test datasets.\n- Hyperparameter tuning was performed to optimize the models using techniques like GridSearchCV.\n- The best-performing model was selected based on evaluation metrics like accuracy.\n\n### 4. FastAPI App Creation\n\n- A FastAPI web application was created to serve the loan approval model as an API.\n- Users can send a request with loan-related details and get an immediate prediction on whether the loan will be approved or not.\n- The API can handle both GET and POST requests.\n\n\n## Run the Project\n\n### Install the Requirements.txt file:\n\n```bash\npip install -r requirements.txt\n```\n### Run the FastAPI App:\n\n```\nuvicorn app:app --reload\n```\n\n#### Access the API: Open your browser and go to http://127.0.0.1:8000/docs to see the interactive API documentation.\n\n## Results\n\n- Accuracy of SVM ---\u003e 87.09677419354838\n- Accuracy of Logistic Regression ---\u003e 87.09677419354838\n- Accuracy of KNN model ---\u003e 80.64516129032258\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsureshmrd%2Floan-prediction-ml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsureshmrd%2Floan-prediction-ml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsureshmrd%2Floan-prediction-ml/lists"}