Update main.py
Browse files
main.py
CHANGED
|
@@ -293,11 +293,10 @@ def apply_prediction_overrides(
|
|
| 293 |
|
| 294 |
|
| 295 |
# Aturan 2: FALSE POSITIVE (Model terlalu pesimis)
|
| 296 |
-
# Kasus: IPK 2.78, 0 Gagal, Tren Naik -> Model bilang "Resiko Tinggi"
|
| 297 |
if (student_data.IPK_Terakhir > 2.75 and
|
| 298 |
student_data.Jumlah_MK_Gagal == 0 and
|
| 299 |
student_data.Tren_IPS_Slope > 0.05) and \
|
| 300 |
-
(original_prediction == "Resiko Tinggi"
|
| 301 |
|
| 302 |
# Paksa naikkan statusnya
|
| 303 |
new_prediction = "Aman"
|
|
|
|
| 293 |
|
| 294 |
|
| 295 |
# Aturan 2: FALSE POSITIVE (Model terlalu pesimis)
|
|
|
|
| 296 |
if (student_data.IPK_Terakhir > 2.75 and
|
| 297 |
student_data.Jumlah_MK_Gagal == 0 and
|
| 298 |
student_data.Tren_IPS_Slope > 0.05) and \
|
| 299 |
+
(original_prediction == "Resiko Tinggi" or original_prediction == "Resiko Sedang"):
|
| 300 |
|
| 301 |
# Paksa naikkan statusnya
|
| 302 |
new_prediction = "Aman"
|