1import joblib
2
3model = joblib.load("canteen_sales.pkl")1sample = [[1,2,2,2]]
2prediction = model.predict(sample)[0]
3
4if prediction == 1:
5 print("Student will buy food")
6else:
7 print("Student will not buy food")| Feature | Value |
|---|---|
| time_of_day | 1 = Afternoon |
| break_length | 2 = Long |
| hunger_level | 2 = High |
| wallet_status | 2 = Full |