Skip to content

Commit

Permalink
Merge branch 'main' into task-4
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel-Andarge committed Jun 29, 2024
2 parents 3952583 + eada9f1 commit 3a839bc
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.10
python-version: 3.12.0

- name: Install dependencies
run: |
Expand Down
35 changes: 17 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
# Machine Learning based Fraud Detection for E-commerce and Banking Transactions
# Machine Learning-based Fraud Detection for E-commerce and Banking Transactions

Adey Innovations Inc. seeks to enhance the detection of fraudulent transactions in e-commerce and banking sectors. This project focuses on developing advanced machine learning models to identify fraud with high accuracy by analyzing transaction data, creating sophisticated features, and implementing real-time monitoring systems. By improving fraud detection, Adey Innovations Inc. aims to reduce financial losses, bolster transaction security, and build stronger trust with customers and financial institutions. The project entails data preprocessing, feature engineering, model development, evaluation, and deployment, ensuring a comprehensive approach to combating fraud.
Adey Innovations Inc. aims to enhance the detection of fraudulent transactions in the e-commerce and banking sectors. This project focuses on developing advanced machine learning models to identify fraud with high accuracy by analyzing transaction data, creating sophisticated features, and implementing real-time monitoring systems. By improving fraud detection, Adey Innovations Inc. aims to reduce financial losses, bolster transaction security, and build stronger trust with customers and financial institutions. The project entails data preprocessing, feature engineering, model development, evaluation, and deployment, ensuring a comprehensive approach to combating fraud.

## Table of Contents

1. [Exploratory Data Analysis (EDA)line](<#1.-exploratory-data-analysis-(eda)>)
2. [Model Building and Training](#2.-model-building-and-training)
3. [Model Explainability Using SHAP](#3.-model-explainability-using-shap)
4. [Model Deployment and API Development](#4.-model-deployment-and-api-development)
1. [Exploratory Data Analysis (EDA)](#1-exploratory-data-analysis-eda)
2. [Model Building and Training](#2-model-building-and-training)
3. [Model Explainability Using SHAP](#3-model-explainability-using-shap)
4. [Model Deployment and API Development](#4-model-deployment-and-api-development)
5. [Contributing](#contributing)
6. [License](#license)

## 1. Exploratory Data Analysis (EDA)

### Univariate analysis
### Univariate Analysis

![featureEng](https://github.com/Daniel-Andarge/AiML-financial-fraud-detection-model/blob/main/assets/eda/his1.png)

### Bivariate analysis
### Bivariate Analysis

### Feature Engineering

![featureEng](https://github.com/Daniel-Andarge/AiML-financial-fraud-detection-model/blob/main/assets/eda/featured_df.png)

## 2. Model Building and Training

After trainig and testing 6 models 3 for each datasets i select the below models
After training and testing six models (three for each dataset), we selected the following models:

#### 2.1 Fraud-IP Dataset - XGBoost Model

Expand All @@ -41,26 +41,21 @@ After trainig and testing 6 models 3 for each datasets i select the below models

### Summary Plot

<img src="https://github.com/Daniel-Andarge/AiML-financial-fraud-detection-model/blob/main/assets/shap-lime/summryPlot.png" alt="summeryplot" width="600"/>
<img src="https://github.com/Daniel-Andarge/AiML-financial-fraud-detection-model/blob/main/assets/shap-lime/summryPlot.png" alt="summary plot" width="600"/>

### Force Plot

![forceplot](https://github.com/Daniel-Andarge/AiML-financial-fraud-detection-model/blob/main/assets/shap-lime/forcePlot.png)

## 4. Model Deployment and API Development

### Running the flask app
### Running the Flask App

![runflask](https://github.com/Daniel-Andarge/AiML-financial-fraud-detection-model/blob/main/assets/api-docker/run-flask.png)

### Testing the api
### Testing the API

![testflask](https://github.com/Daniel-Andarge/AiML-financial-fraud-detection-model/blob/main/assets/api-docker/test-flask.png
png)

### Testing the api from Postman

![postman](https://github.com/Daniel-Andarge/AiML-financial-fraud-detection-model/blob/main/assets/api-docker/postman_tst.png)
![testflask](https://github.com/Daniel-Andarge/AiML-financial-fraud-detection-model/blob/main/assets/api-docker/test-flask.png)

### Building Docker Image

Expand All @@ -70,6 +65,10 @@ png)

![runflask](https://github.com/Daniel-Andarge/AiML-financial-fraud-detection-model/blob/main/assets/api-docker/docker-run.png)

### Testing the API from Postman

![postman](https://github.com/Daniel-Andarge/AiML-financial-fraud-detection-model/blob/main/assets/api-docker/postman_tst.png)

## Contributing

Contributions are welcome! Please fork the repository and submit a pull request.
Expand Down

0 comments on commit 3a839bc

Please sign in to comment.