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
@@ -85,32 +85,32 @@ Lamb New Zealand imported frozen
85
85
  Lamb New Zealand imported frozen
86
86
  Lamb New Zealand imported frozen
87
87
  Lamb New Zealand imported frozen
88
- Veal composite of trimmed retail cuts separable lean and fat raw^VEAL
89
- Veal composite of trimmed retail cuts separable lean and fat cooked^VEAL
90
- Veal composite of trimmed retail cuts separable lean only raw^VEAL
91
- Veal composite of trimmed retail cuts separable lean only cooked^VEAL
92
- Veal composite of trimmed retail cuts separable fat raw^VEAL
93
- Veal composite of trimmed retail cuts separable fat cooked^VEAL
94
- Veal leg (top round) separable lean and fat raw^VEAL
88
+ Veal composite of trimmed retail cuts separable lean and fat raw VEAL
89
+ Veal composite of trimmed retail cuts separable lean and fat cooked VEAL
90
+ Veal composite of trimmed retail cuts separable lean only raw VEAL
91
+ Veal composite of trimmed retail cuts separable lean only cooked VEAL
92
+ Veal composite of trimmed retail cuts separable fat raw VEAL
93
+ Veal composite of trimmed retail cuts separable fat cooked VEAL
94
+ Veal leg (top round) separable lean and fat raw VEAL
95
95
  Veal leg (top round) separable lean and fat cooked
96
96
  Veal leg (top round) separable lean and fat cooked
97
97
  Veal leg (top round) separable lean and fat cooked
98
98
  Veal leg (top round) separable lean and fat cooked
99
- Veal leg (top round) separable lean only raw^VEAL
99
+ Veal leg (top round) separable lean only raw VEAL
100
100
  Veal leg (top round) separable lean only cooked
101
101
  Veal leg (top round) separable lean only cooked
102
102
  Veal leg (top round) separable lean only cooked
103
103
  Veal leg (top round) separable lean only cooked
104
- Veal loin separable lean and fat raw^VEAL
104
+ Veal loin separable lean and fat raw VEAL
105
105
  Veal loin separable lean and fat cooked
106
106
  Veal loin separable lean and fat cooked
107
- Veal loin separable lean only raw^VEAL
107
+ Veal loin separable lean only raw VEAL
108
108
  Veal loin separable lean only cooked
109
109
  Veal loin separable lean only cooked
110
- Veal rib separable lean and fat raw^VEAL
110
+ Veal rib separable lean and fat raw VEAL
111
111
  Veal rib separable lean and fat cooked
112
112
  Veal rib separable lean and fat cooked
113
- Veal rib separable lean only raw^VEAL
113
+ Veal rib separable lean only raw VEAL
114
114
  Veal rib separable lean only cooked
115
115
  Veal rib separable lean only cooked
116
116
  Veal shoulder whole (arm and blade) separable lean and fat
@@ -131,96 +131,96 @@ Veal shoulder blade separable lean and fat
131
131
  Veal shoulder blade separable lean only
132
132
  Veal shoulder blade separable lean only
133
133
  Veal shoulder blade separable lean only
134
- Veal sirloin separable lean and fat raw^VEAL
134
+ Veal sirloin separable lean and fat raw VEAL
135
135
  Veal sirloin separable lean and fat cooked
136
136
  Veal sirloin separable lean and fat cooked
137
- Veal sirloin separable lean only raw^VEAL
137
+ Veal sirloin separable lean only raw VEAL
138
138
  Veal sirloin separable lean only cooked
139
139
  Veal sirloin separable lean only cooked
140
- Veal cubed for stew (leg and shoulder) separable lean only raw^VEAL
140
+ Veal cubed for stew (leg and shoulder) separable lean only raw VEAL
141
141
  Veal cubed for stew (leg and shoulder) separable lean only cooked
142
- Veal ground raw^VEALGROUND
143
- Veal ground cooked broiled^VEAL
144
- Game meat antelope raw^GAME MEATANTELOPE
145
- Game meat antelope cooked roasted^GAME MEAT
146
- Game meat bear raw^GAME MEATBEAR
147
- Game meat bear cooked simmered^GAME MEAT
148
- Bison ground grass-fed cooked^BISON
149
- Bison ground grass-fed raw^BISON
150
- Game meat beaver raw^GAME MEATBEAVER
151
- Game meat beaver cooked roasted^GAME MEAT
152
- Game meat beefalo composite of cuts raw^GAME MEAT
142
+ Veal ground raw VEALGROUND
143
+ Veal ground cooked broiled VEAL
144
+ Game meat antelope raw GAME MEATANTELOPE
145
+ Game meat antelope cooked roasted GAME MEAT
146
+ Game meat bear raw GAME MEATBEAR
147
+ Game meat bear cooked simmered GAME MEAT
148
+ Bison ground grass-fed cooked BISON
149
+ Bison ground grass-fed raw BISON
150
+ Game meat beaver raw GAME MEATBEAVER
151
+ Game meat beaver cooked roasted GAME MEAT
152
+ Game meat beefalo composite of cuts raw GAME MEAT
153
153
  Game meat beefalo composite of cuts cooked
