8000 GitHub - Getachew0557/Credit-Score-Classifications: Credit-scoring and risk modeling: This project aimed at developing a Credit Scoring Model for Bati Bank's buy-now-pay-later service in collaboration with an eCommerce partner. This project focuses on risk classification, credit scoring analysis, and providing predictive insights for loan applications.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Credit-scoring and risk modeling: This project aimed at developing a Credit Scoring Model for Bati Bank's buy-now-pay-later service in collaboration with an eCommerce partner. This project focuses on risk classification, credit scoring analysis, and providing predictive insights for loan applications.

License

Notifications You must be signed in to change notification settings

Getachew0557/Credit-Score-Classifications

Repository files navigation

Credit Scoring and Risk Prediction for Loan Optimization at Bati Bank Using Machine Learning techniques

Project Overview

This project aims to create a credit scoring model for Bati Bank, a leading financial service provider, in collaboration with a successful eCommerce platform. The goal is to enable a buy-now-pay-later service that allows customers to purchase products on credit if they qualify.

Business Need

Bati Bank recognizes the growing demand for flexible payment solutions and aims to provide customers with the ability to buy products by credit. This requires developing a robust credit scoring model to assess the creditworthiness of potential borrowers. The model will utilize data from customer transactions to evaluate risk and determine suitable loan conditions.

Objectives

  1. Define a proxy variable to categorize users as high risk (bad) or low risk (good).
  2. Select observable features that are strong predictors of the defined default variable.
  3. Develop a model that assigns risk probabilities for new customers.
  4. Develop a model that assigns credit scores based on risk probability estimates.
  5. Predict the optimal amount and duration of loans.

Data and Features

The data for this project is sourced from the Xente Challenge on Kaggle. The dataset includes the following fields:

  • TransactionId: Unique transaction identifier.
  • BatchId: Unique batch number for processing.
  • AccountId: Unique customer identifier on the platform.
  • SubscriptionId: Unique identifier for customer subscriptions.
  • CustomerId: Unique customer identifier.
  • CurrencyCode: Currency of the transaction.
  • CountryCode: Geographical code of the customer's country.
  • ProviderId: Source provider of the purchased item.
  • ProductId: Name of the purchased item.
  • ProductCategory: Broader categories for products.
  • ChannelId: Identifies the transaction channel (e.g., web, Android, iOS).
  • Amount: Transaction value.
  • Value: Absolute value of the transaction.
  • TransactionStartTime: Timestamp of the transaction.
  • PricingStrategy: Category of pricing structure.
  • FraudResult: Fraud status (1 for yes, 0 for no).

Folder Structure

  • src/: Contains source code for data loading, feature engineering, and EDA.
  • tests/: Contains unit and integration tests.
  • data/: Contains raw and processed data files.
  • .github/: Contains CI/CD configurations.
  • notebook/: Contains the predction, preprocessing and analysis model.
  • scripts/: Contains main script to run and visulazation.
  • web-api/: Contains web-api fastapi and flask app for visulization.

How to Use

1.Clone the repository:

git clone "https://github.com/Getachew0557/Credit-Score-Classifications.git"

2.Navigate to the project directory:

cd Credit-Score-Classifications

3.Install dependencies:

pip install -r requirements.txt

4.Start the project:

python scripts/main.py

5.To Forcast store sale use:

python flask-app/app.py
  • Open your browser and past http://127.0.0.1:5000

  • fill the form and submmit to the predction resul.

Deploy the Web API on Render

Step-by-step instructions to deploy to Render:

  1. Sign up for a Render account and connect it to your GitHub repository.

  2. Create a new web service by selecting your Credit-Score-Classifications repository.

  3. Configure the service settings:

    • select python language
    • Set Start Command to:
     python flask-app/app.py
  4. Deploy the app and get the live URL.

  5. Access the deployed app by visiting the Render URL https://credit-score-classifications-1.onrender.com/

For instructions on setting up and deploying the web API, see the Web API Deployment Guide.

Results

Below is an example of the credit score and risk modeling predction visualization generated by the project:

Prediction

Contributing

Contributions are welcome! Please follow these steps:

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature-branch).
  3. Make your changes and commit them (git commit -m 'Add new feature').
  4. Push to the branch (git push origin feature-branch).
  5. Open a pull request.

Contact Information

License

This project is licensed under the Apache License 2.0. See the LICENSE file for more details.

About

Credit-scoring and risk modeling: This project aimed at developing a Credit Scoring Model for Bati Bank's buy-now-pay-later service in collaboration with an eCommerce partner. This project focuses on risk classification, credit scoring analysis, and providing predictive insights for loan applications.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0