How prajwaln9741/ml-student-performance-prediction works
StudentLens is a Flask-based student pass/fail prediction application. Users can view predictions and analysis for the default dataset, upload CSV/Excel data or submit an individual student, then inspect predictions, probabilities, charts, and insights and download results. A separate training workflow preprocesses data, compares classifiers, selects a best model, and saves metrics and charts. The application also documents feature-importance and SHAP explanations. Most runtime responsibilities appear concentrated in app.py; unsampled route details are represented only where the README documents them.
Main entry points: app.py Flask application · train_model.py Train and select model · student_data.csv Student dataset · upload.html Upload interface
Components 17
Model training
- Train and select model
train_model.py
Prediction app
- Flask application
app.py - Upload interface
templates/upload.html - Pass/fail prediction
app.py - Default dataset view
app.py - Individual prediction
app.py
Results and insights
- Charts and dashboards
app.py - Insights and explanations
app.py - Prediction downloads
app.py
Data and artifacts
- Selected model
model.pkl - Algorithm metrics
algo_metrics.json - Student dataset
uploads/student_data.csv - Uploaded data
uploads - Prediction files
outputs - Chart artifacts
static/charts
Other components
- Student or analyst
- Model trainer
Connections 21
- Model trainer → Train and select model: runs
README.md - Student dataset → Train and select model: trains on
README.md - Train and select model → Selected model: saves model
README.md - Train and select model → Algorithm metrics: saves metrics
README.md - Train and select model → Chart artifacts: generates charts
README.md - Student or analyst → Upload interface: submits data
README.md - Upload interface → Flask application: serves interface
README.md - Student or analyst → Flask application: opens app
README.md - Uploaded data → Flask application: receives uploads
README.md - Flask application → Pass/fail prediction: validates and predicts
README.md - Selected model → Pass/fail prediction: provides model
README.md - Student dataset → Default dataset view: provides default data
README.md - Flask application → Default dataset view: renders view
README.md - Flask application → Individual prediction: accepts student fields
app.py - Individual prediction → Pass/fail prediction: requests prediction
app.py - Pass/fail prediction → Charts and dashboards: feeds analysis
README.md - Pass/fail prediction → Insights and explanations: feeds insights
README.md - Charts and dashboards → Chart artifacts: displays charts
README.md - Pass/fail prediction → Prediction files: writes results
README.md - Prediction files → Prediction downloads: provides CSV
README.md - Student or analyst → Prediction downloads: downloads results
README.md