How akash0826/student-performance-predictor works
This is a Flask student-performance predictor: users submit demographic and reading/writing-score inputs and receive a predicted maths score. Its training workflow ingests a dataset, splits it, transforms features, evaluates regressors, and saves model artifacts; serving converts form data to a dataframe, loads the saved preprocessor and model, and predicts. The README also claims AWS deployment, but the sampled runtime code does not show an AWS integration. The graph follows shown calls and documented behavior; unsampled templates and deployment details are not inferred.
Main entry points: predict_pipeline.py Prediction pipeline · data_ingestion.py Data ingestion · app.py Flask routes · exception.py Custom errors
Components 14
Web prediction
- Flask routes
app.py - WSGI entry
application.py - Prediction forms
templates - Input dataframe
src/pipeline/predict_pipeline.py - Prediction pipeline
src/pipeline/predict_pipeline.py
Model training
- Student dataset
notebook/data/StudentsPerformance.csv - Data ingestion
src/components/data_ingestion.py - Feature transformation
src/components/data_transformation.py - Model evaluation
src/components/model_trainer.py
Artifacts and utilities
- Model artifacts
artifacts - Serialization and scoring
src/utils.py
Shared support
- Custom errors
src/exception.py - Logging
src/logger.py
Other components
- User
Connections 23
- User → Flask routes: submits form
app.py - Flask routes → Prediction forms: renders
app.py - Flask routes → Input dataframe: builds input
app.py - Flask routes → Prediction pipeline: invokes
app.py - Prediction pipeline → Flask routes: returns prediction
app.py - WSGI entry → Prediction forms: renders
application.py - WSGI entry → Input dataframe: builds input
application.py - WSGI entry → Prediction pipeline: invokes
application.py - Data ingestion → Student dataset: reads
src/components/data_ingestion.py - Data ingestion → Model artifacts: writes splits
src/components/data_ingestion.py - Data ingestion → Feature transformation: invokes
src/components/data_ingestion.py - Data ingestion → Model evaluation: invokes
src/components/data_ingestion.py - Feature transformation → Model artifacts: saves preprocessor
src/components/data_transformation.py - Feature transformation → Serialization and scoring: serializes via
src/components/data_transformation.py - Model evaluation → Serialization and scoring: evaluates and saves via
src/components/model_trainer.py - Model evaluation → Model artifacts: saves model
src/components/model_trainer.py - Prediction pipeline → Serialization and scoring: loads via
src/pipeline/predict_pipeline.py - Prediction pipeline → Model artifacts: loads model and preprocessor
src/pipeline/predict_pipeline.py - Feature transformation → Custom errors: raises
src/components/data_transformation.py - Model evaluation → Custom errors: raises
src/components/model_trainer.py - Data ingestion → Custom errors: raises
src/components/data_ingestion.py - Prediction pipeline → Custom errors: raises
src/pipeline/predict_pipeline.py - Custom errors → Logging: uses
src/exception.py