fBayes 0.2.2 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. data/.DS_Store +0 -0
  2. data/README.rdoc +6 -3
  3. data/VERSION +1 -1
  4. data/fBayes.gemspec +17 -2
  5. data/lib/.DS_Store +0 -0
  6. data/lib/data/.DS_Store +0 -0
  7. data/lib/data/internalTurnk/.DS_Store +0 -0
  8. data/lib/data/internalTurnk/classifier.rb +55 -0
  9. data/lib/data/internalTurnk/csv_to_data.rb +10 -0
  10. data/lib/data/internalTurnk/data/Beverages +366 -0
  11. data/lib/data/internalTurnk/data/Cereal +46 -0
  12. data/lib/data/internalTurnk/data/Dairy +69 -0
  13. data/lib/data/internalTurnk/data/Fast-foods +29 -0
  14. data/lib/data/internalTurnk/data/Fat, +53 -0
  15. data/lib/data/internalTurnk/data/Fruits +47 -0
  16. data/lib/data/internalTurnk/data/Grains +85 -0
  17. data/lib/data/internalTurnk/data/Meat +132 -0
  18. data/lib/data/internalTurnk/data/Unknown +127 -0
  19. data/lib/data/internalTurnk/data/Vegetables +310 -0
  20. data/lib/data/internalTurnk/results.csv +1703 -0
  21. data/lib/data/sr24/.DS_Store +0 -0
  22. data/lib/data/sr24/classifier.rb +35 -15
  23. data/lib/data/sr24/csv_to_muchidata.rb +8 -0
  24. data/lib/data/sr24/data/baby-foods +192 -192
  25. data/lib/data/sr24/data/baked-products +350 -350
  26. data/lib/data/sr24/data/beef-products +137 -131
  27. data/lib/data/sr24/data/beverages +182 -177
  28. data/lib/data/sr24/data/breakfast-cereals +304 -304
  29. data/lib/data/sr24/data/cereal-grains-and-pasta +101 -101
  30. data/lib/data/sr24/data/dairy-and-egg-products +178 -178
  31. data/lib/data/sr24/data/ethnic-foods +97 -97
  32. data/lib/data/sr24/data/fast-foods +208 -190
  33. data/lib/data/sr24/data/fats-and-oils +146 -146
  34. data/lib/data/sr24/data/finfish-and-shellfish-products +123 -123
  35. data/lib/data/sr24/data/fruits-and-fruit-juices +198 -198
  36. data/lib/data/sr24/data/lamb +73 -73
  37. data/lib/data/sr24/data/legumes-and-legume-products +231 -231
  38. data/lib/data/sr24/data/meals +48 -48
  39. data/lib/data/sr24/data/nut-and-seed-products +104 -104
  40. data/lib/data/sr24/data/pork-products +37 -37
  41. data/lib/data/sr24/data/poultry-products +134 -134
  42. data/lib/data/sr24/data/restaurant-foods +45 -45
  43. data/lib/data/sr24/data/sausages-and-luncheon-meats +140 -140
  44. data/lib/data/sr24/data/snacks +108 -108
  45. data/lib/data/sr24/data/soups +420 -420
  46. data/lib/data/sr24/data/spices-and-herbs +29 -29
  47. data/lib/data/sr24/data/sweets +225 -225
  48. data/lib/data/sr24/data/vegetables-and-vegetable-products +331 -321
  49. data/lib/fBayes.rb +6 -2
  50. data/lib/global_classifier.rb +2 -0
  51. data/spec/accuracy_spec.rb +141 -0
  52. metadata +18 -3
