Open Food Facts — Nutrition Grade Prediction

RandomForestClassifier · 8,000 products · 9 features · 5-class (a–e)

28.5%
Test Accuracy (random target)
0.285
Accuracy Score
8K
Products

Grade Distribution

Feature Importance (Top 6)

Fat vs Carbs by Grade

Model Metrics

ModelRandomForestClassifier
n_estimators100
Train/Test Split80/20
Random Seed42
Test Accuracy0.285
Featuresenergy, fat, saturated_fat, carbs, sugars, fiber, proteins, salt, sodium

Note: Low accuracy is expected — the synthetic dataset has a randomly assigned target, independent of features. In a real-world setting, features would have meaningful predictive power for nutrition grade.