Skip to content

Interactive credit card fraud detection simulator with real-world data, ML scoring, and visualization.

Notifications You must be signed in to change notification settings

shreyas1504/fraudsimulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1 Commit
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ’³ FraudSimulator: Real-Time Credit Card Fraud Detection Dashboard

An interactive Streamlit dashboard built using Python and the Kaggle Credit Card Fraud dataset. This project simulates real-world fraud detection using both rule-based logic and machine learning (Logistic Regression) with adjustable thresholds and clear visualizations.


πŸš€ Features

  • πŸ“‚ Upload actual transaction data (creditcard.csv from Kaggle)
  • 🧠 Simulate fraud detection using:
    • Rule-based flagging (Class == 1)
    • Logistic Regression model with a probability threshold
  • πŸŽ›οΈ Interactive slider to adjust model prediction threshold
  • πŸ“ˆ Visualize:
    • Log-scaled fraud vs legit bar chart
    • Pie chart showing fraud proportions
    • Confusion matrix for ML performance
  • πŸ“₯ Download all flagged fraud transactions as CSV

πŸ“Š Dataset


πŸ› οΈ How to Run

1. Clone the repository

git clone https://github.com/YOUR_USERNAME/fraudsimulator.git
cd fraudsimulator

About

Interactive credit card fraud detection simulator with real-world data, ML scoring, and visualization.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages