How sonuchoudhary717/spp works
This is a Flask student-performance prediction and reporting application. Its primary workflow accepts student metrics, predicts and categorizes a score, stores the result, and renders it; separate routes provide searchable history, individual reports, dashboard summaries, and CSV export. Model training cleans the supplied dataset, compares regressors, evaluates the selected model, and saves it for inference. The excerpts show prediction, database queries, model training, and chart rendering; some route/template wiring and model loading details are unsampled.
Main entry points: app.py Flask routes · templates Web templates · model.py Model training · dashboard.js Dashboard chart
Components 15
Web application
- Flask routes
app.py - Score prediction
app.py - History search
app.py - Student report
app.py - Dashboard metrics
app.py - CSV export
app.py
Prediction model
- Model training
model.py
Browser interface
- Web templates
templates - Dashboard chart
static/dashboard.js - Page styles
static/style.css
Other components
- Staff user
- Predictions database
- Training dataset
student_data.csv - Trained model
model.pkl - Chart.js
Connections 21
- Staff user → Flask routes: submits requests
- Flask routes → Score prediction: routes prediction
app.py - Score prediction → Trained model: loads model
- Score prediction → Predictions database: saves prediction
app.py - Score prediction → Web templates: renders result
app.py - Flask routes → History search: routes history
app.py - History search → Predictions database: queries records
app.py - History search → Web templates: renders history
- Flask routes → Student report: routes report
app.py - Student report → Predictions database: queries report data
app.py - Student report → Web templates: renders report
- Flask routes → Dashboard metrics: routes dashboard
app.py - Dashboard metrics → Predictions database: queries summaries
app.py - Dashboard metrics → Web templates: renders dashboard
- Flask routes → CSV export: routes export
app.py - CSV export → Predictions database: reads predictions
app.py - Model training → Training dataset: reads dataset
model.py - Model training → Trained model: writes model
model.py - Web templates → Dashboard chart: provides chart data
- Dashboard chart → Chart.js: creates chart
static/dashboard.js - Staff user → Web templates: views pages