@@ -0,0 +1,47 @@
1
+ bananas
2
+ green apple
3
+ tomato
4
+ banana
5
+ grapes
6
+ raspberries
7
+ peach and green apple
8
+ banana
9
+ pumpkin
10
+ banana
11
+ apples
12
+ apple
13
+ strawberries
14
+ Banana
15
+ apples
16
+ blueberries
17
+ banana
18
+ dried cherries
19
+ nuts and dried fruits
20
+ grapes strawberries kiwi
21
+ banana
22
+ apple
23
+ dates
24
+ fruit
25
+ applesauce
26
+ applesauce
27
+ mango
28
+ green apple
29
+ Orange
30
+ dates
31
+ mango
32
+ Peach
33
+ green apple
34
+ lemon juice
35
+ strawberry
36
+ watermelon
37
+ dates
38
+ Banana
39
+ fuji apple
40
+ orange
41
+ fruit
42
+ banana
43
+ rasain bagels cheese avocado water orange. banana crackers
44
+ orange
45
+ 1apple
46
+ fuji apple
47
+ platano
@@ -0,0 +1,85 @@
1
+ quinoa
2
+ rice
3
+ rice
4
+ croissant
5
+ brown rice
6
+ bread
7
+ brown rice
8
+ bread
9
+ bread
10
+ arepa
11
+ wheat with chard
12
+ basmati rice
13
+ rice
14
+ couscous
15
+ bun
16
+ bread and butter
17
+ bread
18
+ bread
19
+ rice
20
+ bread
21
+ toast with butter
22
+ bread
23
+ whitebread with nutella
24
+ bread
25
+ bred with butter
26
+ fried rice woktown
27
+ tortillas
28
+ 2 butter toast
29
+ bread
30
+ basmati rice
31
+ basmati rice with black beans
32
+ tortillas
33
+ slice of bread
34
+ cachapa
35
+ bread
36
+ french toast
37
+ Brown bread
38
+ olives cheese bread
39
+ bread
40
+ tortilla wraps
41
+ rice
42
+ bread
43
+ basmati rice and black beans
44
+ croutons
45
+ rice with avocado and tahini
46
+ crackers
47
+ rice
48
+ arepa
49
+ wild rice
50
+ bread
51
+ basmati rice
52
+ bread
53
+ rice
54
+ toast with butter
55
+ rice
56
+ bread with strawberry jell
57
+ 1 toast
58
+ tortilla wraps
59
+ bread
60
+ fried rice
61
+ red rice with pinto beans
62
+ baguette
63
+ arroz
64
+ bread
65
+ pao
66
+ chapatti
67
+ toast
68
+ rice
69
+ tortilla wrap
70
+ rice
71
+ flat bread with ricotta cheese
72
+ rice
73
+ rice
74
+ bread
75
+ bread and tomato
76
+ fried rice
77
+ tortillas
78
+ arepas
79
+ nasi lemak
80
+ bread
81
+ tortilla wraps
82
+ tortilla wraps
83
+ arepa with cheese and plantain
84
+ tortillas
85
+ tortilla wraps
@@ -0,0 +1,132 @@
1
+ 2 egg and Protein
2
+ turkey and Protein
3
+ beef and Protein
4
+ protein shake and Protein
5
+ turkey breast and Protein
6
+ almonds and Protein
7
+ chicken breast mashed potato juice and Protein
8
+ baked ribs and Protein
9
+ almond and Protein
10
+ mushroom and onion omelette and Protein
11
+ chicken and Protein
12
+ bacon and Protein
13
+ lentils and Protein
14
+ black beans and vegetarian chorizo and Protein
15
+ Oaxaca cheese and onions omelette and Protein
16
+ lamb chop cabbage mushrooms pepper red juice and Protein
17
+ beef and Protein
18
+ meat and Protein
19
+ chicken and Protein
20
+ seitan steak and Protein
21
+ hot dogs and Protein
22
+ sceumbled eggs with tomato and Protein
23
+ ham and Protein
24
+ picana and Protein
25
+ scrambled eggs with cheese and tortilla wraps and Protein
26
+ protein shake and Protein
27
+ hamburger and Protein
28
+ chicken and Protein
29
+ tuna and Protein
30
+ baked ribs and Protein
31
+ steak and Protein
32
+ chicken and Protein
33
+ black bean and Protein
34
+ deli turkey and Protein
35
+ hamburger and Protein
36
+ tofu and Protein
37
+ egg and Protein
38
+ omelette tomatoes broccoli hotdogs toast juice and Protein
39
+ tilapia fillet and Protein
40
+ 3 beef tacos with cheese and Protein
41
+ boiled eggs and Protein
42
+ ham and Protein
43
+ Hamburger and Protein
44
+ beef and Protein
45
+ chicken and Protein
46
+ meat and Protein
47
+ chicken and Protein
48
+ chicken breast and Protein
49
+ tilapia fillets and Protein
50
+ turkey and Protein
51
+ protein shake and Protein
52
+ chicken and Protein
53
+ taco al pastor and Protein
54
+ gravy chicken mashed potatoes and Protein
55
+ taco arrachera and Protein
56
+ picana and Protein
57
+ Parmesan cheese omelet with peach salsa and Protein
58
+ tacos al pastor and Protein
59
+ omelet and Protein
60
+ protein powder and Protein
61
+ prosciutto and Protein
62
+ chicken lettuce wrap and Protein
63
+ chicken breast and Protein
64
+ Fish and Protein
65
+ Chicago Style Italian Beef Sandwich and Protein
66
+ egg and Protein
67
+ protein shake and Protein
68
+ chicken and Protein
69
+ taco sirloin and Protein
70
+ tuna and Protein
71
+ roast beef and Protein
72
+ hamburger and Protein
73
+ meat lasagna and Protein
74
+ Port chops with roasted chiken vinagrette and Protein
75
+ hard boiled eggs and Protein
76
+ taco sirloin and Protein
77
+ tuna and Protein
78
+ eggs with mushrooms and green onions and Protein
79
+ Fish and Protein
80
+ turkey and Protein
81
+ eggs and Protein
82
+ salmon and Protein
83
+ beef and Protein
84
+ bacon bits and Protein
85
+ bacon and Protein
86
+ hard boiled eggs and Protein
87
+ meet filet and Protein
88
+ Fish and Protein
89
+ Lentil soup with rosted chicken and Protein
90
+ taco sirloin and Protein
91
+ taco meat and Protein
92
+ protein shake and Protein
93
+ eggs and Protein
94
+ pork chop and Protein
95
+ eggs and Protein
96
+ walnuts and Protein
97
+ sardines and Protein
98
+ tofu and Protein
99
+ prosciutto and Protein
100
+ tofu and Protein
101
+ sirloin taco and Protein
102
+ peanuts and Protein
103
+ bacon and Protein
104
+ green lipped nz mussels and Protein
105
+ sirloin taco and Protein
106
+ ground beef and Protein
107
+ chorizo and Protein
108
+ pork and Protein
109
+ salmon and Protein
110
+ sardines and Protein
111
+ salad meat and Protein
112
+ luncheon meat and Protein
113
+ sirloin tacos and Protein
114
+ hard boiled eggs with olive oil and Protein
115
+ salmon and Protein
116
+ MONDONGO and Protein
117
+ pork and Protein
118
+ chicken and Protein
119
+ ground beef with lentils and Protein
120
+ protein shake and Protein
121
+ two fried eggs with green onions and chipotle sauce and Protein
122
+ fish and Protein
123
+ taco sirloin and Protein
124
+ taco meat and Protein
125
+ soya chicken and Protein
126
+ pinchos de carne and Protein
127
+ carne and Protein
128
+ green lipped mussels and Protein
129
+ Poached Eggs and Protein
130
+ protein shake and Protein
131
+ protein shake and Protein
132
+ taco arrachera and Protein
@@ -0,0 +1,127 @@
1
+ otro
2
+ comida
3
+ k
4
+ tests
5
+ comida
6
+ b
7
+ otro
8
+ comida
9
+ g
10
+ ingrediente
11
+ muchisimas
12
+ otro
13
+ ddd
14
+ otra cosa
15
+ example
16
+ scrotum
17
+ muajajajaja
18
+ sd
19
+ example
20
+ df
21
+ ingrediente
22
+ poop
23
+ porq!!!
24
+ tie
25
+ jaja
26
+ comida
27
+ Ivan
28
+ example
29
+ example
30
+ comida
31
+ toast jam butter orange banana water
32
+ jaja
33
+ azuca xD
34
+ mua
35
+ azuca xD
36
+ iu
37
+ caca
38
+ dogged
39
+ otro
40
+ azuca xD
41
+ azuca xD
42
+ otro
43
+ sdsd
44
+ azuca xD
45
+ k
46
+ mua
47
+ Bella
48
+ comida
49
+ comida
50
+ mua
51
+ otro
52
+ df
53
+ azuca xD
54
+ ingrediente
55
+ comida
56
+ cosas
57
+ azuca xD
58
+ d
59
+ lol
60
+ azuca xD
61
+ otras
62
+ juju
63
+ otro
64
+ fdfdf
65
+ azuca xD
66
+ example
67
+ mama
68
+ jaja
69
+ jaja
70
+ hookah
71
+ jas
72
+ otro
73
+ poop
74
+ tavola calda
75
+ aja
76
+ bacio
77
+ otro
78
+ otro
79
+ something really long
80
+ azuca xD
81
+ example
82
+ azuca xD
83
+ que
84
+ French friends
85
+ azuca xD
86
+ mua
87
+ ingrediente
88
+ azuca xD
89
+ jaja
90
+ d
91
+ azuca xD
92
+ hookah
93
+ this is really long
94
+ azuca xD
95
+ azuca xD
96
+ comida
97
+ otras cosa
98
+ cosas
99
+ business
100
+ azuca xD
101
+ shahushs
102
+ what
103
+ comida
104
+ mua
105
+ this is cool
106
+ example
107
+ testing
108
+ Company segundo
109
+ azuca xD
110
+ interesanteee
111
+ nchjdha
112
+ comida
113
+ azuca xD
114
+ azuca xD
115
+ what is happening here?
116
+ me comi
117
+ alphen
118
+ a
119
+ nchjdha
120
+ azuca xD
121
+ azuca xD
122
+ comida
123
+ areas
124
+ comida
125
+ mua
126
+ papa
127
+ Testing Tarde
@@ -0,0 +1,310 @@
1
+ carrot juice
2
+ tomato
3
+ guacamole
4
+ zucchini
5
+ gratin tomatoe
6
+ asparagus
7
+ pumpkin and wild rice with onions
8
+ onion
9
+ onions
10
+ cucumber
11
+ esparragos
12
+ spinach
13
+ corn
14
+ chard with wheat and yogurt
15
+ spinach
16
+ tomato and green onion salad
17
+ potatoes with blue cheese and green onions
18
+ potatoes and cheese
19
+ zucchini
20
+ salad
21
+ corn
22
+ carrot
23
+ leek
24
+ tomato sauce
25
+ tomato
26
+ vegetable soup
27
+ artichoke hearts and green olives
28
+ cucumber
29
+ onion
30
+ spinaci
31
+ carrots snow peas broccoli
32
+ garlic
33
+ tomato sauce
34
+ spinach salad
35
+ salad with lettuce
36
+ potatoes
37
+ cilantro
38
+ grilled vegetables
39
+ tomato
40
+ spinach and avocado with chipotle
41
+ tomato
42
+ zucchini
43
+ cesar salad
44
+ salad with lettuce
45
+ vegetables
46
+ peas
47
+ spinach
48
+ onion
49
+ mushrooms
50
+ cucumber
51
+ mushrooms
52
+ portobello
53
+ corn
54
+ sprouts
55
+ onion and tahini
56
+ green beans
57
+ potatoes
58
+ green pea soup
59
+ lettuce
60
+ sprouts
61
+ carrot
62
+ cucumber
63
+ tomatoe
64
+ salad with corn
65
+ cauliflower
66
+ zucchini
67
+ garlic
68
+ corn
69
+ onions
70
+ portobella mushroom
71
+ potato soup
72
+ celery
73
+ salad with lettuce
74
+ portabella mushroom
75
+ salad with lettuce
76
+ mushrooms
77
+ 4 cherry tomatoes
78
+ lentil veggie burger with spinach and tacos
79
+ hummus and bell peppers
80
+ Minestrone
81
+ green onion
82
+ lentils potato wild rice stir fri veggie
83
+ baked potatos
84
+ portobello mushroom
85
+ cucumber
86
+ quinoa and asparagus
87
+ carrot juice
88
+ onion
89
+ mushrooms
90
+ salad
91
+ mashed potatoes
92
+ potatoes with blue cheese
93
+ carrots
94
+ bell pepper
95
+ salad
96
+ onion
97
+ red lentil soup
98
+ tomatoes
99
+ cesar salad
100
+ spinach
101
+ peas
102
+ pumpkin
103
+ salad with corn
104
+ salad
105
+ cranberry sesame seeds cheese water salads lentils potato croutons
106
+ salad
107
+ zucchini
108
+ carrots
109
+ cucumbers onions
110
+ small yellow tomato
111
+ portobello mushroom
112
+ tomato
113
+ chickpeas
114
+ tomato sauce
115
+ corn and mayonaisse
116
+ green pea soup
117
+ vegan vegetarian
118
+ potato salad with egg
119
+ Babaganush
120
+ vegetable burrito
121
+ asparagus
122
+ carrots
123
+ arugula
124
+ cucumber
125
+ lentil soup
126
+ ceasar salad
127
+ red bean cup of soup
128
+ cheese and fresh spinach
129
+ hearts of palm
130
+ portabella mushroom
131
+ potatoes
132
+ tomato
133
+ tomato
134
+ baked potato
135
+ onion
136
+ carrots
137
+ asparagus
138
+ cenoura
139
+ brocoli
140
+ green onions
141
+ pumpkin
142
+ cucumbers
143
+ pimiento
144
+ black beans and green pea soup
145
+ carrots
146
+ black olives
147
+ cucumber
148
+ Carrot Soup
149
+ carrot soup
150
+ cucumber and jicama with chile and lemon
151
+ lentil soup
152
+ carrot
153
+ cucumber
154
+ spinach field green salad
155
+ salad with spinach
156
+ spinach
157
+ celery
158
+ green onion
159
+ lentil soup with vegetables
160
+ espinacas
161
+ potatoes
162
+ vegetarian burrito
163
+ onion
164
+ tomatoes
165
+ alfalfa sprouts
166
+ tomato
167
+ peas
168
+ letuce
169
+ batata
170
+ spinach
171
+ guacamole
172
+ carrots
173
+ spinach
174
+ tomatoes
175
+ spinach salad with mushrooms
176
+ zucchini
177
+ avocado
178
+ carrots
179
+ red pepper
180
+ onions
181
+ salad
182
+ lentil soup
183
+ baked potato
184
+ onions
185
+ avocado
186
+ salad
187
+ lentil soup
188
+ red lentil soup
189
+ humus
190
+ lentils
191
+ celery
192
+ tacos with tomato sauce and spinach!!
193
+ mushrooms and cheese
194
+ onion
195
+ red onion
196
+ tomatoes
197
+ bean sprouts
198
+ green onion
199
+ lettuce
200
+ zuchini
201
+ peppers
202
+ tomato sauce in a jar
203
+ asparagus and red pepper stir fry with avocado
204
+ avocado
205
+ red lentil soup
206
+ vegetable sandwich
207
+ mushrooms and green onions
208
+ lettuce
209
+ salad
210
+ green onions
211
+ tomato and arugula sandwich
212
+ grilled vegetables
213
+ potatoe
214
+ red pepper
215
+ courgette
216
+ onions
217
+ carrot soup
218
+ Red Beans
219
+ tomatoes
220
+ asparagus
221
+ cabbage
222
+ lentils
223
+ onions
224
+ mixed greens
225
+ edamame
226
+ lentils with mushrooms and asparagus
227
+ tacos with vegetarian chorizo and lettuce
228
+ garlic
229
+ green salad
230
+ carrot
231
+ mushrooms with asparagus and tabbouleh
232
+ green olives and vegetarian chorizo
233
+ spinach
234
+ lentils
235
+ carrots
236
+ salad
237
+ peas soup
238
+ asparagus
239
+ green pea soups
240
+ green salad with guacamole and chips
241
+ miso soup
242
+ tomato sauce
243
+ spinach
244
+ kale
245
+ Babaganush
246
+ mushrooms
247
+ carrot
248
+ green onions
249
+ red pepper
250
+ onions
251
+ potatoes
252
+ green olives and chipotle
253
+ red pepper
254
+ spinach
255
+ romain lettuce
256
+ tomato bruschetta
257
+ lentejas verdes
258
+ Greek salad
259
+ broccoli
260
+ tomato
261
+ carrot
262
+ potatoes
263
+ palms of heart
264
+ Panko eggplant with tomato sauce and goat cheese
265
+ vegetable rolls
266
+ Onions
267
+ mushrooms and asparagus
268
+ onion
269
+ colifleur and beans
270
+ and avocado
271
+ vegetarian burrito
272
+ avocado and artichokes
273
+ cucumbers tomatoes chees
274
+ green beans
275
+ lentils
276
+ carrots
277
+ onions
278
+ tabbouleh
279
+ beets
280
+ avocado
281
+ lettuce
282
+ Rlettuce
283
+ spring onions
284
+ bean soup
285
+ cucumber
286
+ edamames
287
+ vegetarian sandwich
288
+ lettuce
289
+ vegetarian burrito
290
+ palms of heart
291
+ alfalfa
292
+ lettuce and chipotle
293
+ broccoli
294
+ Spinach
295
+ carrot juice
296
+ with potato and tabbouleh
297
+ red lentil soup
298
+ cilantro
299
+ courgette
300
+ alfalfa sprouts
301
+ chili peppers
302
+ pea soup
303
+ onion
304
+ pepper
305
+ Cucumber potatoe soup with brocolly calamaaaaaary
306
+ guacamole and tortillas
307
+ vegetarian burrito
308
+ tomato
309
+ hearts of palm and green onions salad
310
+ spinach