How ad1tya0478/credit_card_fraud_detection_analyzer works
This repository is a credit-card fraud analysis product: notebooks prepare transaction data, train and evaluate classifiers, and produce artifacts consumed by a Streamlit dashboard. The user-facing workflow is dashboard overview, transaction exploration, interactive fraud prediction, and model-performance inspection. The sampled code shows dashboard pages calling shared loaders in dashboard/utils.py, which reads local model/results artifacts and downloads test or cleaned data from Hugging Face. Notebook implementations are empty or unsampled, so their internal calls and sequencing are not asserted; their artifact roles are documented by the utility mappings.
Main entry points: utils.py Shared dashboard utilities · models Model files · results Evaluation results · model_training.ipynb Model training
Components 14
Modeling workflow
- Data cleaning
NoteBooks/data-cleaning.ipynb - Preprocessing
NoteBooks/preProcessing.ipynb - Model training
NoteBooks/model_training.ipynb - Model evaluation
NoteBooks/evaluation.ipynb
Dashboard
- Overview dashboard
dashboard/app.py - Transaction explorer
dashboard/pages/transaction_Explorer.py - Fraud prediction
dashboard/pages/Fraud_Detection.py - Visual insights
dashboard/pages/Visual_Insights.py - Shared dashboard utilities
dashboard/utils.py
Model artifacts
- Model files
models - Evaluation results
results
Other components
- Analyst
- Hugging Face dataset
- Dataset uploader
upload_data.py
Connections 18
- Analyst → Overview dashboard: opens dashboard
dashboard/app.py - Analyst → Transaction explorer: explores transactions
dashboard/pages/transaction_Explorer.py - Analyst → Fraud prediction: tests prediction
dashboard/pages/Fraud_Detection.py - Analyst → Visual insights: reviews performance
dashboard/pages/Visual_Insights.py - Overview dashboard → Shared dashboard utilities: loads data
dashboard/app.py - Transaction explorer → Shared dashboard utilities: loads transactions
dashboard/pages/transaction_Explorer.py - Fraud prediction → Shared dashboard utilities: loads artifacts
dashboard/pages/Fraud_Detection.py - Visual insights → Shared dashboard utilities: loads metrics
dashboard/pages/Visual_Insights.py - Shared dashboard utilities → Hugging Face dataset: downloads data
dashboard/utils.py - Shared dashboard utilities → Model files: reads models
dashboard/utils.py - Shared dashboard utilities → Evaluation results: reads results
dashboard/utils.py - Data cleaning → Hugging Face dataset: publishes CSVs
- Preprocessing → Model files: produces scalers
- Model training → Model files: produces models
- Model training → Evaluation results: produces CV results
- Model evaluation → Model files: selects final model
- Model evaluation → Evaluation results: produces metrics
- Dataset uploader → Hugging Face dataset: uploads CSVs
upload_data.py