Views
No views yet
1import pickle
2import pandas as pd
3
4# Load the trained model
5with open('dropout_prediction_model.pkl', 'rb') as f:
6 model = pickle.load(f)
7
8# Example student data for prediction
9student_data = pd.DataFrame({
10 'feature1': [value1],
11 'feature2': [value2],
12 # Add other features as necessary
13})
14
15# Get the prediction
16prediction = model.predict(student_data)
17print("Dropout Prediction:", prediction)