๐ฝ๏ธ 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.