๐Ÿฝ๏ธ Restaurant Health Grade Predictor

Enter inspection details below to get a predicted A / B / C health grade and a probability breakdown from the Random Forest model.

๐Ÿœ Cuisine Type
โš ๏ธ Violation Code
0 100

Fill in the inputs and click Predict Grade.

๐Ÿ“Œ Quick Examples

How grades work (synthetic rules used for training)
Effective Score = Inspection Score โˆ’ (Violation Code Index ร— 3)
โ€ข A โ†’ Effective โ‰ฅ 60 ย |ย  B โ†’ 40โ€“59 ย |ย  C โ†’ < 40

Replace generate_synthetic_data() with a real labelled dataset to make this production-ready.