How shashivardan-jarpati/fraud-detection-using-machine-learning works
This repository contains Flask-based banking-fraud detection applications, including a root app and a more feature-rich copy under Fraud Detection Only Python/. The documented user journey is CSV upload and preview, preprocessing and train/test split, training and metric review for three boosting models, then batch prediction using LightGBM. The sampled files show route logic and model handling in the apps; the deeper app also defines processing and utility capabilities. The two app trees appear duplicated, so their components are shown separately where the tree supports that distinction. Several documented capabilities are not wired visibly in the excerpts; those relationships are omitted or marked unverified.
Main entry points: app.py Root workflow routes · Fraud Detection Only Python/app.py Extended workflow routes · index.html Root dashboard · catboost_metrics.html CatBoost metrics
Components 20
Root Flask app
- Root workflow routes
app.py - Uploaded dataset
app.py - Train test split
app.py - Boosting models
app.py - Batch prediction
app.py
Extended Flask app
- Extended workflow routes
Fraud Detection Only Python/app.py - Dataset processing
Fraud Detection Only Python/app.py - Model training
Fraud Detection Only Python/app.py - Fraud prediction
Fraud Detection Only Python/app.py
Dashboard and reports
- Root dashboard
templates/index.html - Alternate dashboard
templates/index1.html - CatBoost metrics
templates/catboost_metrics.html - XGBoost metrics
templates/xgboost_metrics.html - LightGBM metrics
templates/lightgbm_metrics.html - Dashboard styles
static/index.css
Processing and analysis
- Model and app config
Fraud Detection Only Python/config.py - Analysis utilities
Fraud Detection Only Python/utils.py
Other components
- Dashboard user
- Sample training CSV
data/Bank fraud dataset.csv - Sample prediction CSV
data/New bank dataset.csv
Connections 22
- Dashboard user → Root workflow routes: uploads CSV
README.md - Root workflow routes → Uploaded dataset: reads CSV
app.py - Root workflow routes → Train test split: splits data
app.py - Root workflow routes → Boosting models: trains model
app.py - Root workflow routes → Batch prediction: requests prediction
app.py - Root workflow routes → Root dashboard: renders dashboard
app.py - Root workflow routes → CatBoost metrics: renders metrics
app.py - Root workflow routes → XGBoost metrics: renders metrics
app.py - Root workflow routes → LightGBM metrics: renders metrics
app.py - Sample training CSV → Root workflow routes: sample input
README.md - Sample prediction CSV → Batch prediction: sample input
README.md - Dashboard user → Extended workflow routes: uses dashboard
README.md - Extended workflow routes → Dataset processing: validates and loads
Fraud Detection Only Python/app.py - Extended workflow routes → Model training: trains models
Fraud Detection Only Python/app.py - Extended workflow routes → Fraud prediction: invokes prediction
Fraud Detection Only Python/app.py - Extended workflow routes → Alternate dashboard: renders dashboard
- Extended workflow routes → CatBoost metrics: renders report
README.md - Extended workflow routes → XGBoost metrics: renders report
README.md - Extended workflow routes → LightGBM metrics: renders report
README.md - Extended workflow routes → Model and app config: uses settings
- Dataset processing → Analysis utilities: analyzes data
- Dashboard styles → Root dashboard: styles view
README.md