Credit Card Detection

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

Python 3 pandas NumPy scikit-learn seaborn matplotlib
Back to 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.

Project Files

HTML File

Project Details

  • Completion Date December 2024
  • Category Machine Learning
  • Project Type HTML File

Project Preview

Credit Card Detection