154
- Game meat bison separable lean only raw^GAME MEAT
154
+ Game meat bison separable lean only raw GAME MEAT
155
155
  Game meat bison separable lean only cooked
156
- Game meat boar wild raw^GAME MEAT
156
+ Game meat boar wild raw GAME MEAT
157
157
  Game meat boar wild cooked
158
- Game meat buffalo water raw^GAME MEAT
158
+ Game meat buffalo water raw GAME MEAT
159
159
  Game meat buffalo water cooked
160
- Game meat caribou raw^GAME MEATCARIBOU
161
- Game meat caribou cooked roasted^GAME MEAT
162
- Game meat deer raw^GAME MEATDEER
163
- Game meat deer cooked roasted^GAME MEAT
164
- Game meat elk raw^GAME MEATELK
165
- Game meat elk cooked roasted^GAME MEAT
160
+ Game meat caribou raw GAME MEATCARIBOU
161
+ Game meat caribou cooked roasted GAME MEAT
162
+ Game meat deer raw GAME MEATDEER
163
+ Game meat deer cooked roasted GAME MEAT
164
+ Game meat elk raw GAME MEATELK
165
+ Game meat elk cooked roasted GAME MEAT
166
166
  Goat
167
- Game meat goat cooked roasted^GAME MEAT
168
- Game meat horse raw^GAME MEATHORSE
169
- Game meat horse cooked roasted^GAME MEAT
170
- Game meat moose raw^GAME MEATMOOSE
171
- Game meat moose cooked roasted^GAME MEAT
172
- Game meat muskrat raw^GAME MEATMUSKRAT
173
- Game meat muskrat cooked roasted^GAME MEAT
174
- Game meat opossum cooked roasted^GAME MEAT
167
+ Game meat goat cooked roasted GAME MEAT
168
+ Game meat horse raw GAME MEATHORSE
169
+ Game meat horse cooked roasted GAME MEAT
170
+ Game meat moose raw GAME MEATMOOSE
171
+ Game meat moose cooked roasted GAME MEAT
172
+ Game meat muskrat raw GAME MEATMUSKRAT
173
+ Game meat muskrat cooked roasted GAME MEAT
174
+ Game meat opossum cooked roasted GAME MEAT
175
175
  Game meat rabbit domesticated composite of cuts
176
176
  Game meat rabbit domesticated composite of cuts
177
177
  Game meat rabbit domesticated composite of cuts
178
- Game meat rabbit wild raw^GAME MEAT
178
+ Game meat rabbit wild raw GAME MEAT
179
179
  Game meat rabbit wild cooked
180
- Game meat raccoon cooked roasted^GAME MEAT
181
- Game meat squirrel raw^GAME MEATSQUIRREL
182
- Game meat squirrel cooked roasted^GAME MEAT
183
- Lamb variety meats and by-products brain raw^LAMB
180
+ Game meat raccoon cooked roasted GAME MEAT
181
+ Game meat squirrel raw GAME MEATSQUIRREL
182
+ Game meat squirrel cooked roasted GAME MEAT
183
+ Lamb variety meats and by-products brain raw LAMB
184
184
  Lamb variety meats and by-products brain cooked
185
185
  Lamb variety meats and by-products brain cooked
186
- Veal variety meats and by-products brain raw^VEAL
186
+ Veal variety meats and by-products brain raw VEAL
187
187
  Veal variety meats and by-products brain cooked
188
188
  Veal variety meats and by-products brain cooked
189
- Lamb variety meats and by-products heart raw^LAMB
189
+ Lamb variety meats and by-products heart raw LAMB
190
190
  Lamb variety meats and by-products heart cooked
191
- Veal variety meats and by-products heart raw^VEAL
191
+ Veal variety meats and by-products heart raw VEAL
192
192
  Veal variety meats and by-products heart cooked
193
- Lamb variety meats and by-products kidneys raw^LAMB
193
+ Lamb variety meats and by-products kidneys raw LAMB
194
194
  Lamb variety meats and by-products kidneys cooked
195
- Veal variety meats and by-products kidneys raw^VEAL
195
+ Veal variety meats and by-products kidneys raw VEAL
196
196
  Veal variety meats and by-products kidneys cooked
197
- Lamb variety meats and by-products liver raw^LAMB
197
+ Lamb variety meats and by-products liver raw LAMB
198
198
  Lamb variety meats and by-products liver cooked
199
199
  Lamb variety meats and by-products liver cooked
