{"id":29604502,"url":"https://github.com/nishumehta/loan-default-prediction","last_synced_at":"2026-05-08T19:32:35.606Z","repository":{"id":316440708,"uuid":"1013901510","full_name":"NishuMehta/Loan-Default-Prediction","owner":"NishuMehta","description":"A machine learning web app to predict the likelihood of a loan default based on applicant data. Trained Logistic Regression, Random Forest, and XGBoost models. Built with Python, Streamlit, and deployed on Streamlit Cloud.","archived":false,"fork":false,"pushed_at":"2025-07-08T04:22:11.000Z","size":8594,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-24T16:59:28.124Z","etag":null,"topics":["logistic-regression","machine-learning","python","random-forest","streamlit","web-app","xgboost"],"latest_commit_sha":null,"homepage":"https://loan-default-prediction-nishu.streamlit.app/","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/NishuMehta.png","metadata":{},"created_at":"2025-07-04T16:56:21.000Z","updated_at":"2025-07-08T06:30:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"5c7e61da-ef4c-4c0c-acb8-f59c99e1b2c0","html_url":"https://github.com/NishuMehta/Loan-Default-Prediction","commit_stats":null,"previous_names":["nishumehta/loan-default-prediction"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/NishuMehta/Loan-Default-Prediction","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NishuMehta%2FLoan-Default-Prediction","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NishuMehta%2FLoan-Default-Prediction/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NishuMehta%2FLoan-Default-Prediction/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NishuMehta%2FLoan-Default-Prediction/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NishuMehta","download_url":"https://codeload.github.com/NishuMehta/Loan-Default-Prediction/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NishuMehta%2FLoan-Default-Prediction/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32794633,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"ssl_error","status_checked_at":"2026-05-08T08:22:45.650Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["logistic-regression","machine-learning","python","random-forest","streamlit","web-app","xgboost"],"created_at":"2025-07-20T15:37:22.005Z","updated_at":"2026-05-08T19:32:35.598Z","avatar_url":"https://github.com/NishuMehta.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Loan Default Risk Predictor\n\nThis project predicts whether a loan applicant is likely to **default** using machine learning. It provides a user-friendly **Streamlit web app** where users can input applicant data and receive a risk prediction instantly.\n\n\n##  Live App\n[Click here to try the app](https://loan-default-prediction-nishu.streamlit.app/)  \n\n![](/images/Demo_1.png)\n![](/images/Demo_2.png)\n\n---\n## Features\n\n- **24 input fields** based on user profile and financial history\n- Clean interface with two-column input layout\n- Prediction label: `Default` or `No Default`\n- Confidence score from logistic regression\n\n---\n\n## Dataset Overview\n\nEach row in the dataset contains features like:\n\n- `Age`, `Income`, `LoanAmount`, `CreditScore`, `DTIRatio`\n- Binary indicators: `HasMortgage`, `HasDependents`, `HasCoSigner`\n- Encoded categorical features: `Education`, `EmploymentType`, `MaritalStatus`, `LoanPurpose`\n\n---\n\n## Model Training\n\nThree models were trained:\n\n| Model               | ROC-AUC Score |\n|--------------------|---------------|\n| Logistic Regression| **0.7531** (Best) |\n| Random Forest       | 0.7390        |\n| XGBoost             | 0.7409        |\n\nThe final deployed model is **Logistic Regression** due to its balance of accuracy, interpretability, and low overfitting.\n\n---\n\n## How to Run Locally\n\n```bash\ngit clone https://github.com/NishuMehta/Loan-Default-Prediction.git\ncd Loan-Default-Prediction\npip install -r requirements.txt\nstreamlit run app/main.py\n\n\n## Author\n\n- [Nishu Mehta](https://github.com/NishuMehta)\n\n## Project Link\n\n [GitHub Repository](https://github.com/NishuMehta/Loan-Default-Prediction)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnishumehta%2Floan-default-prediction","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnishumehta%2Floan-default-prediction","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnishumehta%2Floan-default-prediction/lists"}