This project focuses on using machine learning algorithms to detect fraud in financial transactions.
The repository contains code for training and evaluating different models to detect fraudulent activities in transaction data. It aims to provide accurate fraud detection capabilities using supervised learning techniques.
β’ Data Preprocessingπ οΈ: Cleaning, transforming, and preparing the dataset for analysis.
β’ Model Trainingπ: Training classifiers including Random Forest, Decision Tree, Logistic Regression, and K-Nearest Neighbors.
β’ Model Evaluationπ: Assessing model performance using accuracy score, ROC curve, Precision-Recall curve, and confusion matrix.
β’ Visualization π: Visualizing model comparisons, feature importance, and evaluation metrics using matplotlib and seaborn.
β’ Deploymentπ: Options for deploying trained models in production environments for real-time fraud detection.
β’ fraud_detection.ipynb: Jupyter Notebook with code for data preprocessing, model training, evaluation, and visualization.
β’ data.csv: Sample dataset used for training and testing.
β’ README.md: This file providing an overview of the project.
β’ RandomForest π²: Accuracy - 98%
β’ DecisionTree π³: Accuracy - 97%
β’ Logistic Regression π: Accuracy - 98%
β’ KNN π: Accuracy - 98%
β’ The dataset used in this project contains simulated transaction data.
β’ The models are trained and evaluated on a balanced dataset with synthetic fraud cases.