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.
- π Upload actual transaction data (
creditcard.csvfrom Kaggle) - π§ Simulate fraud detection using:
- Rule-based flagging (
Class == 1) - Logistic Regression model with a probability threshold
- Rule-based flagging (
- ποΈ 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
- Source: Kaggle Credit Card Fraud Dataset
- Rows: 284,807 transactions
- Frauds: 492 (0.17%)
- Features:
Time,V1βV28,Amount,Class
git clone https://github.com/YOUR_USERNAME/fraudsimulator.git
cd fraudsimulator