Update app.py
Browse files
app.py
CHANGED
@@ -16,7 +16,7 @@ explainer = shap.Explainer(loaded_model) # PLEASE DO NOT CHANGE THIS.
|
|
16 |
def main_func(Target, Admission_grade, Curricular_units_2nd_sem_grade, Previous_qualifications, Curricular_units_1st_sem_grade, Course, Curricular_units_2nd_sem_approved, Age_at_enrollment):
|
17 |
new_row = pd.DataFrame.from_dict({'Target':Target, 'Admission grade':Admission_grade,'Curricular units 2nd sem (grade)':Curricular_units_2nd_sem_grade,
|
18 |
'Previous qualifications':Previous_qualifications,'Curricular units 1st sem (grade)':Curricular_units_1st_sem_grade, 'Course':Course,'Curricular units 2nd sem (approved)':Curricular_units_2nd_sem_approved,
|
19 |
-
'Age at enrollment':
|
20 |
|
21 |
prob = loaded_model.predict_proba(new_row)
|
22 |
|
|
|
16 |
def main_func(Target, Admission_grade, Curricular_units_2nd_sem_grade, Previous_qualifications, Curricular_units_1st_sem_grade, Course, Curricular_units_2nd_sem_approved, Age_at_enrollment):
|
17 |
new_row = pd.DataFrame.from_dict({'Target':Target, 'Admission grade':Admission_grade,'Curricular units 2nd sem (grade)':Curricular_units_2nd_sem_grade,
|
18 |
'Previous qualifications':Previous_qualifications,'Curricular units 1st sem (grade)':Curricular_units_1st_sem_grade, 'Course':Course,'Curricular units 2nd sem (approved)':Curricular_units_2nd_sem_approved,
|
19 |
+
'Age at enrollment':Age_at_enrollment}).transpose()
|
20 |
|
21 |
prob = loaded_model.predict_proba(new_row)
|
22 |
|