How ashthecoder918/job-fraud works
JobFraud is a web-based job-posting fraud classifier. The principal runtime path is a user entering 12 structured features in the HTML frontend, which sends a prediction request to FastAPI; the backend validates and scales the inputs, runs the saved neural network, and returns a fraud/legitimate class and score for display. The repository also documents data analysis, feature selection, model comparison, training, evaluation, and deployment, but the tree contains no implementation source for those workflows. The graph focuses on evidenced runtime links and preserves the documented model-development capability without implying unseen code relationships.
Main entry points: main.py FastAPI service · index.html Job form · scaler.pkl Saved scaler · fraud_detection_model.pt Saved classifier
Components 9
User interface
- Job form
Frontend/index.html
Prediction API
- FastAPI service
Backend/main.py - Prediction result
Backend/main.py
Inference
- Input validation
Backend/structure_validation/provider.py - Saved scaler
Backend/trained_model/scaler.pkl - Saved classifier
Backend/trained_model/fraud_detection_model.pt - Neural network
Backend/structure_validation/provider.py
Other components
- Job seeker
- Model development
README.md
Connections 10
- Job seeker → Job form: enters features
README.md - Job form → FastAPI service: posts features
README.md - FastAPI service → Input validation: validates with
Backend/main.py - FastAPI service → Saved scaler: loads at startup
Backend/main.py - FastAPI service → Saved classifier: loads weights
Backend/main.py - FastAPI service → Neural network: instantiates and runs
Backend/main.py - FastAPI service → Saved scaler: transforms input
Backend/main.py - FastAPI service → Prediction result: returns class and score
Backend/main.py - Prediction result → Job form: displays result
README.md - Model development → Saved classifier: produces artifacts
README.md