How mirzayasirabdullahbaig07/credit-card-fraud-detection works
This repository provides a Streamlit fraud-scoring app and a Colab notebook for producing its model artifacts. The principal workflow is entering one transaction or uploading a CSV, then receiving threshold-based fraud scores; batch mode also supports evaluation and downloadable results. The graph separates the app, inference artifacts, and training. Some app implementation is omitted from the excerpts, so relationships not shown in source are included only where the README documents them.
Main entry points: app.py Feature preprocessing · Credit_Card_Fraud_Detection_Colab.ipynb Colab training · fraud_detection_model.pkl Trained classifier · scaler_amount.pkl Amount scaler
Components 12
Streamlit app
- Fraud Radar UI
app.py - Feature preprocessing
app.py - Fraud scoring
app.py - Single transaction
app.py - CSV batch scoring
app.py - Batch evaluation
app.py
Inference artifacts
- Trained classifier
fraud_detection_model.pkl - Amount scaler
scaler_amount.pkl - Time scaler
scaler_time.pkl - Feature order
feature_columns.pkl
Model training
- Colab training
Credit_Card_Fraud_Detection_Colab.ipynb
Other components
- App user
Connections 16
- App user → Fraud Radar UI: uses
README.md - Fraud Radar UI → Single transaction: offers
app.py - Fraud Radar UI → CSV batch scoring: offers
app.py - Fraud Radar UI → Feature preprocessing: prepares inputs
app.py - Feature preprocessing → Amount scaler: scales amount
app.py - Feature preprocessing → Time scaler: scales time
app.py - Feature preprocessing → Feature order: orders columns
app.py - Fraud scoring → Feature preprocessing: preprocesses
app.py - Fraud scoring → Trained classifier: scores with
app.py - Single transaction → Fraud scoring: requests score
app.py - CSV batch scoring → Fraud scoring: scores rows
app.py - CSV batch scoring → Batch evaluation: supports evaluation
README.md - Colab training → Trained classifier: saves model
README.md - Colab training → Amount scaler: saves scaler
README.md - Colab training → Time scaler: saves scaler
README.md - Colab training → Feature order: saves column order
README.md