How shreyakm21/fraud-detection-system works
This is a Streamlit fraud-detection app: a user enters one transaction or uploads a CSV, the UI trains or retrieves the cached Random Forest workflow, requests predictions, and presents results and upload visualizations. The model module loads the training data, trains and evaluates the classifier, and handles record or file predictions. The graph reflects the shown calls and documented capabilities; it does not imply persistent model storage or inspect source beyond the provided excerpts.
Main entry points: Fraud_Detection_UI.py Streamlit UI · ML_model.py Model training · FraudTrainData.csv Labeled transactions
Components 8
User interface
- Streamlit UI
Fraud_Detection_UI.py - Result visualizations
Fraud_Detection_UI.py
Detection engine
- Model training
ML_model.py - Model evaluation
ML_model.py - Transaction prediction
ML_model.py
Data and outputs
- Labeled transactions
FraudTrainData.csv - Prediction result CSV
ML_model.py
Other components
- User
Connections 8
- User → Streamlit UI: enters or uploads
Fraud_Detection_UI.py - Streamlit UI → Model training: requests training
Fraud_Detection_UI.py - Model training → Labeled transactions: reads
ML_model.py - Model training → Model evaluation: evaluates predictions
ML_model.py - Streamlit UI → Transaction prediction: requests prediction
Fraud_Detection_UI.py - Transaction prediction → Prediction result CSV: writes uploaded results
ML_model.py - Transaction prediction → Streamlit UI: returns prediction results
Fraud_Detection_UI.py - Streamlit UI → Result visualizations: renders upload charts
Fraud_Detection_UI.py