π Student Performance Prediction Form
A simple Python web application that collects student data through a form, predicts the studentβs grade category using a trained machine learning model, and displays the predicted result.
β¨ Features:
- π Collects student details via a user-friendly web form
- π€ Uses a machine learning model to predict student grade category
- π Displays the predicted grade class dynamically
- β Validates input data before prediction
- π§ Easily extendable for different datasets or prediction targets
π οΈ Technologies Used:
- π Python β Backend logic and ML model integration
- π Flask β Lightweight web framework for building the form and displaying results
- π scikit-learn β For building/training the prediction model (can be pre-trained)
- π¨ HTML/CSS β Frontend form interface
π Installation & Usage:
-
Clone the repository:
git clone https://github.com/yourusername/student-performance-prediction.git cd student-performance-prediction
-
Install required packages:
pip install flask scikit-learn pandas numpy
-
Place your trained ML model file (model.pkl) in the project directory (or update the script to use your model).
-
Run the Flask app:
python app.py
-
Open your browser and go to:
http://127.0.0.1:5000/
-
Fill out the form with student data and submit to see the predicted grade class.
βοΈ How It Works:
- The app presents a form to enter student info such as gender, parental education, tutoring status, etc.
- Upon submission, the backend script preprocesses the data and feeds it to the ML model.
- The model outputs a predicted grade class (1, 2, 3, or 4).
- The prediction is shown on the result page dynamically.
π Project Structure:
πstudent-performance-prediction/
βββ app.py # Flask app and prediction logic
βββ model.pkl # Pre-trained ML model file (pickle)
βββ templates/
β βββ index.html # HTML form page
β βββ result.html # Prediction result page
βββ README.md # Project documentation