Credit Card Detection

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

Back to All Projects

Project Overview

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 KNeighborsClassifier hyperparameters. An error-rate vs. k plot illustrates tuning choices,and final evaluation metrics include accuracy_score, classification_report, and confusion_matrix.

Category
Data Analysis
Completion Date
December 2024
Technologies
Python 3 pandas NumPy scikit-learn seaborn matplotlib
File Preview (View Only)