How ragunath77/fraud_detection works
This repository provides a small fraud-detection API. A client uploads a CSV to the prediction endpoint; the handler reads it, aligns its columns to the loaded model’s features, runs predictions, and returns a downloadable CSV. The model artifact is loaded when the application starts. These stages are conceptual components implemented in main.py, not separate modules. The source excerpt shows the endpoint and model-loading behavior; no frontend or other integrations are present in the supplied evidence.
Main entry points: main.py Prediction endpoint · final_model.pkl Trained model
Components 5
Prediction API
- Prediction endpoint
main.py - CSV preparation
main.py - CSV response
main.py
Model
- Trained model
final_model.pkl
Other components
- API client
Connections 5
- API client → Prediction endpoint: uploads CSV
main.py - Prediction endpoint → CSV preparation: reads and aligns
main.py - Prediction endpoint → Trained model: predicts with
main.py - Prediction endpoint → CSV response: returns predictions
main.py - Prediction endpoint → Trained model: loads at startup
main.py