The FFD project is built on a publicly available credit card transaction dataset hosted on Kaggle. It contains 50,492 real-world transactions made by European cardholders, each labelled as either genuine or fraudulent. The dataset is widely used in the machine learning community as a benchmark for fraud detection, and it presents a classic extreme class imbalance challenge that the FFD pipeline directly addresses through GAN-based data synthesis.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Antisource/FFD/llms.txt
Use this file to discover all available pages before exploring further.
Dataset Structure
The dataset has 50,492 rows and 31 columns. Each row represents one transaction, and the columns are as follows:| Column | Type | Description |
|---|---|---|
Time | Float | Seconds elapsed between this transaction and the first transaction in the dataset |
V1 – V28 | Float | PCA-transformed anonymized features (original names are confidential) |
Amount | Float | Transaction amount in euros |
Class | Integer | Target label: 0 = genuine transaction, 1 = fraudulent transaction |
Shape
Class Distribution
The 28 PCA-transformed features (
V1–V28) are the result of a dimensionality reduction applied to the original transaction attributes, which remain confidential for privacy reasons. Only Time and Amount retain their original, interpretable values.Loading the Dataset
Class Imbalance at a Glance
The dataset contains 50,000 genuine transactions (Class = 0) and only 492 fraudulent transactions (Class = 1), making fraud just ~0.975% of all records. This severe imbalance means a naive model can achieve over 99% accuracy by simply predicting every transaction as genuine — while completely failing to detect any actual fraud.Genuine Transactions
50,000 labelled
Class = 0Fraudulent Transactions
492 labelled
Class = 1Accessing the Dataset
Download from Kaggle
Visit the Credit Card Fraud Detection dataset page on Kaggle and download
creditcard.csv. A free Kaggle account is required.Rename and place in the repo root
Rename the downloaded file to
Creditcard_dataset.csv and place it in the root of the cloned FFD repository alongside Design_Project.ipynb.