jjp7um commited on
Commit
3942d13
·
verified ·
1 Parent(s): ca41539

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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':Age_at_enrollmentenrollment}).transpose()
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