pandora-s commited on
Commit
61edb7d
·
verified ·
1 Parent(s): 82ef641

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +24 -0
README.md CHANGED
@@ -45,3 +45,27 @@ configs:
45
  - split: test
46
  path: data/test-*
47
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
45
  - split: test
46
  path: data/test-*
47
  ---
48
+ # OpenFood Classification
49
+ A subset of [openfoodfacts/product-database](https://huggingface.co/datasets/openfoodfacts/product-database) selecting only a balanced set of countries and food categories.
50
+
51
+ ## Labels
52
+ There are 2 main labels:
53
+ - Country *single target*: The corresponding country of the food/dish among 8 possible values: `italy`, `spain`, `germany`, `france`, `united-states`, `belgium`, `united-kingdom` and `switzerland`.
54
+ - Category *multi-target*: The category it belongs to among 8 possible values: `snacks`, `beverages`, `cereals-and-potatoes`, `plant-based-foods`, `dairies`, `plant-based-foods-and-beverages`, `meats-and-their-products` and `sweet-snacks`.
55
+
56
+ ## Dataset
57
+ There are 8 countries and 8 different categories.
58
+ Due to the nature of each label, the dataset is split as follows:
59
+ - `name`: The name of the food/dish, extracted from the `product_name` of the openfoodfacts/product-database dataset.
60
+ - `country_label`: The country ID, extracted from `countries_tags` of the openfoodfacts/product-database dataset.
61
+ - `category_labels`: The categories it belongs to, extracted from `categories_tags` of the openfoodfacts/product-database dataset.
62
+
63
+ ### Distribution
64
+ ![image/png](https://cdn-uploads.huggingface.co/production/uploads/64161701107962562e9b1006/UjF0RWnrYMTkN3SQZCjMl.png)
65
+ Note that the categories overlap each other, since a sample can have multiple categories.
66
+
67
+ ### Splits
68
+ The dataset was split into 3 sets:
69
+ - `train`: 80%
70
+ - `validation`: 10%
71
+ - `test`: 10%