This project is a web application built with Streamlit that predicts student pass/fail outcomes based on their internal assessment marks and attendance. The goal is to provide an early warning system for educators to identify and support at-risk students before their final exams.
- Interactive Web Interface: A user-friendly frontend that allows for easy interaction.
- Flexible File Upload: Supports both CSV and Excel file formats for student data.
- Real-Time Prediction: Trains a Logistic Regression model and generates predictions instantly after data is uploaded.
- Clear Results: Displays the model's accuracy, a full list of student predictions, and a visual summary.
- Data Visualization: Automatically generates a bar chart showing the total number of students predicted to pass versus fail.
To set up and run this project on your local machine, please follow these steps.
-
Prerequisites:
- Make sure you have Python 3.7 or higher installed on your system.
-
Clone the Repository (or Download Files):
- Download all the project files (including
app.py,requirements.txt, and the data files) into a single folder on your computer.
- Download all the project files (including
-
Install Required Libraries:
- Open your terminal or command prompt.
- Navigate to the project folder where you saved the files.
- Run the following command to install all necessary libraries from the
requirements.txtfile:pip install -r requirements.txt
- Ensure you are in the project's root directory in your terminal.
- Run the following command to launch the Streamlit application:
python -m streamlit run app.py
- The application will automatically open in a new tab in your default web browser.
- Use the sidebar to upload the three data files (
attendance,IA1, andIA2). - Click the "Run Prediction" button to see the results.