11"""
2- Complete ML Pipeline for KCTCS Student Success Prediction (CSV Output Only)
2+ Complete ML Pipeline for Bishop State Student Success Prediction (CSV Output Only)
33==========================================================
44Models:
551. Retention Prediction (Binary Classification)
5050print ("=" * 80 )
5151
5252print ("\n Loading student-level dataset..." )
53- student_file = os .path .join (DATA_DIR , 'kctcs_student_level_with_zip .csv' )
53+ student_file = os .path .join (DATA_DIR , 'bishop_state_student_level_with_zip .csv' )
5454print (f"Reading from: { student_file } " )
5555df = pd .read_csv (student_file )
5656print (f"Loaded { len (df ):,} students with { len (df .columns )} features" )
@@ -1040,7 +1040,7 @@ def assign_alert_level(risk_score):
10401040print ("=" * 80 )
10411041
10421042# Save student-level predictions with all columns
1043- output_file = os .path .join (DATA_DIR , 'kctcs_student_level_with_predictions .csv' )
1043+ output_file = os .path .join (DATA_DIR , 'bishop_state_student_level_with_predictions .csv' )
10441044df .to_csv (output_file , index = False )
10451045print (f"\n ✓ Saved student-level predictions to CSV:" )
10461046print (f" File: { output_file } " )
@@ -1071,7 +1071,7 @@ def assign_alert_level(risk_score):
10711071predictions_df = df [prediction_columns ].copy ()
10721072
10731073print ("\n Loading course-level merged file..." )
1074- merged_file = os .path .join (DATA_DIR , 'kctcs_merged_with_zip .csv' )
1074+ merged_file = os .path .join (DATA_DIR , 'bishop_state_student_level_with_zip .csv' )
10751075print (f"Reading from: { merged_file } " )
10761076merged_df = pd .read_csv (merged_file )
10771077print (f"Loaded { len (merged_df ):,} course records" )
@@ -1091,7 +1091,7 @@ def assign_alert_level(risk_score):
10911091)
10921092
10931093# Save course-level predictions
1094- output_file = os .path .join (DATA_DIR , 'kctcs_merged_with_predictions .csv' )
1094+ output_file = os .path .join (DATA_DIR , 'bishop_state_merged_with_predictions .csv' )
10951095merged_with_predictions .to_csv (output_file , index = False )
10961096print (f"\n ✓ Saved course-level predictions to CSV:" )
10971097print (f" File: { output_file } " )
@@ -1106,7 +1106,7 @@ def assign_alert_level(risk_score):
11061106print ("=" * 80 )
11071107
11081108summary_report = f"""
1109- KCTCS ML PIPELINE - SUMMARY REPORT (CSV OUTPUT ONLY)
1109+ BISHOP STATE ML PIPELINE - SUMMARY REPORT (CSV OUTPUT ONLY)
11101110{ '=' * 80 }
11111111Generated: { datetime .now ().strftime ('%Y-%m-%d %H:%M:%S' )}
11121112
@@ -1221,12 +1221,12 @@ def assign_alert_level(risk_score):
12211221summary_report += f"""
12221222OUTPUT: CSV FILES
12231223{ '-' * 80 }
1224- 1. kctcs_student_level_with_predictions .csv
1224+ 1. bishop_state_student_level_with_predictions .csv
12251225 - Student-level data with all predictions
12261226 - { len (df ):,} students
12271227 - { len (df .columns )} columns
12281228
1229- 2. kctcs_merged_with_predictions .csv
1229+ 2. bishop_state_merged_with_predictions .csv
12301230 - Course-level data with predictions
12311231 - { len (merged_with_predictions ):,} records
12321232 - { len (merged_with_predictions .columns )} columns
@@ -1294,8 +1294,8 @@ def assign_alert_level(risk_score):
12941294print ("=" * 80 )
12951295print (f"\n Completed: { datetime .now ().strftime ('%Y-%m-%d %H:%M:%S' )} " )
12961296print ("\n Output files:" )
1297- print (f" 1. { os .path .join (DATA_DIR , 'kctcs_student_level_with_predictions .csv' )} " )
1298- print (f" 2. { os .path .join (DATA_DIR , 'kctcs_merged_with_predictions .csv' )} " )
1297+ print (f" 1. { os .path .join (DATA_DIR , 'bishop_state_student_level_with_predictions .csv' )} " )
1298+ print (f" 2. { os .path .join (DATA_DIR , 'bishop_state_merged_with_predictions .csv' )} " )
12991299print (f" 3. { os .path .join (DATA_DIR , 'model_comparison_results.csv' )} " )
13001300print (f" 4. { report_file } " )
13011301print ("=" * 80 )
0 commit comments