Downloads · 30 days
0
Jassiko6/credit-card-fraud-detection
credit-card-fraud-detection is a machine learning model from Jassiko6. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
A comparative study of unsupervised anomaly detection techniques using PyTorch. This project evaluates different Autoencoder architectures and PCA to identify fraudulent transactions by measuring reconstruction error.
Downloads · 30 days
0
Access
Public
Updated Jan 22, 2026
Repo size
54.8 MB
Likes
0
Public
Click a slice to open those files.
.pth11.9 KB · 69%
From the Hugging Face model README
A comparative study of unsupervised anomaly detection techniques using PyTorch. This project evaluates different Autoencoder architectures and PCA to identify fraudulent transactions by measuring reconstruction error.
In the financial industry, fraudulent transactions are rare events (anomalies). This dataset contains transactions made by European cardholders, where frauds make up a small percentage of all transactions.
| Model | Architecture | Key Characteristic |
|---|---|---|
| Basic AE | 30 → 15 → 7 | Standard bottleneck design to learn essential features. |
| Deep AE | 30 → 20 → 10 → 5 | Deeper hierarchy with Dropout (0.2) to prevent overfitting. |
| Sparse AE | 30 → 15 → 7 | Uses L1 Regularization to force the model to use only the most important neurons. |
| PCA | Linear Baseline | Principal Component Analysis with 10 components for statistical comparison. |
Clone the repository:
git clone https://github.com/Jassiko6/credit-card-fraud-detection
cd credit-card-fraud-detection
Install dependencies:
pip install torch pandas numpy matplotlib scikit-learn kagglehub
Run the script:
python main.py