200
- Veal variety meats and by-products liver raw^VEAL
200
+ Veal variety meats and by-products liver raw VEAL
201
201
  Veal variety meats and by-products liver cooked
202
202
  Veal variety meats and by-products liver cooked
203
- Lamb variety meats and by-products lungs raw^LAMB
203
+ Lamb variety meats and by-products lungs raw LAMB
204
204
  Lamb variety meats and by-products lungs cooked
205
- Veal variety meats and by-products lungs raw^VEAL
205
+ Veal variety meats and by-products lungs raw VEAL
206
206
  Veal variety meats and by-products lungs cooked
207
- Lamb variety meats and by-products mechanically separated raw^LAMB
208
- Lamb variety meats and by-products pancreas raw^LAMB
207
+ Lamb variety meats and by-products mechanically separated raw LAMB
208
+ Lamb variety meats and by-products pancreas raw LAMB
209
209
  Lamb variety meats and by-products pancreas cooked
210
- Veal variety meats and by-products pancreas raw^VEAL
210
+ Veal variety meats and by-products pancreas raw VEAL
211
211
  Veal variety meats and by-products pancreas cooked
212
- Lamb variety meats and by-products spleen raw^LAMB
212
+ Lamb variety meats and by-products spleen raw LAMB
213
213
  Lamb variety meats and by-products spleen cooked
214
- Veal variety meats and by-products spleen raw^VEAL
214
+ Veal variety meats and by-products spleen raw VEAL
215
215
  Veal variety meats and by-products spleen cooked
216
- Veal variety meats and by-products thymus raw^VEAL
216
+ Veal variety meats and by-products thymus raw VEAL
217
217
  Veal variety meats and by-products thymus cooked
218
- Lamb variety meats and by-products tongue raw^LAMB
218
+ Lamb variety meats and by-products tongue raw LAMB
219
219
  Lamb variety meats and by-products tongue cooked
220
- Veal variety meats and by-products tongue raw^VEAL
220
+ Veal variety meats and by-products tongue raw VEAL
221
221
  Veal variety meats and by-products tongue cooked
222
- Lamb ground raw^LAMBGROUND
223
- Lamb ground cooked broiled^LAMB
222
+ Lamb ground raw LAMBGROUND
223
+ Lamb ground cooked broiled LAMB
224
224
  Lamb domestic composite of trimmed retail cuts separable lean and fat
225
225
  Lamb domestic composite of trimmed retail cuts separable lean and fat
226
226
  Lamb domestic foreshank separable lean and fat
@@ -264,15 +264,15 @@ Lamb new zealand imported frozen
264
264
  Game meat bison top sirloin separable lean only
265
265
  Game meat bison ribeye separable lean only
266
266
  Game meat bison shoulder clod separable lean only
267
- Veal breast separable fat cooked^VEAL
267
+ Veal breast separable fat cooked VEAL
268
268
  Veal breast whole boneless
269
269
  Veal breast whole boneless
270
270
  Veal breast plate half boneless
271
271
  Veal breast point half boneless
272
272
  Veal breast whole boneless
273
- Veal shank (fore and hind) separable lean and fat raw^VEAL
273
+ Veal shank (fore and hind) separable lean and fat raw VEAL
274
274
  Veal shank (fore and hind) separable lean and fat cooked
275
- Veal shank (fore and hind) separable lean only raw^VEAL
275
+ Veal shank (fore and hind) separable lean only raw VEAL
276
276
  Veal shank (fore and hind) separable lean only cooked
277
277
  Lamb Australian imported fresh
278
278
  Lamb Australian imported fresh
@@ -324,7 +324,7 @@ Lamb Australian imported fresh
324
324
  Lamb Australian imported fresh
325
325
  Lamb Australian imported fresh
326
326
  Lamb Australian imported fresh
327
- Game meat bison ground raw^GAME MEAT BISON
327
+ Game meat bison ground raw GAME MEAT BISON
328
328
  Game meat bison ground cooked
329
329
  Game meat bison top sirloin separable lean only
330
330
  Game meat bison chuck shoulder clod
@@ -332,12 +332,12 @@ Game meat bison chuck shoulder clod
332
332
  Game meat bison ribeye separable lean only
333
333
  Game meat bison top round separable lean only
334
334
  Game meat bison top round separable lean only
335
- Game meat elk ground raw^GAME MEAT
335
+ Game meat elk ground raw GAME MEAT
336
336
  Game meat elk ground cooked
337
337
  Game meat elk loin separable lean only
338
338
  Game meat elk round separable lean only
339
339
  Game meat elk tenderloin separable lean only
340
- Game meat deer ground raw^GAME MEAT
340
+ Game meat deer ground raw GAME MEAT
341
341
  Game meat deer ground cooked
342
342
  Game meat deer loin separable lean only
343
343
  Game meat deer shoulder clod separable lean only