pram2601 commited on
Commit
c74ee16
1 Parent(s): 36e119b

Update prediction.py

Browse files
Files changed (1) hide show
  1. prediction.py +4 -2
prediction.py CHANGED
@@ -85,7 +85,9 @@ def run():
85
 
86
  # Predict
87
  y_pred_inf = rfc.predict(data_inf_final)
88
- st.write('# Prediksi : ', str(int(y_pred_inf)))
89
- st.write('Jika prediksi menunjukan angka 1 maka ada kemungkinan booking tersebut akan di cancel oleh pelanggan')
 
 
90
 
91
  if __name__ == '__main__': run()
 
85
 
86
  # Predict
87
  y_pred_inf = rfc.predict(data_inf_final)
88
+ prediction = 'Not Cancel' if y_pred_inf == 0 else 'Cancel'
89
+
90
+ st.write('# Prediction: ', prediction)
91
+ st.write('If the prediction shows "Cancel", there is a possibility that the booking will be canceled by the customer.')
92
 
93
  if __name__ == '__main__': run()