Credit Card Detection

Implements a k-nearest neighbors classifier, tuned via grid search, to identify fraudulent transactions in a credit-card dataset.

Category
Data Analysis
Completion Date
December 2024
Technologies Used
Python 3 pandas NumPy scikit-learn seaborn matplotlib
Project File
Downloading is only permitted with permission from Ameen Qahtan. Contact him to get permission.

Project Overview

<p>The project reads the “Credit_Card_Fraud_Detection.csv” dataset with pandas, examines its structure, and applies StandardScaler to normalize features. It splits data into training and test sets, then uses GridSearchCV to find the best <code data-start=\"6847\" data-end=\"6869\">KNeighborsClassifier</code> hyperparameters. An error-rate vs. k plot illustrates tuning choices,and final evaluation metrics include accuracy_score, classification_report, and confusion_matrix.</p>

Project File

Preview of the project's File