How jagadeeshwar634-coder/student-performance-prediction works
This is a student-performance prediction web application. Students register or log in, submit five academic and lifestyle inputs, receive a predicted score with dashboard analysis and suggestions, and can revisit stored predictions through their profile. The main backend in app.py owns authentication, prediction, profile, and history routes; database.py supplies PostgreSQL sessions and models.py defines persisted records. The tree also contains main.py, a separate, simpler prediction API. Some frontend-to-template wiring and unsampled analytics behavior are documented but not verified in source excerpts.
Main entry points: app.py Web routes · database.py Database sessions · main.py API inference · login.js Login interface
Components 16
Student experience
- Login interface
static/login.js - Registration interface
static/register.js - Prediction dashboard
static/work.js - Profile interface
static/profile.js - Web pages
templates
Application service
- Web routes
app.py - Profile and history
app.py - Standalone API
main.py
Prediction
- Model inference
app.py - API inference
main.py - Trained model
student_performance_model.pkl - Feature scaler
student_performance_scaler.pkl
Persistence
- Database sessions
database.py - User and predictions
models.py
Other components
- Student
- PostgreSQL
Connections 20
- Student → Login interface: uses
README.md - Student → Registration interface: registers
README.md - Student → Prediction dashboard: enters inputs
README.md - Student → Profile interface: views history
README.md - Web routes → Web pages: renders pages
app.py - Login interface → Web routes: posts login
static/login.js - Registration interface → Web routes: posts registration
static/register.js - Prediction dashboard → Web routes: requests prediction
static/work.js - Web routes → Model inference: predicts score
README.md - Model inference → Trained model: uses model
- Model inference → Feature scaler: scales features
- Web routes → Profile and history: routes profile/history
app.py - Profile and history → Database sessions: queries and updates
app.py - Web routes → Database sessions: opens sessions
app.py - Database sessions → User and predictions: provides base
models.py - User and predictions → PostgreSQL: defines persisted records
- Database sessions → PostgreSQL: connects
database.py - Standalone API → API inference: handles prediction
main.py - API inference → Trained model: loads model
main.py - API inference → Feature scaler: loads scaler
main.py